Suppose that a course has up to 15 students enrolled and that three exams are given during the semester. Write a program that accepts each student’s name and grades as input, places the names in a one-dimensional array, and places the grades in a two-dimensional array. The program should then display each student’s name and semester average. Also the program should display the median for each exam. (For an odd number of grades, the median is the middle grade after the grades have been ordered. For an even number of grades, it is the average of the two middle grades.) See the figure below.
|Captures student name
|Triggers event to add student and grades to arrays
|Triggers event to display results
|Captures score for first exam
|Captures score for second exam
|Captures score for third exam