Question: first execution line of a class has to be a class statement please *4.23 (Financial application: payroll) Write a program that reads the following information

first execution line of a class has to be a class

first execution line of a class has to be a class

first execution line of a class has to be a class statement please

*4.23 (Financial application: payroll) Write a program that reads the following information and prints a payroll statement: 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%) Sample Run for Exercise04_23.java Enter input data for the program (Sample data provided below. You may modify it.) smith 10 9.75 0.20 0.09 Show the Sample Output Using the Preceeding Input Reset Execution Result: JDK8>java Exercise04_23 Enter employee's name: smith Enter number of hours worked in a week: 10.0 Enter hourly pay rate: 9.75 Enter federal tax withholding rate: 0.2 Enter state tax withholding rate: 0.09 Employee Name: smith Hours Worked: 10.00 Pay Rate: $9.75 Gross Pay: $97.50 Deductions: Federal Withholding (20.00%): $19.50 State Withholding (9.0%): $8.78 Total Deduction: $28.28 Net Pay: $69.23 ODK8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!