There are Seven (6) part time employee in a company and work in three position i.e Manager ( MG), helpdesk (HP) and human resources (HR) . The Payment is ( HP= $25.00 per hour, MG = $30.00 per hour, HR $35.50 per hour). Write a java program using Array or Array list and Use Methods , Use JOptionPane the program asks user to enter employee FirstName, LastName, Number of Hours he/she worked, and his position ( either MG or HP or HR) . Then the program arranges employee names based on last names and calculates salary of each employee and total salary of all employee.
sample output
Employee salary report
david hayes $60
Jemal abdua $ 90
Kenis thomas $ 50
Smith Mike $ 71
Total $ 271.00