Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions