- Design a C++ program with a ListArray class of unordered lists with integer items. main() function should declare an object of this class. It should print the content of the list after execution of each list operation.
- Make necessary changes in your program to keep lists sorted in ascending order and then in descending order. Make sure that your search function effectively uses the fact that a list is sorted now.
- Design three additional methods:
1. itemsSum() that returns the sum of list items.
2. invert_move() that inverts the sequence of list items in the same list by changing items memory locations.
3. invert_move() that inverts the sequence of list items in the same list without changing items memory locations.
- Present report with results of your experiments: The program code, outputs, some comments on additional functions 2 and 3.
Comments
Leave a comment