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 program which reads three integer from input dialogs

Write down the program which reads three integer. Integers are entered from input dialogs and stored in variable num1, num2, and num3, respectively.

  Write a program that plays the game of fermi

1.Write a program that plays the game of Fermi. The program generates three distinct random digits between 0 and 9. These digits are assigned to positions 1, 2, and 3. The goal of the game is for the player to guess the digits in three positions corr..

  Determine and print the average age of your family

Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who live in Texas

  Communicate with a pc using the rs232c serial protocol

In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.

  Program to find sum-difference of two complex numbers

Program should ask user to enter two complex numbers and it automatically finds it sum, difference, coefficient, product conjugate.

  Draw a plot showing sustained oscillations

Use the Ziegler-Nichols (Z-N) method to find Ku and Tu. Draw a plot showing sustained oscillations and period of the oscillations. An example plot is shown in figure 3.5. Provide the values of Ku and Tu.

  Illustrate whether program will fit in address space

Will this program fit in address space? If page size were 512 bytes, would it fit? Remember that page may not contain parts of two different segments.

  Generate three address code

For each of the given C assignment statements.- Generate three-address code, assuming that all array elements are integers taking four bytes each.

  Write program to calculate student-s quiz average

Write a program that will calculate a student's quiz average. The program should prompt the user for the number of quizzes and then ask the user for each quiz grade.

  Indicate the saved display entry

Show the display at the moment the first call to fib0(1) is about to return. Also, indicate the saved display entry in each of the activation records on the stack at that time.

  Perform an analysis of an information system

CC08-1 - System Analysis and Design - Business for which an information system is needed and specify what motivates you to select

  Create application to enter number of units sold

Quantity discounts are given according: create an application that allows the user to enter the number of units sold for each software package.

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