Write a program that inputs the hourly rate and number of hours worked. Compute and display the gross pay (hourly rate * hours worked), your withholding tax, which is 15% of your gross pay and your net pay (gross pay – withholding tax). Hourly rate : 104.65 Hours worked : 22 Gross pay : 2302.3 Withholding tax : 345.345 Sample output : Net pa y: 105 6 055

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question

Lesson 1 No. 4 (JAVA)

4. Write a program that inputs the hourly rate and number of hours worked. Compute
and display the gross pay (hourly rate * hours worked), your withholding tax, which
is 15% of your gross pay and your net pay (gross pay – withholding tax).
Hourly rate : 104.65
Hours worked : 22
Gross pay : 2302.3
Withholding tax : 345.345
Sample output :
Net pay : 1956 955
Transcribed Image Text:4. Write a program that inputs the hourly rate and number of hours worked. Compute and display the gross pay (hourly rate * hours worked), your withholding tax, which is 15% of your gross pay and your net pay (gross pay – withholding tax). Hourly rate : 104.65 Hours worked : 22 Gross pay : 2302.3 Withholding tax : 345.345 Sample output : Net pay : 1956 955
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning