Mhd H.

asked • 03/23/22

Introduction to programming help (Java)

A Small supermarket employs workers who are paid every week in hourly bases according to one of the following three rates (depending on their positions).


[Postion Type] [Position Name] [Hours Rate (AED)]

1 Admin 60

2 WorkerP1 40

3 WorkerP2 30

Each employee might work any number of hours per week; any hour over 40 are paid at one and half rate (1.5% of the rate). Also,the employees in all position can choose to participate in the health insurance option for 130 AED per month.In addition, the employeein the Admin position can choose to participate in the retirement plan at 3.0% of their gross pay.

Write a Java payroll program that calculates the net pay for employee. The program prompts the user for:

1.    Entering Position type and Number of hours per week.

2.    Calculate the net pay for a worker.

3.    Displays: 1) Position Name, 2) Hours Worked, 3) Hourly Rate, 4) Regular pay for 40 hours, 5) overtime pay, 6)Total Deduction, 7) the net pay (total pay + overtime pay – Total Deduction).


I have already done most of the coding, however im stuck at that part where its asking you to code the emplooyes can choose to participate in the health insurance option for 130 AED per month, along with the admin one that tells you to code an option if the admin would like to participate the retirement plan at 3.0% of their gross pay.

1 Expert Answer

By:

Donald W. answered • 03/23/22

Tutor
5.0 (214)

Senior Software Engineer with over 25 years of industry experience

Mhd H.

Thank you for the help, ive managed to find a resolve after going through alot of errors.
Report

03/23/22

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.