Hi I am new to this forum and also a beginner at programming. I just want to ask some help for those kind people out there about my code. I am getting an output of the average of the 4 exams of 5 students. My problem is, i don't know how to get the output for the average of each exam. e.g average of exam # 1 of 5 students. Thanks for helping me out!
Your data is in a 2D table. The results for one student are all on the same row of the table. You do calculate the average for each row. You do calculate the sum for a row, don't you?
The results for an exam are on the same column. Calculate sum for a column.
for (int exam=0 ; exam<=3 ; exam++)
{
// Insert code to set zero values for average totals
for (int student=0 ; student<=4 ;student++)
{
// Insert code to calculate totals for all students for each exam;
}
// Insert code to calculate average and display it for current exam
}