Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 2 (10 marks) In reference to the payroll system problem in labs# 2 and 4. Students have to work on the same payroll project

image text in transcribed

image text in transcribed

image text in transcribed

Exercise 2 (10 marks) In reference to the payroll system problem in labs# 2 and 4. Students have to work on the same payroll project and do the following: 1. Insert Jtable into the fram 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). 2. Insert delete button that shall erase the selected row from the Itable. Employee Payroll System Name Hassan Jameel Name Hassan Jamuel Position WORKER P2 Position AN Hours/W 00 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 Retirement Plan Net Pay1020 Position Employee Name Mohammad Banat Falen Hassan Jameel Total Deductions 130 50 ADUN Calculate Dekete Net Pay 920 000 1020 WORKERPI WORKER P2 Reset Exit 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 Al 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 halfrate. In addition workers in position Al and Pl 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 Also, the worker Admin in position Al 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 Position I1 12 13 Retirement (3%) Admin A1 Y Y Y Y Worker P1 Y Y Y N Worker P2 N N N N 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 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). Sample output: Employee Payroll System $ Employee Payroll System Nane Name Mohama Postion Nome Postion How Position ! Hours/W Position Hours/W Raten R Overtime Overtime w we Medical Insurance Dental Insurance Disability Insurance Retirement Plan Retrenert Tool Wage Medence Derece DR Tool Deductions Reguler Wage Overtime Wage Total Wage Medical Insurance Dental Insurance Disby Tour To Deductions trement Plan Net Pry

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago