For all these examples, assume you have a filled array of integers called a with count entries. See if you can enter a function into the test array template that will:
Find the average of all scores more than 10 less than the highest score.
Find how many even scores are within 10 of the average score
Find the highest even score more that 10 less than the highest score
Find the number of odd scores that are more than the average and that fall after the first even score in your array.
Find the second highest score
Find the biggest value that is more than 5 above the average and more than 5 less than the highest score
|