PRO192_-_PE02_-_SU_2025_4005.webp
T

PRO192_-_PE02_-_SU_2025_4005.webp

✓ Kizspy. megetAverage Salary(baseSalary:double):
double
+getEmployeeByMaxYearsOfExperience
(): Employee
⚫ getAverageSalary(baseSalary:double):
double return the average the salaries of
employees whose salaries are greater than
baseSalary. If no matching data is found,
return 0
.getEmployeeByMaxYearsOfExperience
():
Employee return the employee with the that
have largest year of experience. Assume that
there is only one employee with the most years
of experience on the list.
Hints: to declare the EmployeeList class, you
can use the following statement:
public class EmployeeList extends
ArrayList<Employee> {
II.....
Zoom
}
The program output might look something like this (using the EmployeeList class):
The employees have been added:
1-Tran Bao An-1000.00-0
| 2-Nguyen Thanh Phong-3000.00-2
3-Le Hong Phong-2000.00-7
4-Huynh Quoc Bao-5000.00-3
5-Phan Van Trung-4000.00-1
Add a new employee:
Enter id:6
Enter name:Nguyen Van Nam
+100%
The employees have been added:
1-Tran Bao An-1000.00-0
2-Nguyen Thanh Phong-3000.00-2
3-Le Hong Phong-2000.00-7
4-Huynh Quoc Bao-5000.00-3
5-Phan Van Trung-4000.00-1
Add a new employee:
Enter id:6
Enter name:Hoang Minh
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
ThuyPhuong86
Ngày thêm
Lượt xem
3,093
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom