Question: 2. Create a program that has the user complete a multiple-choice question and then evaluates the users choice. The program will start by printing

2. Create a program that has the user complete a multiple-choice question and then evaluates the users choice. The program will start by printing a multiple-choice question in the Terminal window. It will then prompt the user to enter the letter of the correct answer (A, B, C, or D). If the user enters the correct letter, the program will print a message in the Terminal window stating that the answer is correct. If the user enters an incorrect choice, the program prints a message to the Terminal window that states that the choice is incorrect. An Example of How the Program Could Run The program prints the following multiple-choice question, along with a prompt to enter the letter of the correct choice. which province is Vancouver in? A. Alberta B. British Columbia C. Saskatchewan D. Ontario Enter the letter of the correct choice: The correct choice is B. If the user enters 'B' then the program will congratulate them with a message like Correct!. If the user enters a different letter, then the program will instead print a message like Incorrect! The correct choice is B.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
