logo
Published on Models of Motion (http://www2.evergreen.edu/modelsofmotion)

Array Practice

Assume you have a filled list of integers called scores.  Assume you will be passing in this list to your function.  Only write the function itself to solve the following problems:

1.  Print all the odd scores that are more than 10 above the average and more than 10 below the high score

2.  Return the highest even score that is less than the average of all the odd scores.

3.  Find the average of all the even numbers that fall before the position of the highest score in the list.

4.  Swap the score closest to the average with the highest score in the list.  (find the position of each and swap the position of each score in the list)


Source URL:
http://www2.evergreen.edu/modelsofmotion/modelsofmotion/array-practice