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

  What is network architecture

what is the most popular network architecture.

  About snmp

What do you understand by the term SNMP? Explain the role which SNMP plays in managing the networks.

  Developing the reports useful for business decisions

Database reports offer us with the capability to further analyze our data and offer it in the format which can be utilized to make the business decisions.

  Program to persons ability to vote

Write down a program which asks for the user's age. On the basis of their response print "You may vote" (18 years old or older) or "You can't vote"

  Write down one method containing string manipulations

Program should include a method for each element. Write one method containing String manipulations, one that includes if-else statements, and one that includes a switch.

  Sql query to determine lowest, highest, average salary

Let's assume that we wanted to determine the lowest, highest, average and total number of the salaries by department in company. What SQL query would provide us this.

  Create a sql query that returns the names of the students

Write down a SQL query that returns the names of the students (lname, fname), and the major of the major with most students. If more than one major is tied for most students, then list all the names of the students from both majors (as well as the..

  How pipes and tcp/ip sockets named libraries differ

What are the various kinds of clients that can be used to connect to SQL Server 2000 and the network requirements necessary for successful communications between the client and server.

  Where would you place them

There are various ways to debug a program, perhaps the most elementary is using a printf() statement to show important pieces of information regarding the program execution point, variable value, and loop and branch operation.

  Figure out how opening multiple simultaneous connections

I know the processor deals with each request either by LIFO or FIFO and never gets confused about what to do and I am sure it could handle such pressures like opening multiple pages all at one time well.

  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.

  What is the load balancing

What are your different options (in general and with Apache) for load balancing.

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