Design an employee class

Assignment Help Basic Computer Science
Reference no: EM13207898

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class. The ProductionWorker class should have fields to hold the following information: Shift Number (an integer, such as 1, 2, or 3) Hourly Pay Rate The workday is divided into two shifts: day and night. The shift field will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator methods for each class. Once you have designed the classes, design a program that creates an object of the ProductionWorker class and prompts the user to enter data for each of the object's fields. Store the data in the object and then use the object's accessor methods to retrieve it and display it on the screen.

Reference no: EM13207898

Questions Cloud

Compute the thermal energy evolved : When butane gas, C4H10, burns in oxygen gas, O2, to form carbon dioxide gas, CO2, and gaseous water, 2845 kJ of thermal energy is evolved per mole of butane burned.
What is the probability that a random sample have average : Starting salaries of economics majors have a mean of $47,000/year with a standard deviation of $8,000. What is the probability that a random sample of 100 majors will have an average salary of more than $50,000 year
What are the pro and con of digital rights managment : What are the pro's and con's of Digital Rights Managment?
Describe operation and its different components or stages : Describe your operation, its different components or stages, the materials used and the type of wastes generated. What is your waste management plan and approach for protecting the environment and human health?
Design an employee class : Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.
What is probability that annual return given is positive : Suppose that a mutual fund has an annual rate of return that is normally distributed with a mean of 10% and a standard deviation of 4%. What is the probability that the annual return in a given year will be negative
Terms is not compatible with the other terms on the list : Which of the following terms is not compatible with the other terms on the list?
Describe a dbms and its functions : Describe a DBMS and its functions. Name some of the popular DBMS software? You should search the Internet for the updated DBMS technology.
Formal disaster recovery plan : Describe at least five components that should be incorporated in a formal disaster recovery plan in order that MailMed Inc. can become operational within 72 hours after a disaster affects its computer operations capability

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain program manager for human services program

Write down 200- to 300-word email to friend describing new position and its responsibilities, incorporating all vocabulary words.

  Mechanism that one app uses

What is the mechanism that one app uses to signal to another app that its cooperation is requested to accomplish something.

  Construct the work breakdown structure

Construct the Work Breakdown Structure, define all of the activities and sequence these, schedule the project and then resource and budget the project using Microsoft Office Project.

  When merge sorting you could recursively

Suppose when merge sorting you could recursively sort four sub-lists instead of two and still merge them all in linear time. Give the recurrence relation that describes this.

  Recognize ten different areas where software helps

In spreadsheet, recognize at least 10 different areas where software could help you, like collecting rent, performing tenant background checks, and scheduling building maintenance.

  Define artificial intelligence

Provide a reference list of at least 8-sources that are properly cited according to APA format. I would like to see a variety of sources, for example not just articles from one journal.

  Calculate performance of cache and the average cpi

Assume the instruction cache miss rate is 0.5% and the data cache miss rate is 1%. Calculate the performance of the cache (CPU execution time) and the average CPI.

  Perform the usual operations on circle

You should be able to perform the usual operations on the circle, such as setting the radius, printing the radius, calculating and printing the area and circumference.

  Describe why suggestion of connecting by twisted pair cable

Describe why you would suggest connecting all current and new client computers using twisted pair cable instead of staying with the current coax wiring structure.

  Write quickest and easiest way to recover data

What is the quickest and easiest way to solve most urgent problem, recovering data? Write the major steps in that process.

  File contains data for an individual wedding album

Each line of this file contains data for an individual wedding album and delivery. These data  are used to determine the total cost of producing and posting a batch of albums to a  customer. Each column of this file contains values for the following..

  Write a function create audio colla()

Write a function createAudioCollage() that will create an audio collage.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd