Question: The program that calculates the simple weekly payroll for up to 20 employees. The app will prompt for employee name, hourly rate and number of
The program that calculates the simple weekly payroll for up to 20 employees. The app will prompt for employee name, hourly rate and number of hours worked. It will then calculate for gross pay (hourly rate * number of hours worked), withholding tax deduction (gross pay * 5%), social security deduction (gross pay * 3%), and medicare deduction (gross pay * 1%). The payroll report will show the calculation for each employee and the cumulative totals.
Example: How many employees to process? 2
1 Enter name: John
1 Enter hourly rate: 15.75
1 Enter number of hours worked: 35
2 Enter name: Maria
2 Enter hourly rate: 20.00
2 Enter number of hours worked: 40
Employee: rate: hours: Gross: W/T: SS: Med: Net:
John 15.75 35 551.25 27.56 16.54 5.51 501.64
Maria 20 40 800 40 24 8 728
Total 75 1,351.25 67.56 40.54 13.51 1,239.64
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
