Question: Write a C++ program which uses appropriate functions and parameters passing that will perform the following tasks. Exam 1 Program: You need a program to
Write a C++ program which uses appropriate functions and parameters passing that will perform the following tasks.

Exam 1 Program: You need a program to maintain information about your employees' payroll. Assume that you have the following employees: Name Hours Worked Hourly RateFederal Tax State Tax Rate James, Kobe Bryant, Lebron Jordan, Larry Bird, Michael 42.7 32.65 36.1 55.25 $38.14 $49.35 $44.95 $54.33 Rate 19.2% 20.4% 19.6% 22.7% 75% 8.75% 7.8% 9.25% Write a C++ program which uses appropriate functions and parameter passing that will perform the following tasks Task 1: Allow the user to enter in the data for each employee. (The user will not enter the $ or % symbols.) Task 2: For each employee, calculate the gross pay, the federal tax owed, the state tax owed, and the net pay. The formulas to use are as follows: hours worked hourly rate (overtime hours (hours over 40) should be paid at time and a half) gross pay federal tax owed gross pay *federal tax rate 100 state tax owed gross pay "state tax rate/100 net pay gross pay-federal tax owed-state tax owed Task 3: Print out the name for each employee followed by the results of your four calculations from Task 2 Task 4: Calculate and print the total gross pay, the total federal tax owed, the total state tax owed, and the total net pay for all four of the employees. Task 5: Calculate and print the total of the overtime pay along with the number of employees that worked overtime. (2 employees in the data worked overtime)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
