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 employees 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.Submit your project as an attachment, including 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 inputname, 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 36 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 CenterEnter the employee name = JohnEnter the hours worked = 44Enter his or her hourly wage = 3.33Enter the employee name = MaryEnter the hours worked = 33Enter his or her hourly wage = 2.22Enter the employee name = MarkEnter the hours worked = 29Enter his or her hourly wage = 2.22Employee Name . = JohnBase Pay = 133.20Hours in Overtime = 4Overtime Pay Amount.. = 19.98Total Pay .. = 153.18Employee Name . = MaryBase Pay = 73.26Hours in Overtime = 0Overtime Pay Amount.. = 0.00Total Pay .. = 73.26Employee Name . = MarkBase Pay = 64.38Hours in Overtime = 0Overtime Pay Amount.. = 0.00Total Pay .. = 64.38%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Total Employee Salaries .. = 290.82%%%% Total Employee Hours .. = 106%%%% Total Overtime Hours = 4%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Programming
[Solved] SOLVED:program that calculates overtime pay for all employees
$25
File Name: SOLVED:program_that_calculates_overtime_pay_for_all_employees.zip
File Size: 574.62 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.