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.
The code that carried out the functions indicated above is stated below. It is not be noted that the code is written in C#
<h3>
What is C#</h3>
C# is a type-safe, object-oriented programming language. It is pronounced "see sharp"
<h3>
What is the code for the above task?</h3>
Using System;
public class HoursAndMinutes
{
public static void Main()
{
// declaring minutes variable and assigning 197 as given in question
int minutes = 197;
// outputing the total minutes , hours
Console.WriteLine("{0} minutes is {1} hours and {2} minutes.", minutes, minutes/60, minutes%60);
}
}
// OUT
Learn more about C#:
brainly.com/question/20211782
#SPJ1
Larry page is the correct answer :)