Test 2 Part 2: (75 points)

This program will process grades for the group of students. The program will ask user to enter the number of students in the group, and the number of courses each student takes in specific semester. Assume, that all students take the same number of courses. The program will ask user to enter final grade for each course for each student. All grades will be stored in 2-D list. One row of 2-D list stores grades for one student.

For example, if there are 3 students in the group and each student takes 2 courses, and the input grades are: 90 67 for first student, 99 56 for second student, and 78 67 for third student, the 2-D list of grades will be as follows:

90 67
99 56
78 67

ASSUME THAT INPUT IS VALID. NO NEED TO CHECK VALIDITY OF THE INPUT.

Write the following functions: