Using Arrays
- A first example:
- The file grades.dat contains the following
- A number
n
, less than 100 representing the number of grades for a student in a class.
- Then n integers representing these scores.
- Find the following
- The minimum score.
- The maximum score.
- The average score.
- Do we need an array for any of these?
- Find these:
- The standard deviation ($s = \sqrt{\frac{\Sigma(x-\mu)^2}{n}}$)
- The median (the middle number if odd, the average of the middle numbers if even). (We can't do this one yet, but how would we do this?
- Do we need an array for these?
- A second example, testing the DayT
- Check to see if the days generated by RandomDay are essentially random.