Design an employee class

Assignment Help Programming Languages
Reference no: EM13805240

Employee Production Worker Program-

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.

You are to submit the following for the assignment:

Submit your JAVA source code that you generated from RAPTOR with comments added to each line or where necessary to explain program flow. Also submit the RAPTOR file (flowchart) of your working program.

Make sure you run it to make sure it is error free and does what it is supposed to.

You can use the generate dropdown to create example JAVA code based on your working logical flow chart to see what the code would look like.

Reference no: EM13805240

Questions Cloud

Explain responsibility of a critical thinker in a society : Research the responsibility of a critical thinker in a contemporary society. You may choose any topic that deals with a contemporary social concern.
The difference in taste between sprite and sierra mist : Assume that the observations are independent of each other. Which hypothesis test is the appropriate one to use in this situation? Why?
What are the issues your organization or group is concerned : What is the organization or group's website. What are the issues your organization or group is concerned with
An automatic transmission and a sun roof based problems : If a citizen who is a Republican is randomly selected, what is the probability that they voted in the last election?
Design an employee class : Design an Employee class that has fields for the following pieces of information: Employee Name and Employee Number
Identify ethical perspectives in the global organization : Identify and research a cultural issue that affects this organization's interactions outside the United States. Define the issue and provide an overview of how became an issue in the organization.
Continuous improvement of a company : Assume that you have recently been hired as the director of continuous improvement of a company. You are an outside hire with limited history of the firm and personal capital at the firm, and you are responsible for lean production, total quality ..
What role would the pmt function and vlookup function play : What role would the PMT function and the VLOOKUP function play in what-if analysis? Include in your answer an explanation of what what-if analysis and how those functions fit in with it
Explain why nafta has not been good for the united states : It is a debate and i was assigned the no side. so the paper has to be about why nafta has not been good for the United States.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write down program which declares integer variables

Write down complete program which declares the integer variable, reads value from the keyboard into that variable, andwrites to standard output variable's value, twice the value.

  Creating a security policy by gathering information

Suppose mantle of a security consultant. You are asked to visit a client and gather information to develop a security policy for them.

  Write shell script to read from keyboard-display on monitor

Write shell script called poject.21 to read from keyboard and display on monitor first name, last name and age if the age is less than 50.

  Decisions & conditions

Decisions & Conditions

  Write program which translates letter grade into grade

Write a C++ program which translates the letter grade into a number grade. Letter grades are A B C D F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0.

  Create a windows application and design document

create a complete C# Windows application and design documents based on the following specifications and instructions.

  Program prompt teacher to input student number

The program must prompt teacher to input student number. Quiz score for that student will be displayed. Program can prompt for each quiz score.

  Javascript function for cookie added to user-s computer

JavaScript function has verified that all the required fields have been filled, cookie is added to user's computer. If same user attempts to fill out form second time.

  Prompt for user login to begin using the system

Suggest an application system which is able to perform some arithmetic computations, like commission system, encryption system, timer system, etc, from anyone of the following industry.

  Design and implement a java program

Design and implement a Java program which defines an array of size SIZE, randomly populated with Integer or int values in the range 1 .. MAXRNG and sorts the array in increasing order of its values using QuickSortOpt1 and then by QuickSortOpt2. Consi..

  Write program to simulate bank transaction

Write a program to simulate a bank transaction. There are two bank accounts: checking and savings. First, ask for the initial balances of the bank accounts.

  Compute the area of a circle

In MIPS assembly, write an assembly language program which asks a user for a decimal number, converts it to hex, prints the result.

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