Question: Write a Java application that reads in the name and salary of an employee. Here the salary will dent an hourly wage, such as $9.25.
Write a Java application that reads in the name and salary of an employee. Here the salary will dent an hourly wage, such as $9.25. Then ask how many hours the employee worked in the past week. Be sure to accept fractional hours. Compute the pay. Any overtime work (over 40 hours per week) is paid at 150% of the regular wage. Print a paycheck for the employee. In the final solution be sure to include a Paycheck class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
