Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Solution Certainly Below is an example program in C that fulfills the specified requirements This program prompts the user for name Social Security nu...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started