In a computer program, loops are used to perform repetitive operations until a condition is met.
The nested loop structure to use in this case is: <em>A "while" loop inside of a "for" loop</em>
<u>The outer loop</u>
First, you must iterate through each student.
This can be done using a for loop or a while loop.
However, it is faster to implement this kind of iteration on a for loop, than a while loop
So, the algorithm of the outer loop would look like the following:
<em>for student = 1 to 5 step 1</em>
<em />
<u />
<u>The inner loop</u>
Next, you must get input for the 5 grades for each student
After getting input for the grade of each student, a loop would be used to test if the input is valid.
The loop would be repeated until the user enters a valid input.
This can only be done using a while loop.
So, the algorithm of the inner loop would look like the following:
<em>input grade</em>
<em>while grade is invalid:</em>
<em> input grade</em>
<em />
<em />
<em />
Hence, the nested loop structure to use is:
<em>A "while" loop inside of a "for" loop</em>
<em />
<em />
Read more about loops at:
brainly.com/question/11608024