Question: Styles Exercise 2 (10 marks) (Ex2.java) Using GUI, write a java program that shall solve the following problem: A Small supermarket employs workers who are

 Styles Exercise 2 (10 marks) (Ex2.java) Using GUI, write a java

program that shall solve the following problem: A Small supermarket employs workers

who are paid every end of week. According to the one of

Styles Exercise 2 (10 marks) (Ex2.java) Using GUI, write a java program that shall solve the following problem: 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 Al 60 Worker P1 40 Worker P2 30 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) 11 Medical Inssurance Dental Inssurance 80 12 50 13 Disability Inssurance 30 Also, the worker Admin in possition 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 Position 11 12 13 Retirement (3%) Admin A1 Y Y Y Y Worker P1 Y Y Y N Worlar D N N N N Also, the worker Admin in possition 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 Position Il 13 Retirement (3%) 12 Admin A1 Y Y Y Y Worker Pi Y Y Y N Worker P2 N N N N 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 wroker's 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). Sample output: Employee Payroll System Employee Payroll System $ Nane Name Mohamad Name wowana Poston Position Position AD How postos HOW Pats Hours/W - Hours/ W10 Overtime Rate/h to Overtime Medical Insurance Dental Insurance Regular Wage Overtime Wage Totalige Disability Insurance Regular Wage 3000 Overtime Wage 30 Total Wage 3080 Retirement Plan Recent Retirement Plan Medical Insurance Dental Insurance Medical Derende Distro Tool Deductions Disability Insurance Total Deductions 3430 Net Net Pay 37113 Cakulte Reset Ed

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!