Question: Using C++ Language. Implement an ordered linked list, 'OrderedLinkList' class using templates, that has data for students (Name, student ID , CGPA), and the data
Using C++ Language. Implement an ordered linked list, 'OrderedLinkList' class using templates, that has data for students (Name, student ID , CGPA), and the data is sorted in the list as per the student IDs. The class should have the following functions:
- Initialize the list
- Determine whether the list is empty
- Print the list
- Find the length of the list
- Destroy the list
- Retrieve the info contained in the first node
- Retrieve the info contained in the last node
- Search the list for a given item
- Insert an item in the list (make sure that the items are added to the list in a sorted manner)
- Delete an item from the list
- Make a copy of the linked list
- Implement the assignment operator (=)
- Calculate the average CGPA of all students in the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
