(Solved):Use a nested loop structure to read the data from the text file and calculate the student’s average grade. The outer loop will be a while loop; the inner loop will be a for loop (4 quizzes) To cal… View Answer…

 

Question

Use a nested loop structure to read the data from the text file and calculate the student’s average grade. The outer loop will be a while loop; the inner loop will be a for loop (4 quizzes)

To calculate each student’s average score, use a total variable initialized to 0 before the for loop, then calculate the student’s average after the loop. To calculate the class average, initialize a class Total

Scroll to top