Question: 8.1: Task 1: Using C++: Create an ordered list class. Create a new project. Design and implement an ordered list class using an array of
8.1: Task 1: Using C++: Create an ordered list class.
Create a new project.
Design and implement an ordered list class using an array of pointers. This class should be a template.
The class should have an array that holds 20 items.
The AddItem method should start at the front of the array when searching for a place to insert a new item.
The RemoveItem method should ensure that the items in the array are still in order and there are no empty spots between items.
The class should include IsEmpty, IsFull and MakeEmpty methods.
Any error conditions encountered such as the item to be removed doesnt exist or the list is full when trying to add an item should throw a custom error class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
