Question: Use the code given to create the following function: 1. Add a function that Insert in the Linkedlist. 2. Modify Add a function that will

Use the code given to create the following function:

1. Add a function that Insert in the Linkedlist.

2. Modify Add a function that will enable you to Enter more items in insert function using (Y/N):

E.g.

Enter your Choice: 1

Enter number to add to list: 12

Enter more(y/n): y

Enter number to add to list: 13

Enter more(y/n): n

3. Add a function ( Count() ) that count total element added in Linkedlist

4. Sort the nodes in the linked list

5. Delete from front/head of list

6. Delete from lasVtail of list

The following in the menu

Singly Linked List Menu:

1. Create or Append List

2. Insert in Beginning

3. Insert in Middle

4. Remove from the List (Head/Tail) H/T or you can write a separate function for it

5. Count Element in List

6. Show List of Elements

7. Exit

All the Singly Linked List operations are performed.

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!