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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Which of the following processes applications across multiple computing devices? a. functional application b. distributed system c. workgroup information silo d. information silo
Answers: 3
You know the right answer?
Write a program that reads the following information and prints a payroll statement: Employee’s...
Questions
question
Health, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01
Questions on the website: 13722363