## GAD225 HW 2

- Create an Array with 100 numbers in it. Each number should be randomly generated, and somewhere between 1 and 100.
- Tell me the total of all the numbers in the array.
- Tell me the average of all the numbers in the array.
- Tell me the value of the biggest number in the array.
- Tell me the value of the smallest number in the array.
- Sort the array (by hand, DO NOT USE the built in sort() function). We will discuss a method for doing this in class.
- Tell me the median value of the numbers in the array.
- Tell me the mode of the array.

Function Stuff:

- Each of the numbers above should be their own function, taking in the array as a parameter, and returning whatever is appropriate.
- Call each function based on user input (create a menu system, similar to InputCruncher).
- This may require some global data, but still pass stuff around via parameters where you can.

May 4th, 2009 at 8:17 am

Where do I enter the number within InputCruncher?

Thanks!