subject

Write a program that reads the following information and prints a payroll statement: Employee’s name (e. g., Smith)

Number of hours worked in a week (e. g., 10)
Hourly pay rate (e. g., 9.75)
State tax withholding rate (e. g., 9%)
Federal Withholding
If the gross pay is less than $100.00, set the rate at 0%.
If it's at least $100.00 but less than $200.00, set the rate at 5%.
If it's at least $200.00 but less than $300.00, set the rate at 10%.
If it's at least $300.00 but less than $400.00, set the rate at 15%.
Else, if it's $400.00 or more, set the rate at 20%.

A sample run is shown below:

Enter employee's name: Smith
Enter number of hours worked in a week: 10
Enter hourly pay rate: 10.75
Enter state tax withholding rate: .09
Employee Name: Smith
Hours Worked: 10.0
Pay Rate: $10.75
Gross Pay: $107.5

Deductions:

Federal Withholding (5.0%): 5.38
State Withholding (9.0%): 9.67
Total Deduction: $15.05
Net Pay: $92.45
Enter employee's name: Taylor
Enter number of hours worked in a week: 40
Enter hourly pay rate: 13.00
Enter state tax withholding rate: .15
Employee Name: Taylor
Hours Worked: 40.0
Pay Rate: $13.0
Gross Pay: $520.0

Deductions:
Federal Withholding (20.0%): 104.0
State Withholding (15.0%): 78.0
Total Deduction: $182.0
Net Pay: $338.0

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 13:30, lorelaistudent
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, andybiersack154
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
image
Computers and Technology, 25.06.2019 04:30, greenbyron88
You can fit more raw files on a memory card than the jpeg files? truefalse
Answers: 1
image
Computers and Technology, 25.06.2019 10:30, coco4937
How do you transfer an image onto a computer
Answers: 2
You know the right answer?
Write a program that reads the following information and prints a payroll statement: Employee’s...

Questions in other subjects:

Konu
Mathematics, 24.06.2021 03:40
Konu
Mathematics, 24.06.2021 03:40