Hilan International Bank decided to have a salary plan for its employees. In the new Policy, bonus is based on the fact that one is a senior staff or junior staff. You have been called in as a programmer to develop a software to meet this policy’s requirement:
(a.) Create a class called Salary.
(b.) Create methods/functions that will calculate
i. the tax which is 5% of the gross salary
ii. Bonus depending on the status of employee-senior/junior
Senior staff-1hr-15 US dollars
Junior staff-1hr-12 US dollars
iii. Net Salary=Bonus+gross salary-tax
(c.)Create another class called SalDemo with the main function
(d.)Declare an instance of the salary class called cal.
(e.)Use the cal object to check the net salary
(f.)Use JOptionPane to allow a user to enter the status, time and the gross salary.