Question: JAVA PROGRAMMING NetBeans A) A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates

JAVA PROGRAMMING NetBeans

A)

A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates depending on their position (or Skill Level).

JAVA PROGRAMMING NetBeans A) A Small supermarket employs workers who are paid

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 Admin/A1 and Worker/W1 can choose to participate in the following inssurance options:

every end of week. According to the one of the three hourly

Also, the Admin/A1 can choose to participate in the retirement plan at 4.25% of their gross pay. The following table summarise who is authorized to participate in insurance and retirement plans

rates depending on their position (or Skill Level). Each worker might work

Write an interactive Java payroll application that calculates the net pay for a worker. The program propmpts the user for: the Worker name, skill level (A1,W1,W2) and hours worked, as well as appropriate insurance and retirement options if available for the wrokers position. The application must display: 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). Use the following template for the output of your programe.

Output Sample: (on Screen) any number of hours per week; any hour over 40 are paid

Input Sample: Lab.txt

Ahmad Nacer A1 44 Y Y N Y

Ahmad Shamisi A1 70 Y Y Y Y

Ali Badr W1 60 Y Y Y Y

Mustafa Kamel W2 30 N Y Y N

Hamad Ibrahim W2 50 Y Y Y Y

--------------------------------------------------------

B)

Refering to (A): Create a class Employee with all the necessary elements: Member variables Methods to calculate Pay Tostring that generate the following output: at one and half rate. In addition workers in position Admin/A1 and Test your class by reading employee info from Lab.txt. C)

Create a a GUI for the Employee Payroll Application based on the following design:

Worker/W1 can choose to participate in the following inssurance options: Also, the

Use the class Employee to create an generate the Payroll elements. Generate a file with Employee Name: name.txt that contains the Payroll output as mentioned in the first Exercise

Position/Skill LevelHoursly rate (dirham) Admin/ A1 Worker/ w1 Worker/ w2 80 40 20

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!