Question: in java Create a program that implements a singly linked list of Employee. Each node must contain the following variables: Employee_Name Employee_ID Salary In main():

 in java Create a program that implements a singly linked list

in java

Create a program that implements a singly linked list of Employee. Each node must contain the following variables: Employee_Name Employee_ID Salary In main(): 1. Create the following list using addHead(). The list must be in the order shown below. Student ID Student Name Salary 00235 Mohammad 15000 00662 Ahmed 17000 00999 Ali 14000 00171 Fahad 16000 2. Print the list using toString0 method. 3. Add all salaries and take avarage 4. Print total salary and average. 5. Create the another list using addTail(). The list must be in the order shown below. Student ID Student Name Salary 00236 Zikria 20000 00663 Abdullah 18000 00998 Tariq 16000 00172 Abdulaziz 17000 6. Print the second list using toString method. 7. Join the first and second list. While joining add second list nodes to first list and delete the second list. 8. Print the joined list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!