Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
image text in transcribed
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 0% TN CA, HI, OR, MN All others 10% 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

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

What is a verb?

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago