Question: Using GUI , write a java program that shall solve the following problem: A Small supermarket employs workers who are paid every end of week.
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 A1 | 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 A1 and P1 can choose to participate in the following insurance options:
| Option | Explanation | Weekly Cost to Employee (dirham) |
| I1 | Medical Insurance | 80 |
| I2 | Dental Insurance | 50 |
| I3 | Disability Insurance | 30 |
| Position | I1 | I2 | I3 | Retirement (3%) |
| Admin A1 | Y | Y | Y | Y |
| Worker P1 | Y | Y | Y | N |
| Worker P2 | N | N | N | N |
Also, the worker Admin in position A1 can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarize 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 prompts the user for: skill level and hours worked, as well as appropriate insurance and retirement options for the workers 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).
In reference to the payroll system problem in labs# 2and 4 . Students have to work on the same payroll project and do the following :
- Insert Jtable into the Jfram form. When the user clicks on the calculate button the system shall do all of the calculations mentioned in lab#2 then it shall view in the Jtable the ( employee name , position , total deductions and net pay).
- Insert delete button that shall erase the selected row from the Jtable.

X $ Employee Payroll System Name Hassan Jameel Name Hassan Jameel Position ADMIN Position WORKER P2 Hours/W 60 Hours/W 20 Rate/h Overtime Medical Insurance Dental Insurance Disability Insurance Retirement Plan Regular Wage Overtime Wage Total Wage Medical Insurance Dental Insurance Disability Insurance Total Deductions 0 Retirement Plan Net Pay 1020 Calculate Delete Employee Name Mohammad Banat Faten Hassan Jameel Position ADMIN WORKER P1 WORKER P2 Total Deductions 130 50 0 Net Pay 920 800 1020 Reset Exit X $ Employee Payroll System Name Hassan Jameel Name Hassan Jameel Position ADMIN Position WORKER P2 Hours/W 60 Hours/W 20 Rate/h Overtime Medical Insurance Dental Insurance Disability Insurance Retirement Plan Regular Wage Overtime Wage Total Wage Medical Insurance Dental Insurance Disability Insurance Total Deductions 0 Retirement Plan Net Pay 1020 Calculate Delete Employee Name Mohammad Banat Faten Hassan Jameel Position ADMIN WORKER P1 WORKER P2 Total Deductions 130 50 0 Net Pay 920 800 1020 Reset Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
