Friday, November 6, 2009

The Sorting Assignment

So we got the assignment, turns out we have to calculate the Median of small groups of numbers by determining if the array is even or odd and then sorting it with one of the sort methods (Shell sort was recommended). Since I forgot how to do the Shell Sort (should have copied that code) I decided to use the Array.Sort() function which would automatically do a quick sort on whatever array was entered in it. We were given another sorting assignment to do over the weekend which involved sorting snowfall data.

No comments:

Post a Comment