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

  Basics of code development on linux and cryptography

Prepare a C program that gives simple mono-alphabetic substitution between plaintext, and Enhance your code to use "-e" to encrypt a string argument and "-d" to decrypt it using argv and argc

  Read integers values one at a time from standard input

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150.

  Design and implement a c++ program for find friends

MCS2514Pgm1- Design and implement a C++ program that will help find friends according to a defined method. In particular, your program will find and display the ten people in database who answered a set of survey questions closest to what the user..

  Compute a program that calculates three resistance inputs

C language, compute a program that calculates three RESISTANCE inputs, and gives you the total resistance in OHMS. Like this, the total resistance is _____ ohms. These are three parallel circuits so the formula would be (1/R1 + 1/ R 2 +  1/ R 3 )  -1

  Write a program that reads an infix or postfix expression

Write a program that reads an infix or postfix expression from an input file, evaluates the expression and outputs the result.

  Explain in a one to two 1-2 page narrative a use case

as an intern software developer for a retail bank you have been tasked with developing use cases to support the atm

  Write a program to determine the cost of painting a room

implement the program to find the cost of painting a room - Write a program to determine the cost of painting a room.

  Write function that randomly produces maze

Write a function mazeGenerator that randomly produces a maze (in C++). The Function should take as arguments a two-dimensional 12-by-12 character array.

  Create the logic program

Create the logic for a program that accepts input values for the projected cost of a vacation and the number of months until vacation. Pass both values to a method that displays the amount you must save per month to achieve your goal.

  Use and provide information with minimal difficulty

Smartphones today have changed our ability to find, use and provide information with minimal difficulty, however, in the past ten years, smartphones have changed from single user oriented to multi user connectivity. For example, in our last class tim..

  How the project teams and coaches master agile methodology

Analyze how the project teams and coaches master the agile methodology to solve business problems. Highlight the one that you believe is the most effective and support your answer.

  Which of the following is a true statement

Which of the following is a true statement?

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