Question: in Java coding Payroll - Printf statements. Round to 2 decimals 5points Write a program reads the following information and prints a payroll statement Employee's
in Java coding
Payroll - Printf statements. Round to 2 decimals 5points
Write a program reads the following information and prints a payroll statement
Employee's name: Sri Number of hours worked in a week: 20 Hourly pay rate: 20 Federal tax withholding rate: .20 State tax withholding rate: .09
Calculate Gross Pay: Deductions: Federal Withholding State Withholding Total Deduction Net Pay
Output Should look like this Enter employee's name: Sri Enter number of hours worked in a week: 100 Enter hourly pay rate: 20 Enter federal tax withholding rate: .20 Enter state tax withholding rate: .09 Employee Name: Sri Hours Worked: 100.00 Pay Rate: $20.00 Gross Pay: $2000.00 Deductions: Federal Withholding (20.00%): $400.00 State Withholding (9.0%): $180.00 Total Deduction: $580.00 Net Pay: $1420.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
