☑Kizspy.me
6 of 6
Paper No: 7

A method input(): void, input employee's information.
• A method display(): void, print the employee's details, including their net salary.
2. In the main() function:
• Read the number of employees.
• Create an array of Employee objects.
• Read the employee details from user input.
• Display the list of employees with their net salary.
• Find and display the employee with the highest net salary (the first if multiple).
Below is an example with 3 for number of employees:
Zoom
+ 92%
3
E1 Alice 10 2
E2 Bob 15 1
E3 Mary 15 1
OUTPUT:
El Alice
NetSalary: 12.0
E2 Bob
NetSalary: 16.0
E3 Mary
NetSalary: 16.0
Bob NetSalary: 16.0
Press any key to continue . . .
Close