Widget company runs a small factory that makes several types of nuts and bolts. They employ (a)1 (b)2 (c)3. Each factory worker can work a maximum of (a)40 hours normal working hours per week. All hours over 40 are paid as over-time with a maximum over-time hours of 10 hours.

The factory manager wants to write an interactive java payroll program that will calculate the gross pay for a factory worker and the Net pay. Hours worked,Employee's name, Skill level and hourly pay rate will be entered from the keyboard. Once the figures are entered for an employee, the program will print out: (a) the employee's name (b) the total hours worked, (c) the rate per hour (d) gross pay, (e) Net pay.

Create a class name MyAccounts.java that should contain the main programme and a second class called Salary.java. The salary.java class should contain only a new instance of the MyAccounts.Java class and simple codes to generates the required outputs of this programme. Call the salary class in the pay class.