Enter into array, 8 marks, then
Call 3 functions
greatest
Smallest
Average
Each of these 3 functions will receive as parameters the array of marks as well as the # of elements in the array.
Greatest will use these parameters to cal. the highest mark and return this value to main.
Smallest will use these parameters to cal. the lowest mark and return this value to main
Average will use these parameters. to cal. the average mark and return this value to main.
Upon receiving the highest mark, lowest mark, and average mark, main will display these 3 pieces of information on screen.
Call 3 functions
greatest
Smallest
Average
Each of these 3 functions will receive as parameters the array of marks as well as the # of elements in the array.
Greatest will use these parameters to cal. the highest mark and return this value to main.
Smallest will use these parameters to cal. the lowest mark and return this value to main
Average will use these parameters. to cal. the average mark and return this value to main.
Upon receiving the highest mark, lowest mark, and average mark, main will display these 3 pieces of information on screen.
Comment