Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Starting Out With Java From Control Structures Through Data Structures

Authors: Tony Gaddis

6th Edition

0133957055, 978-0133957051

More Books

Students also viewed these Programming questions

Question

2. Complete the table to find the single deposit investment amounts

Answered: 1 week ago

Question

What is a lobbyist in US? How did this term emerge?

Answered: 1 week ago