Question: Program 4:Work programming exercise 4.23, page 156. Name it Payro1l. Run the program with different input values. Document the code and follow the output model
Program 4:Work programming exercise 4.23, page 156. Name it Payro1l. Run the program with different input values. Document the code and follow the output model shown in the sample run in the textbook. (Financial application: payrol) Write a program that reads the following inf. mation and prints a payroll statement: 4.23 Employee's name (e.g.. Smith) Number of hours worked in a week (e.g.. 10) Hourly pay rate (e.g.. 9.75) Federal tax withholding rate (e.g., 20%) State tax withholding rate (e.g., 9%) A sample run is shown below: Enter employee's name: Smith Enter number of hours worked in a week: 10 Fent Enter hourly pay rate: 9.75 eter Enter federal tax withholding rate: 0.20 Enter state tax withholding rate: 0.09-En in Employee Name: Smith Hours Worked: 10.0 Pay Rate: $9.75 GrossPay: $97.5 n#xfwl.e Deductions: , Federal withholding (20.0%): $19.5 State withholding (9.0%): $8.77 Total Deduction: $28.27 (n r Net Pay: $69.22 Gas-oid t Please write this Java program as simple as possible and with comments throughout explaining what is happening. Thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
