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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started