JAVA PROGRAMMING NetBeans A) A Small supermarket employs workers who are paid ev
ID: 3889349 • Letter: J
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 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 inssurance 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 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 wroker’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 programe.
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)
Create a a 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
Explanation / Answer
import java.awt.*;
02 import java.awt.event.*;Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.