For this lab, I created 3 cpp programs which sorted a list of random numbers from minimum to maximum, and then gave the user a choice on what kind of finished product they wanted to be printed.
The program involved mastering the 3 different sorting algorithms - bubble sort, selection sort, and insertion sort. I also learned how to set up a function which would take into account (using an "if" statement) what the user inputted, in order to decide what to output.
Creating the programs also involved importing the numbers into the array from another file.
For importing the numbers into the program, I was able to user what I learned form lab 1. However, it required a new function to put those numbers into an array.
No comments:
Post a Comment