I am trying to calculate the class average of student's grades. the student names are displayed in a list box, while their corresponding grade is displayed in a separate list box. calculate the average: # of students/ sum of their grades.(grades are numeric)
EX: John 90
sally 88
mike 75
I can't get it to add the sum of the grades i.e. (90+88+75). Also, I won't know how many students and grades the user will enter into the list. so it has to be able to add any number of grades.
any help would be great. thanks.
EX: John 90
sally 88
mike 75
I can't get it to add the sum of the grades i.e. (90+88+75). Also, I won't know how many students and grades the user will enter into the list. so it has to be able to add any number of grades.
any help would be great. thanks.
Comment