Cpp program display overtime or regular time pay calculation

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

This programming assignment is for C++ and should include all files for the program to be run and tested in Visual 2010 Express.

You would need two appendixes for this assignment that are included below.

Examine the following situation:

Your company, Datamax, Inc., is in the process of automating its payroll systems. Your manager has asked you to create a program that calculates overtime pay for all employees. Your program must take into account an employee's salary, total hours worked, and hours worked more than 40 in a week. It must then provide an output that is useful and easily understood by company management.

Compile your program utilizing the following background information and the code outline in Appendix D.

Include the code and the output.

Company background:

The company has three employees: Mark, John, and Mary.

The end user needs to be prompted for three specific pieces of input-name, hours worked, and hourly wage.

Calculate overtime if the input is greater than 40 hours per week.

Provide six test plans to verify the logic within the program.

Plan 1 must display the proper information for employee #1 with overtime pay.

Plan 2 must display the proper information for employee #1 with no overtime pay.

Plans 3-6 are duplicates of plan 1 and 2 but for the other two employees.

Program requirements:

Define a base class to use for the entire program.

The class holds the function calls and the variables related to the overtime pay calculations.

Define one object per employee. Remember that there will be three employees.

Your program must take the objects created and implement calculations based on the total salaries, total hours, and total number of overtime hours. See the Employee Summary Data section of the sample output.

Logic steps to complete your program:

Define your base class.

Define your objects from your base class.

Prompt for user input, updating your object classes for all three users.

Implement your overtime pay calculations.

Display overtime or regular time pay calculations. See the sample output.

Implement object calculations by summarizing your employee objects and display the summary information in the example.

Sample output:

Welcome to the Employee Pay Center

Enter the employee name = John

Enter the hours worked = 44

Enter his or her hourly wage = 3.33

Enter the employee name = Mary

Enter the hours worked = 33

Enter his or her hourly wage = 2.22

Enter the employee name = Mark

Enter the hours worked = 29

Enter his or her hourly wage = 2.22

Employee Name ............. = John

Base Pay .................. = 133.20

Hours in Overtime ......... = 4

Overtime Pay Amount........ = 19.98

Total Pay ................. = 153.18

Employee Name ............. = Mary

Base Pay .................. = 73.26

Hours in Overtime ......... = 0

Overtime Pay Amount........ = 0.00

Total Pay ................. = 73.26

Employee Name ............. = Mark

Base Pay .................. = 64.38

Hours in Overtime ......... = 0

Overtime Pay Amount........ = 0.00

Total Pay ................. = 64.38

EMPLOYEE SUMMARY DATA

Total Employee Salaries ..... = 290.82

Total Employee Hours ........ = 106

Total Overtime Hours......... = 4

Reference no: EM13763095

Questions Cloud

Examine a desktop application : Examine a desktop application. How would you make it mobile. Examine a mobile application. Why is it not a desktop application
Relationship between art and american culture. : How and why was the art produced by the Ashcan School different from that of the Gilded Age.
Description of social-political and economic effects : What role does digital technology play in freedom of speech and democracy.
What events in beverly clearys life contributed : What events in beverly clearys life contributed to her becoming a writer?
Cpp program display overtime or regular time pay calculation : Display overtime or regular time pay calculations. See the sample output. Implement object calculations by summarizing your employee objects and display the summary information in the example.
Wite a brief modest proposal on social and political problem : wite a brief modest proposal on social/political/economic/pop-culture problem and through satire, propose your solution for this problem.
Produce a budget forecast for the upcoming month : You are the Chief Comptroller for Acme Corporation. CEO Elmer Fudd has asked you to produce a budget forecast for the upcoming month
Algorithm attributes and their importance. : Write a 2 page research paper (excluding title and reference pages) on algorithm attributes and their importance. Use two resources (Wikipedia sources are not permitted) and list each resource used at the end of the paper in the reference list sec..
Function that returns a token when it is needed. : A major component of your assignment will be to write a procedure (Function) that returns a token when it is needed. Your lexer should return a record, one field for the token and another field the actual "value" of the token (lexeme), i.e. the in..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that allows a salesclerk to enter an item

Write a program in C++ that allows a salesclerk to enter an item's price and the quantity purchased by a customer.

  Draws a single level for a "rogue­like" computer game

You will write a program that draws a single level for a "Rogue­like" computer game. The program will parse a line of input text from an input file (room.txt), use the parsed text to determine the shape of the room and its contents and then draw the ..

  Calculation of mortgage interest rates

Instruction of pointers and the calculation of mortgage interest rates.

  Base process which communicate with child processes

Write a program which has a "base process" which communicates with child processes acting as "bombers" that it creates.

  Application which will read a file of daily payments

C++ application which will read a file of daily payments, calculate the total as well as the average payment, display the results to the screen and write the results to a file. The input and output file names should be provided as command line argume..

  Assume that section

Assume that section _1 seats are in front of the stage, and the price is expensive. say, each seat in the 1st three rows is $180.00, and each seat in the last two rows is 10% less;

  Create a customer profile class.

a. Create a CustomerProfile class. Each CustomerProfile contains a last name, phone number, and bit fields indicating whether the customer:

  Whitewater high school has contracted

Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer

  Implement function types that takes no input

Implement function types that takes no input, declares 3 variables of type char, 3 of type short, 3 of type int, and 3 of type double.

  Struct definition as the page table entry

Struct definition as the page table entry and the array that follows it as the page table. Implement the software simulation of least recently used algorithm in two C++ functions. Should RUN on UNIX.

  Problem related to calculating average in program

Here's the program i must do: 3 evaluators will evaluate 4 parameters ( just name them parameter1, parameter2 ...) the program must ask the evaluators to input those parameters but as letters (N=1,M=2,S=3,B=4,E=5) then I have to do the average for..

  Create a program with just one function

Create a program with just one function that uses the selection sort to sort a linked list IN C++

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