Design a class named productionworker

Assignment Help Computer Engineering
Reference no: EM1334838

Design an Employee class that has fields for the following pieces of information:

* Employee Name
* Employee Number

Also 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.

After having 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. Please provide a Flowchart, and a Pseudocode following the guidelines of good program design, like meaningful variable names and thoroughly commented code.

After having 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. Please provide a Flowchart, and a Pseudocode following the guidelines of good program design, like meaningful variable names and thoroughly commented code.

Reference no: EM1334838

Questions Cloud

Trade-offs to the strategy : For years, Ferrari has been known as the manufacturer of expensive luxury automobiles.  As Ferrari considers this trading-down strategy, what branding strategy would you recommend? What are the trade-offs to consider with your strategy?
Implications of changing workforce demographics : Prepare a "continuity plan" that includes the following workforce assessment and What are the implications of changing workforce demographics including the aging workforce
Illustrate marketing- pricing- distribution on these firms : Illustrate what marketing, pricing, distribution or other competitive advantages can firms exploit. What limits or constraints are on these firms.
Explain finding the critical path and project duration : Explain Finding the Critical Path and Project Duration and Determine the probability that the project will be finished in 80 days or less
Design a class named productionworker : 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. make the appropriate accessor and mutator met..
Benefits of the family medical leave act : What are the benefits of the Family Medical Leave Act (FMLA)? How do these benefits relate to other types of employment leaves and Can the provisions of the Act be abused?
Changes in the criminal justice : Discuss the current state of criminal justice for the areas you choose and provide support for the ways in which criminal justice will change.
Gross domestic product : "How is Gross Domestic Product - GDP calculated using the expenditure and the income approach?
Person-s perception of others impact organization-s behavior : How can a person's perception of others impact an organization's behavior?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a program to read this list of prices

Wrtie down a program to read this list of prices and the sales table and calculate total dollar sales for each salesperson and the total dollar sales for all salespersons.

  Provide a java class named "input"

Provide a Java class named "Input" containing the method "readInt" (prototype given below) that displays the prompt string, reads an integer, and tests either it is between the supplied minimum and maximum. If not, it prints an error message and r..

  Find out a java application on the web

Find a Java application on the Web and explain how the program structure functions.

  Create a class titled schooltextbook in java

Write the application with an array that holds 5 instances of the SchoolTextBook class, filled without prompting the user for input. Next prompt the used to enter a field for sorting, sort array of objects based on the user input.

  Creating database for company

If you were preparing to create a brand new database for a company, do you think there would be any value in the interviewing the users to determine out what colors and designs they like?

  Consider the fundamentals of object oriented programming

give an accompanying illustration for each of the fundamentals(example, code sample, etc.)Note: Try to use Java and not C++ for examples.

  Make use of a stack for the infix to postfix conversion

comprise a README file describing how to run your program and give an example.make Use of a stack for the infix to postfix conversion.

  Implementation of stack

The standard Java library implements the Stack class, however in this exercise you are asked to offer your own implementation. Do not implement kind of parameters.

  Improving the response to disaster

Also determine if you may find how the plans helped officials improve the response to disaster. How do the plans help the recovery?

  Give differences between human centered and user centered

What are the differences between "human centered" and "user centered" approaches? Do you agree that human centered approach is more effective? Why or why not?

  Design an application that instantiates five clients

The law firm of Howard, Fine and Howard wants to develop two classes- a Client class that holds data about the firm's clients and an attorney class that holds data about each of attorneys who work for the firm.

  Research for a voip solution

In the future, Klamath’s separate the voice network will be dismantled. All the voice, data, and video traffic will traverse Metro Ethernet network.

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