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

  Write a java application which finds the total

Write down a JAVA application that finds the total and average of odd numbers from 1 to 15. Your JAVA program must use a counted loop to accomplish this task.

  Cashregister requires to support a method void undo()

imagine the CashRegister needs to support a method void undo() that undoes the addition of the preceding item. This enables a cashier to quickly undo a mistake. What instance variables should you add to the CashRegister class to support this modif..

  How to generate a class diagram for the entity classes

How to generate a class diagram for the entity classes

  A non-linear circuit problem

Computer program which will calculate the voltage across a resistor in the circuit

  Find whether the numbers would be an arithmetic

assume you are given a list of n integers in random order. Describe an algorithm that will determine whether the numbers would be an arithmetic progression if they were sorted.

  Describe the function and purpose of each component

describe how the components are related to each other. For example, does the component you are describing depend on another to operate? Is it connected to the network physically or wirelessly.

  What are the serious challenges faced

What are the serious challenges faced when creating in-house software applications and what is the best process of training users on new software.

  Java program that allows a user to enter three words

design a Java program that allows a user to enter three words, and displays the appropriate three-letter acronym (constructed from the input) in all uppercase letters. If user enters more than three words, ignore the extra words.

  Determining the better internet browser

Which among the following is better software tool: Mozilla Firefox, Internet Explorer, or Google Chrome? Supplement your argument with evidence, and signify whether or not you alter your position based on the discussion.

  Handling of disclosure of companys information

A company find out that some of its proprietary information has been unveiled within the Internet chat rooms.It asks ISPs to disclose actual identities of these people. Should the ISPs comply along with this request? Describe your reasoning.

  Explain basic wireless network maintenance functions

Occasionally after upgrading firmware, the antennas in your wireless network want to be adjusted. What technology may someday eliminate this need for antenna maintenance.

  In brief explain the use of views

define the paradigm mismatch between SQL and programs.

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