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 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
You know the right answer?
Write a program that reads the following information and prints a payroll statement: Employee’s...
Questions