Question: 30) Modify LinkedList java programs so that it handles employee objects. Make your program menu-driven. The class employee is the given below: public class enployee

30) Modify LinkedList java programs so that it handles employee objects. Make your program menu-driven. The class employee is the given below: public class enployee public int Id: public String name; public double salary: public void Input() System.out.println("Enter name: "); - new Scanner(System.in.nextLine(); System.out.println("Enter 10: "); id - Integer.parseInt(new Scanner(System.in.nextLine()); System.out.println("Enter Salaryi ) salary - Double.Parsouble(new Scanner(System.in).nextLine(); public void Output) System.out.printf("Name: tuss, ID: 5, Grade: 135s", name, ad, salary); public String testing return String.forest S, ID: 255, Salaryi , Hilaryl 20 At & a) Search for an employee when the employee's ID is given. b) Insert an employee to the linked list. c) Delete an employee from the linked list. d) Apprend an employee to the header of the linked list. e) Remove an employee from the header of the linked list. f) Find the average salary of the employees in the linked list. g) Find the employee with highest salary (Note, you must return the employee, not jus the highest salary) Requirement for assignment reports 1. The cover page must be attached. 2. For each programming question, the submission must contain the program itself, proper description of the program, and running page (screen shot) which shows that the program works for all cases, 3. Add proper comments lines for non-trivial so that the instructors can read and understand the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
