Question: Write a program that displays a weekly payroll report. A do-while loop in the program should ask the user for the employee number, gross pay,

Write a program that displays a weekly payroll report. A do-while loop in the program should ask the user for the employee number, gross pay, and state (using the two character abbreviation). The program should use this information to compute withholdings. The loop will terminate when -1 is entered for the employee number. After the data is entered, the program should display totals for gross pay, state tax, federal tax, FICA withholdings, and net pay. In addition, the program should generate an output file that shows all of the employees along with the final report. The output file should be named "weekly payroll report.txt" Withholdings should be computed using the following criteria: 1. FICA is 7.65% of the gross wages 2. State taxes vary by state: Tax State Rate AK, FL, NV, SD TX, WA, WY, NH, TN 0% CA, HI, OR, MN 10% All others 5% 3. Federal taxes vary by weekly income (assuming head-of-household only): Weekly Wages Tax Rate $0-$299.99 10% $300 - $999.99 12% $1000 - $1599.99 22% $1600-$2999.99 24% $3000 - $3999.99 32% $4000 - $9799.99 35% $9800 or more 37% Input Validation: Do not accept negative numbers for any of the items entered. You do not need to check the validity of an entered state value, use 5% for any incorrectly entered state CIST2361: C++ Programming 1 (Hybrid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
