// Input example:
var userInput = input("Action: ");
if(userInput == "run") {
// Run code
} else if(userInput == "stop") {
// Run code
} else {
// Run error code
}
// More-like-what-you-want example:
if(user.clickApp("Brainly")) {
// Open Brainly
} else if (user.clickApp("App")) {
// Open App
} else {
// Other if, else if, else statements
}
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.
#2: Portrait taller than wide & landscape wider than tall
Answer: magnetic tape, floppy disks and hard-disk drives
Explanation: