Object-oriented programming Program the employee class as indicated in the diagram To calculate the salary, just multiply the number of hours by the payment per hour. The capture method asks the user for the data for the three attributes, asks for the hours worked and the payment per hour and with these data calculates the salary. The show method displays all of the employee's data. Do not forget the getter and setter methods only for attributes of type private Your company has 7 employees and you would like 1. Capture the data of each employee 2. Show the data of each employee 3. Show the data of a particular employee 4. Calculate and display the average salary 5. Calculate and display the name of the employee with the highest salary 6. Calculate and display the name of the employee with the lowest salary 7. Calculate and show the total payment you will make for all your employees
Object-oriented
Program the employee class as indicated in the diagram
To calculate the salary, just multiply the number of hours by the payment per hour.
The capture method asks the user for the data for the three attributes, asks for the hours worked and the payment per hour and with these data calculates the salary.
The show method displays all of the employee's data.
Do not forget the getter and setter methods only for attributes of type private
Your company has 7 employees and you would like
1. Capture the data of each employee
2. Show the data of each employee
3. Show the data of a particular employee
4. Calculate and display the average salary
5. Calculate and display the name of the employee with the highest salary
6. Calculate and display the name of the employee with the lowest salary
7. Calculate and show the total payment you will make for all your employees


The program is written in Java. Check the program screenshot for the correct indentation. Please check the source code and output in the following steps.
Step by step
Solved in 3 steps with 5 images









