PRF193_PE_SU25_B1_121891_3985.webp
Yuno_76

PRF193_PE_SU25_B1_121891_3985.webp

  • Media owner Yuno_76
  • Ngày thêm
☑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
Chưa có bình luận nào.

Thông tin

Category
PRF193
Thêm bởi
Yuno_76
Ngày thêm
Lượt xem
799
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom