Question: MISY 3433-001: Java Applications in Business Lab #5 rite a program to compute and display the net salary of an employee, given the number of
MISY 3433-001: Java Applications in Business Lab #5 rite a program to compute and display the net salary of an employee, given the number of hours worked and the hourly rate. All employees are entitled to a minimum of 40 hours (if you work less than 40hours you are paid for 40hours). The rate for taxes varies depending of the gross salary as follow: Gross Salary Gross salary1000 Gross salary 1000 Taxes rate 1.5% 1.61% Your program will prompt the user to input the data from the keyboard. Hints: Analysis Input data: hourly rate, hour worked, taxes rate .Expected output: net salary Processes: o Gross salary If hours worked less than 40 then assign 40 to hours worked; . Gross salary hours worked hourly rate o Taxes If gross salary less or equal to 1000 then taxes rate is 1.5% Else taxes rate is 1.61%; o Net salary Net salary: gross salary-taxes Implementation Create a new project called Lab5 In Lab5, implement the following two classes: 1. Employee . Attributes (similar to lab 4) . Methods Employee Tester (similar to lab 4) 2. m with the following data: Expected result Net Salary Input Number of hours (h) Hourl 81 20 $10.75 $15.45 512 $582.38 $1231.30 $472.80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
