Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions