This lab is due by Wednesday, April 13, 2022 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.
Instructions
You have two degrees of freedom for this lab.
- You need to create a list, which can be implemented as either:
- an array
- a linked-list
- You need to sort the list using one of the sorting algorithms just discussed:
- Selection Sort
- Insertion Sort
- Bubble Sort
The implementation is to your choosing (classes, functions).
To test your implementations, perform the following steps:
- Create a list of integers
- Populate the list with the values in order: 4 3 8 1 5 9 7 2 6
- Print the list forwards (prints 4 3 8 1 5 9 7 2 6)
- Sort the list
- Print the list forwards (prints 1 2 3 4 5 6 7 8 9)
Lab Submission
Submit your main.cpp, Makefile, *.hpp, *.h, *.cpp
file(s).
You will submit your solution to this lab with the rest of Set5. Detailed instructions for doing this are posted in Assignment 5.
This lab is due by Wednesday, April 13, 2022 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.