Answer:
B. A "while" loop inside of a "for" loop
Explanation:
To enter 5 grade values, a for loop can be used to specify the number of grade values to be entered by the user, in other to ensure the validity of the grade values entered by the user, the while loop will be used inside the for loop such that the inputted values will only be accepted when the user enters a valid grade.
Code structure :
For a in range(0, 5) :
grade = input()
while grade (enter condition)
This is just the code structure and this will work for the problem stated.
How was data put into the Tabulating Machine?
Answer:
punch cards
Yes you can
Hope this helps.!