Originally Posted by kordric
You don't need to store each score. Just keep a tally, and when the last score has been added to the tally, then divide by the number of scores.
int low_score, high_score;
//assign low_score and high_score to the very first student's score, then
if(current_score < low_score)
low_score = current_score;
if(current_score > high_score), etc.
That should get you started.
int tally, current_score, student_num;
tally = student_num = 0;
for (each student's score)
tally += current_score;