Faria R.

asked • 08/09/21

Slove it in C++.

Tasks:

You need the implementation of the following classes.

1. Unsorted List (Array Implementation)

2. Sorted List (Array Implementation)


You need to modify the implementations of these classes so that no duplicate value is stored in the list.

Additionally, modify it such that at most six values can be stored in these lists.

In the driver file, create two lists objects; one of them is UnsortedList, and the other should be SortedList. Insert the following values in both lists.


1 1 0 5 0 2 1 5 4 1 5 4 3

Now print the lists.


Mark distribution: Successful modifications of each class carry 3 points each. For creating the objects and performing other operations on the objects successfully, you will get 1 point for each object. Therefore, in total,

4 points are allocated for each class.

1 Expert Answer

By:

Patrick B. answered • 08/09/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.