I'm doing a homework assignment for school, and our current assignment is to find the minimum number, max number, average of numbers and medians of numbers in an array. The array is defined by user input.
I have code to get the user input and to sort the array, but I'm stuck on exactly how to pick out the individual array values for a min or max. I could imagine that finding an average is easier than I believe it to be, but I'm honestly not sure how to do it. Same for median.
Thanks for any help.
Figures. I always over complicate this sort of thing.
What about finding the median? If there's an even set of numbers, would I take the average of array and array to find the median of the set?