Question
The program that calculates the simple weekly payroll for up to20 employees. The app will prompt for employee name, hourly rateand number of hours worked.
The program that calculates the simple weekly payroll for up to20 employees. The app will prompt for employee name, hourly rateand 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%), andmedicare deduction (gross pay * 1%). The payroll report will showthe calculation for each employee and the cumulative totals.Example: How many employees to process? 2 1 Enter name: John 1Enter hourly rate: 15.75 1 Enter number of hours worked: 35 2 Entername: Maria 2 Enter hourly rate: 20.00 2 Enter number of hoursworked: 40 Employee: rate: hours: Gross: W/T: SS: Med: Net: John15.75 35 551.25 27.56 16.54 5.51 501.64 Maria 20 40 800 40 24 8 728Total 75 1,351.25 67.56 40.54 13.51 1,239.64
This needs to be in c++.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started