ICS 101 - Computer programming
Lab # 11
(ONE-DIMENSIONAL ARRAYS) II
ONE - DIMENSIONAL ARRAYS AND SUBPROGRAMS
Following is the output of the program.
Use the data:
2 4 10 8 5 3
Your output should be:
the average of the elements = 5.333333
Write a program that reads the grades of a number of students that does not exceed 20. The program should then pass these grades to a subroutine that computes and returns: (1) the maximum grade and, (2) the number of grades below the average . The values returned to the main program should then be printed.