Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Visal Basic 2013 In Visual Basic, Suppose a course has up to 10 students enrolle

ID: 3680012 • Letter: V

Question

Visal Basic 2013

In Visual Basic, Suppose a course has up to 10 students enrolled and 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.)

Comment out your code to be more clear, Thanks

Exam 1: Name Exam 2: Add Student Exam 3: Display Report Students' Semester Average Mark: 80.00 Steve: 68.33 Jeff: 91.00 Exam Medians 1 80 2: 80 3 85

Explanation / Answer

#include //#define MAX_ARRAY 10 #define S_MAX_ARRAY 10 #define M_MAX_ARRAY 3 int main () { char student[S_MAX_ARRAY]; int mark[M_MAX_ARRAY]; int low = 100; int high = 0; int average = 0; for(int i = 0; i