Question: 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

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

In addition, the worker Admin in position A1 can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarizes who is authorized to participate in insurance and retirement plans

Write a 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).

You have to create 3 different classes Admin, WorkerP1, and WorkerP2 and create all of the required method for each class.

  • Create a main class then call all the other classes from there.

 Write a java program that shall solve the following problem: ASmall supermarket employs workers who are paid every end of week. According

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 Al and P1 can choose to participate in the following insurance options: Option Explanation Weekly Cost to Employee (dirham) 11 Medical Insurance 80 12 Dental Insurance 50 13 Disability Insurance 30 Position 11 12 13 Retirement (3%) Admin A1 Y Y Y Y Worker P1 Y Y N In addition, the Worker P2 N N N N worker Admin in position Al can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarizes who is authorized to participate in insurance and retirement plans Write a 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 worker'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). You have to create 3 different classes Admin, WorkerP1, and WorkerP2 and create all of the required method for each class. Create a main class then call all the other classes from there. Page 2 of 2 360 words m English (United States) "' Focus BE 10096 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 Al and P1 can choose to participate in the following insurance options: Option Explanation Weekly Cost to Employee (dirham) 11 Medical Insurance 80 12 Dental Insurance 50 13 Disability Insurance 30 Position 11 12 13 Retirement (3%) Admin A1 Y Y Y Y Worker P1 Y Y N In addition, the Worker P2 N N N N worker Admin in position Al can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarizes who is authorized to participate in insurance and retirement plans Write a 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 worker'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). You have to create 3 different classes Admin, WorkerP1, and WorkerP2 and create all of the required method for each class. Create a main class then call all the other classes from there. Page 2 of 2 360 words m English (United States) "' Focus BE 10096

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!