Question: Write a program to compute and display the net salary of an employee, given the number of hours worked and the hourly rate. The rate

 Write a program to compute and display the net salary of

Write a program to compute and display the net salary of an employee, given the number of hours worked and the hourly rate. The rate for taxes is 1.5%. Your program will prompt the user to input the data. Hints: Analysis .Input data: hourly rate, hour worked, taxes rate . Expected output: net salary Process: net salary gross salary- taxes Implementation Create a new project called Lab4 In Lab4, implement the following two classes: . Attributes o firstName o lastName o hourlyRate o numberOfHourWorked Methods o constructor o computeGrossSalary o computeTaxes o computeNetSalary o displayNetSalary 2. EmployeeTester Create I instance of Employee Compute gross salary of employee created Compute taxes Compute net salary Display net salary . t your program with the following data: Expected result Net Salary Input Number of hours (h) Hourly rate ($) 81 20 35.5 $10.75 $15.45 $12 $20.55 $582.38 $1232.68 $236.40 $718.58

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 Databases Questions!