Question: 1. Modify the Node class in the Linked List source code to hold Student data. The value must now be Full Student Name (String) and


1. Modify the Node class in the Linked List source code to hold Student data. The value must now be Full Student Name (String) and REDID (int). Use this modified Node class for all the coding exercises for this programming assignment. 2. Use the LinkedList.cpp file supplied and write a main function that does the following: Display a Menu (Sample Menu Below) to the users to perform all actions of the Linked List. All member functions that have been prewritten for you must be executed in the main function. User should be able to choose which menu item to perform. Add proper conditions to prevent user from removing from an empty list, removing or accessing a node that does not exist. If the User is adding a node, ask for user input for name and REDID. Menu loops infinitely till user decides to exit. 3. Write a member function to reverse the LinkedList in-place (no additional storage must be used) using the strategy in Slide 20 of the LinkedList Power point. The slide strategy only has one pointer reference of head. In your program you must also include a TAIL reference. Add reversing the LinkedList as a choice on the Menu. Once the LinkedList is reversed, it is permanent and cannot be reversed. 4. Sorting the Linked List. Write a member function to sort the LinkedList and print the result of sorting. Add sorting as one of the menu items for user. You cannot use Bubble Sort; any other sorting method is permissible. Once the linked list is sorted, the result is permanent and all other menu operations are performed on the modified list. User must be provided with 2 sort options, Sort by name and Sort by REDID. 5. ReadMe File: This file is your documentation for the .cpp file you have written. List all Classes used in the .cpp file and their purpose List all member variables of the classes and their purpose. List all the member functions of each class and briefly explain what they do, their return type and what arguments they take. SAMPLE OUTPUT FOR MENU LINKED LIST PROGRAM CHOOSE FROM THE FOLLOWING OPTIONS: 1. Make a Linked List 2. Add a Node to the beginning 3. Add a Node to the End 4. Add a Node at Index 5. Delete Node from the beginning 6. Delete Node from the End 7. Delete Node at Index 8. Sort by Name 9. Sort by REDID 10. Reverse LinkedList 11. Exit Enter Choice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
