Question: Programming language is C++ PA 7-1 (25 points) Write a program to process a payroll for a small company. Calculate gross pay including the possibility
Programming language is C++

PA 7-1 (25 points) Write a program to process a payroll for a small company. Calculate gross pay including the possibility of overtime. Calculate payroll tax depending on the employee code and state code. Demonstrate you can use && and/or |I for this program Overtime is paid at the rate of 150% of hourly wages for every hour over 40 Employees with Code B pay no taxes For Code A employee's, If an only 4.5% taxes. I * Code is Y they pay 790; with State Code J pay . * Assume the user does not make any error when inputting data * Display the gross salary, tax, and net salary for each employee e Format the output "professionally" - lined up decimals, etc as shown below D:CodeBlocks-EP1CodeBlocks-EP Marsh2050 binlDebug\Marsh2050.exe This program calculates the net pay for each employee At each prompt, enter the requested data. Enter the pay rate: 11.25 Enter the number of hours worked: 53 Enter the employee code (A or B): A Enter the state code (Y or J): Y Regular Pay: 450.00 Overtime Pay: 219.38 Gross Pay: 669.38 46.86 Net Pay: 622.52 D:CodeBlocks-EP CodeBlocks-EP Marsh2050 bin\Debug Marsh2050.exe his program calculates the net pay for each employee At each prompt, enter the requested data Enter the pay rate: 11.25 Enter the number of hours worked: 53 Enter the employee code (A or B): B Enter the state code (Y or J): J Regular Pay: 450.00 vertime Pay: 219.38 669.38 0.00 ross Pay ax: Net Pay: 669.38
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
