Question: 17. Write a program named Payroll that prompts the user for a name, Social Security number, hourly pay rate, and number of hours worked.

 17. Write a program named Payroll that prompts the user for a  

17. Write a program named Payroll that prompts the user for a name, Social Security number, hourly pay rate, and number of hours worked. In an attractive format (similar to Figure 2-23), display all the input data as well as the following: gross pay, defined as hourly pay rate times hours worked federal withholding tax, defined as 15 percent of the gross pay state withholding tax, defined as 5 percent of the gross pay net pay, defined as gross pay minus taxes C:\C# Chapter.82>Payroll Enter your name: Ruth Roberts Social Security number: 987-65-4320 Hourly pay rate: 13.58 Hours worked: 36 Payro11 Sunnary for: Ruth Roberts SSN: 987-65-4320 You worked 36 hours at $13.50 per hour Gross pay: Federal withholding: State withholding Net pay: C:\C# Chapter.02> $486.08 $72.98 $24.30 $388.80

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Certainly Below is an example program in C that fulfills the specified requirements This program prompts the user for name Social Security nu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!