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

  Define difference between a shallow copy and a deep copy

Overload the operator += for the class newString to perform the following string concatenation; suppose that s1 is "Hello" and s2 it "there". Then the statement s1 += s2; should assign "Hello there" to s1, where s1 and s2 are newString objects.

  Modify the pseudocode and optimize

offer valid reasons why the pseudocode is now more efficient.

  What is online analytical processing system

What is online analytical processing system

  Developing logic for program

Design the logic for a program which reads in 100 customer records and stores first and last names and total purchases in three parallel arrays.

  Justify the utilization of a particular level

we are learning about Online instant storefronts and the 3 different categories. I am not sure I understand the difference between these. Please help to me identify each and differ between them. Also if you can let me know what potential customer a..

  Effects of technology

Select a new technology that interests you and analyze it from the sociological point of view. What do you consider this technology would contribute towards the society?

  Define the difference between testing and debugging

Why do companies usually release software that is not bug-free.

  Designing a web page

In designing a web page, depending upon the information you are trying to convey, use of the tables may add the great deal of the organization on help clear any possible confusion on what you are trying to communicate.

  Designing the flow chart and algorithm

Write down an algorithm and develop a flow chart to find all the people who have computer experience and at least five years of company service.

  Make a program display a sports related image of your choice

design a document that contains four short paragraphs of text, stacked on top of each other, with only enough of each showing so that the mouse cursor can always be placed over some part of them.

  How to write code for selection sort, insertion sort

How to write code for selection sort, insertion sort. Using your performance of selection, bubble and insertion sort, add a counter in an appropriate place so as to measure the runtime of your code for example this capacity be a counter to track ..

  Pros and cons of the model-view-controller

define the benefits and limitations of the model-view-controller (MVC) principle. Identify one way in which MVC helps software designers create better code, and one way in which it deters them.

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