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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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