17. Write a program named Payroll that prompts the user for a name, Social Security number,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
4 Comparative Programming Languages illustrating your answer by explaining the meaning of the following fragment of code: [self isAwake] whileTrue: [| item | item := self askForCookie. (self...
-
The accompanying data are consistent with summary statistics that appeared in the paper Shape of Glass and Amount of Alcohol Poured: Comparative Study of Effect of Practice and Concentration (...
-
Raymond SA has retained earnings of 3,100,000 on January 1, 2017. During the year, Raymond earned 1,200,000 of net income. It declared and paid a 130,000 cash dividend. In 2017, Raymond recorded an...
-
The carbon monoxide in cigarettes is thought to be hazardous to the fetus of a pregnant woman who smokes. In a study of this hypothesis, blood was drawn from pregnant women before and after smoking a...
-
Repeat Example 7.3 using \(10 \mathrm{~kg} / \mathrm{h}\) of solvent in each stage. Data From Example 7.3:- The feed of Example 7.2 is extracted three times with pure chloroform at 298 K, using 8...
-
Keep Cool Industries, Inc., manufactures fans for personal use. Department 70 is responsible for assembling the fan. Department 71 packages them for shipment. Keep Cool recently produced 10,000 fans...
-
At some point in the life of a company or firm, a decision of how to expand is necessary. This is especially important in for-profit firms as shareholders typically require larger and larger...
-
On Monday Pat mailed an offer to Joan The last sentence of the offer read Acceptance of this offer must be received in mv office bv 1000 Wednesdav morning Joan received the offer on Tuesday morning...
-
Rather than assisting in the creation of value, marketing is responsible for many of societys ills. Discuss.
-
Explain the concept of the circular economy. Identify and discuss three businesses that you think are contributing to the idea of the circular economy.
-
What is the difference between cumulative voting and proxy solicitation?
-
Classify each of the following items as excludable, nonexcludable, rival, or nonrival. Oxygen A bottle of wine A view of a harbor A public square A Facebook post
-
A friend of yours who has been pursuing pottery as a hobby has just formed a business selling a range of gift items. Advise the founder on her options for distributing the companys products.
-
The share capital of Syria Ltd on 30 June 2014 was: $ 90 000 120 000 'A' ordinary shares issued at $1.50, paid to 75c 50 000 'B' ordinary shares issued at $2.00, fully paid 100 000 9% preference...
-
Read Case Study Google: Dont Be Evil Unless and answer the following: Given its mission of providing information to the world, should Google censor searches in China?
-
What is the purpose of the argument that is passed to an exception objects constructor? What happens if you do not pass an argument to the constructor?
-
What tag causes a line break? What tag causes a paragraph break? What tag displays a horizontal rule?
-
The method getValueFromFile is public and returns an int. It accepts no arguments. The method is capable of throwing an IOException and a FileNotFoundException. Write the header for this method.
-
Verify the color SU(3) representations for combinations of three or fewer quarks and antiquarks given in Eq. (19.28). Data from Eq. 19.28 qq=303=108 qq 3 3 603, 999 3 3 3 = 36315, qqq 3 3 3 1088 10,
-
Prove that Eq. (19.34) gives the simplest multi-gluon and gluon-quark states that contain an \(\mathrm{SU}(3)\) color singlet in the decomposition. Data from Eq. 19.34 (GG)1: (88)1 (Gqq) : [8 (383)8]...
-
A textile manufacturer is concerned about the strength of cotton yarn. In order to nd out whether fiber length is an important factor in determining the strength of yarn, the quality control manager...
Study smarter with the SolutionInn App