Write a class named productionworker that is a subclass

Assignment Help Programming Languages
Reference no: EM131877144

Programming Assignment

Write an Employee class that keeps data attributes for the following pieces of information:

Employee name

Employee number

Be sure to include the appropriate accessor an mutator methods.

Next, write a class named ProductionWorker that is a subclass of the Employee class. The ProductionWorker class should keep data attributes for 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 attribute 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. Write the appropriate accessor and mutator methods for this class.

Once you have written the classes, write a program that creates an object of the ProductionWorker class and prompts the user to enter data for each of the object's data attributes. Use the mutator methods to enter data into the objects. Store the data in the object and then use the object's accessor methods to retrieve it and display it on the screen.

Reference no: EM131877144

Questions Cloud

Different levels of government work together : Provide a possible solution to the current way of hydrofracking that would be better by having different levels of government work together.
Bushels of pears per bushel of apples : What would Donna and Carlos agree to as acceptable terms of trade? _____________ bushels of pears per bushel of apples.
Describe the roles of the three sections of crc : Describe the roles of the three sections of CRC (class responsibility collaborator) cards? List three types of classes that may be present in analysis model.
Compute the direct labor price and efficiency variances : The company manufactured 30,000 units of product during the year. Compute the direct labor price and efficiency variances for the year
Write a class named productionworker that is a subclass : write a class named ProductionWorker that is a subclass of the Employee class. The ProductionWorker class should keep data attributes for the given information.
Calculate country a gdp : She then asks you to choose an approach to computing GDP and use it to calculate it to calculate country A's GDP.
What would be the impact on the company overall profit : Required: If the special order were accepted, what would be the impact on the company's overall profit (prove it)
Explain the employment-at-will doctrine : Discuss the implications of agency law that apply in this situation, and describe at least one (1) way the company may be able to cancel or return the order.
Explain the phrase without a margin : Explain the phrase "without a margin there is no mission" in healthcare industry

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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