Dan the Man gave us the task of creating three programs: bubble sort, selection sort, and insertion sort. Dan helped us out withe the bubble sort and then made us a template for the other two programs. These are the two functions we wrote for the sorting within the program.
This program was a lot harder that the last one we did, not to mention the fact that we were making it way more complicated that it needed to be. It took several days to get the algorithm right for each sorting method. For me the hardest part was the "user_choice" function.
No comments:
Post a Comment