Question: Write the source code that corresponds to the pseudocode 3 . THIS MENU DOES HAVE AN EXIT CHOICE Write a program that prompts the user
Write the source code that corresponds to the pseudocode
THIS MENU DOES HAVE AN EXIT CHOICE
Write a program that prompts the user for a choice from the following menu:
Please choose a color from the following menu until they choose to exit:
Blue
Green
Red
Exit
Input Validation: The user must enter or
Pseudocode:
Declare variables
String menuChoice
menuChoice
while menuChoice :
Display menu
Please choose a color from the following menu until they choose to exit:
Blue
Green
Red
Exit
if menuChoice :
elif menuChoice :
elif menuChoice :
elif menuChoice :
Display Good Bye
else:
Display Invalid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
