|
1. accept (empID, empName, empSal) – 10 points
- input N number of employees’ records. ID number must be unique. If ID number is not unique, discard the input. 2. displayAllEmp (empID, empName, empSal) – 5 points
- display all employees’ records in table form 3. searchByID (empID, empName, empSal)) – 5 points
- Input employee’s ID to be searched. Display employee’s information if found, otherwise, display an appropriate message. Use linear search in searching. 4. searchByName (empID, empName, empSal)) – 5 points
- Input employee’s name to be searched. Display employee’s information if found, otherwise, display an appropriate message. Use binary search in searching. 5. countEmpSalary (empSal, sal) – 5 points
- count and returns the number of employee whose salary is greater than sal 6. sortBySalaryInDescending (empID, empName, empSal) – 5 points
- arrange the records in descending order using salary as the key 7. sortByEmpNameInAscending (empID, empName, empSal) - 5 points
- arrange the records in ascending order using name as the key 8. deleteSpecificEmpByID (empID, empName, empSal) – 5 points
- Inputs ID to be deleted. If found, remove the record, otherwise, display appropriate message. |