Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have to create 3 different classes Admin, WorkerP1, and WorkerP2, and create all required method for each class. Create a main class then call

image text in transcribed
image text in transcribed
You have to create 3 different classes Admin, WorkerP1, and WorkerP2, and create all required method for each class. Create a main class then call all the other classes form there A Small sapermarket employs workers who are paid every end ofweck According to the one hourly rates depending on their positions Hours rate (duttam 60 Position Admin Al Worker P1 Worker P2 40 30 Each worker might work any number of hours per week, any hour over 40 we paid tone and halfratele addition workers in position Al and P1 can choose to participate in the following optic Option Explanation Weekly Cost to Employee (dirbam 11 Medical test 50 Dental Insurance 50 13 Disability to 30 Also, the worker Adenin in posat Al can choose to participate in the retirement plan 3.0% of the go pey. The following table sunmatise who is authorized to participate in insurance and retirement pas Position 11 12 13 Retirement (395 Admin AT YY Y Y Worker P1 Y Y Y N Worker P2NN N N Waze a Java payroll application that calculates the net pay for a worker The program de for skill levd ad hours worked as well as appropriate instance and retirement options for the posib The application desplays 1 hours worked, 2) hourly rate 3) regular pay fox 40 bours overtime pay, 9 total pay. 6) total deductions, 7) the net pay (total pay-total deduction) You have to create 3 different causes Admin, WorkerPl. and WorkerP. and create a required method for each class Create a main class the call all the other classes for the 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 inssuance options Option Explanation Weekly Cost to Employee (dirham) I1 Medical Inssurance 80 12 Dental Inssurance 50 13 Disability Inssurance 30 Also, the worker Admin in posoition Al can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarise who is authorized to participate in insurance and retirement plans Position 11 12 13 Retirement (3%) Admin A1 Y Y Y Y Worker P1 Y Y Y Izz Worker P2 N N N Write a Java payroll application that calculates the net pay for a worker. The program proports the user for skill level and hours worked, as well as appropriate insurance and retirement options for the woker'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, WorkerPl , and WorkerP2 , and create all required method for each class. Create a main class then call all the other classes form there

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_2

Step: 3

blur-text-image_3

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

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

Presentation Aids Practicing Your Speech?

Answered: 1 week ago