Question: simple java code Exercise 2: A company runs a small factory. You need to create a pay slip for the employees of the company. The

simple java code
simple java code Exercise 2: A company runs a small factory. You

Exercise 2: A company runs a small factory. You need to create a pay slip for the employees of the company. The details of the Java application to be implemented is provided below. A. The factory workers are paid one of the three hourly rates depending on their skill level. Write a method to that takes the skill level as a parameter and returns the hourly rate. Use the switch construct in Jova. Skill Level Hourly Rate (dirham) A 100 8 70 C 35 B. Each factory worker might work any number of hours per week; any hour over 40 are paid at double rate. Write a method that takes the hours worked and calculates the gross pay depending on if there is overtime or not. Return the gross pay from the method. C Factory workers have extra benefits. Only workers in skill level A can choose to participate in the Retirement Plan at 5% of their gross pay. Also, The workers in all skill levels can choose to participate in the following insurance options: Option 1 2 3 Explanation Medical Insurance Dental Insurance Disability insurance Weekly Cost to Employee (dirham 150 95 65 Write a method that takes the worker's skill level and gross pay as parometer and asks the user the necessary questions to decide on benefits (Insurance and/or Retirement). The user must be given the choice to choose all three types of Insurances. The method must return the net pay after deducting the benefits if the worker chooses to obtain these benefits. D. Ask the user to enter the details of all employees. The details include: Employee ID, Name, Skill level, and Working Hours per week should entered in the main method. The Retirement and Insurance benefits should be asked from the User in the above method. E Generate a pay slip for each employee le. If the user enters 10 employees, then 10 payslips are to be generated. Each payslip is written to a separate file with the name given as the employee id. For example of the employee idis A11P9, then the file "A119 but will contain the pay slip of the employee. The pay slip for each worker must contain the following details in a neat and readable format The Name, and skill level of the Factory Worker The total number of working hours of the factory worker The hourly rate The gross pay of a factory worker i before the deductions The net payle. Gross pay Total deductions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!