Design an employee class that has fields for name

Assignment Help C/C++ Programming
Reference no: EM13807319

Employee Production Worker Program 

Design an Employee class that has fields for the following pieces of information:

  • Employee Name
  • Employee Number

Next, 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.

Once you have 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.

You are to submit the following for the assignment:

1. RAPTOR file with the flowchart of  your working program.  Make sure you run it to make sure it is error free and does what it is supposed to do.

2. Use the generate dropdown to create example C++ code based on your working logical flow chart. Also attached the code in a Microsoft Word file or a text file.

Remember to follow the guidelines of good program design. Make sure to use meaningful variable names and include comments as needed.

Reference no: EM13807319

Questions Cloud

Decided to speculate that the price of crude oil will rise : You have decided to speculate that the price of crude oil will rise. You have entered into a position of 4 contacts of Light Sweet Crude Oil (1,000 barrels per contract, trades in dollars and cents per contract) at a price of $58.25. The initial marg..
Recent history of mexico : Recent history of Mexico
Business-level-corporate-level and international strategies : Business-level, Corporate-level, and International Strategies. Using an Online Library or the Internet, research about the following:
Design an employee class that has fields for name : Design an Employee class that has fields for the following pieces of information: Employee Name and Employee Number
What is net gain or loss after accounting for premium paid : A call option on an S&P 500 futures contract has an exercise price of 1490; the call premium is currently $6.50. On the same date, a put option on the S&P 500 futures contract has an exercise price of 1490; the put premium is currently $7.50. The two..
Evaluate the effectiveness of the current marketing mix : Evaluate the effectiveness of the current marketing mix for the brand you selected for your Final Project. Does the marketing mix meet goals of forming consumer brand relationships?
Five elements of a contract : Describe and analyze the five elements of a contract that must exist for this agreement to be enforceable.
About brazil : BRAZIL

Reviews

Write a Review

C/C++ Programming Questions & Answers

  One time for the entire number set

You must run your program one time for the entire number set. Test for EOF (or use the function feof()) to know when to stop processing. You are to determine if each integer read is prime or not, and output the result to stdout

  Creates a bus class

write a program that creates a bus class. create a constructor that initializes the number of passengers and number of seats. declare four objects. use the default copy constructor to initialize two of the objects.

  The function should accept the future value

The function should accept the future value, annual interest rate, and number of years as arguments. It should return the present value, which is the amount that you need to deposit today. Demonstrate the function in a program that lets the user expe..

  Simulate a multi-partitioned memory management system

Processes are also to be terminated by a GUI action. With each process change a free memory list status is to be output clearly showing the list items and their sizes.

  Write a program that accepts as input, without prompts

Write a program that accepts as input, without prompts, a series of short values, terminated by end of file. The program outputs one line:

  You are to create a text adventure game that uses pointers

you are to create a text adventure game that uses pointers. you have a rich eccentric uncle billy who is soon to be

  Write a program that reads from a file a list of course name

Write a program that reads from a file a list of course names, letter grades for each course and number of credits each course is worth. The program will read each course name, grade earned and number of credits from the file and print out the course..

  Write code that declares an int array named month

Write code that declares an int array named month with 5 rows and 7 coloumns and initializes every element to -1.

  Implement a function called findmax

Implement a function called findMax that finds the maximum value in a 2¬dimensional array.

  Programing in c data validity

write a main function to input 20 integers in the range of 1 to 6. write a function count the number of times the numbers 2 and 5 occur. the function should declare static variables count2 and count5. check the data validity in the main functi..

  Write a recursive function that takes a string as parameter

Write a recursive function that takes a string as a parameter and prints its reversal in the same function in c++

  Write a program that uses a nested loop

Write a program that uses a nested loop togenerate the output shown below. Be sure that the value on the line changes with each digit displayed. For example, line 5 has the values "1", "2", "3", "4", and "5".

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