Question: write a java program that shall solve the following problem: create 3 separate classes for each position use loops, switch, user defined methods, if statement

write a java program that shall solve the following problem: create 3 separate classes for each position use loops, switch, user defined methods, if statement A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates depending on their positions. Position Hours rate (dirham) Admin A1 60 Worker P1 40 Worker P2 30 12 13 11 Y Y Each worker might work any number of hours per week; any hour over 40 are paid at one and half rate. In addition workers in position Al and P1 can choose to participate in the following inssurance options: Option Explanation Weekly Cost to Employee (dirham) I1 Medical Insurance 80 Dental Inssurance 50 Disability Inssurance 30 Position 12 13 Retirement (3%) Admin A1 Y Y Worker P1 Y N Worker P2 N N Also, the worker Admin in posoition Al can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarise who is authorized to participate in insurance and retirement plans Write an interactive Java payroll application that calculates the net pay for a worker. The program propmpts the user for: skill level and hours worked, as well as appropriate insurance and retirement options for the wrokeris position. The application displays: 1) hours worked, 2) hourly rate, 3) regular pay for 40 hours, 4) overtime pay, 5) total pay, 6) total deductions, 7) the net pay (total pay - total deductions). Y Y write a java program that shall solve the following problem: create 3 separate classes for each position use loops, switch, user defined methods, if statement A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates depending on their positions. Position Hours rate (dirham) Admin A1 60 Worker P1 40 Worker P2 30 12 13 11 Y Y Each worker might work any number of hours per week; any hour over 40 are paid at one and half rate. In addition workers in position Al and P1 can choose to participate in the following inssurance options: Option Explanation Weekly Cost to Employee (dirham) I1 Medical Insurance 80 Dental Inssurance 50 Disability Inssurance 30 Position 12 13 Retirement (3%) Admin A1 Y Y Worker P1 Y N Worker P2 N N Also, the worker Admin in posoition Al can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarise who is authorized to participate in insurance and retirement plans Write an interactive Java payroll application that calculates the net pay for a worker. The program propmpts the user for: skill level and hours worked, as well as appropriate insurance and retirement options for the wrokeris position. The application displays: 1) hours worked, 2) hourly rate, 3) regular pay for 40 hours, 4) overtime pay, 5) total pay, 6) total deductions, 7) the net pay (total pay - total deductions). Y Y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
