Question: Write a program in C++ that displays a weekly payroll report. A loop in the program should ask the user for the emplyee number, gross

Write a program in C++ that displays a weekly payroll report. A loop in the program should ask the user for the emplyee number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when ) is entered for the emplyee number. After the data is entered, the program should display totals for gross pay, state tax, federal tax, FICA withholdings, and net pay. Do not accept negative numbers or values for state, federal or FICA withholdings that are greater than the gross pay. Print a error message is the sum of state tax=federal tax= FICA withholdings is greater than gross pay.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!