JAVA PROGRAMMING Net Beans 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). Each...



JAVA PROGRAMMING
Net Beans



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



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 insurance options:



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



Write an interactive Java payroll application that calculates the net pay for a worker. The program prompts 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 worker’s 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 programme.



Output Sample: (on Screen)






Input Sample: Lab.txt
Ahmad Nacre A1 44 Y Y N YAhmad Shames A1 70 Y YYYAli Bard W1 60 Y YYYMustafa Kamal W2 30 N Y Y NHamid Ibrahim W2 50 Y YYY



B)Referring to (A):



Create a class Employee with all the necessary elements:


·

Member variables



·

Methods to calculate Pay



·

to string that generate the following output:






·

Test your class by reading employee info from Lab.txt.



C)Create aa GUI for the Employee Payroll Application based on the following design:



·

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


May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here