Question: make a Python program Create the logic for an application that administers a multiple choice quiz. You may use Flowgorithm or Python for this assignment.

 make a Python program Create the logic for an application that

make a Python program

Create the logic for an application that administers a multiple choice quiz. You may use Flowgorithm or Python for this assignment. Each question will have three choices for the answer, labeled A, B and C. Display one question at a time, along with the three choices for the answer, then allow the user to enter a response. The user's response must be validated: verify that the user enters only A, B, or C - if not, tell the user they entered an invalid response and prompt them to try again. Keep prompting the user until a valid response is entered. A separate module must be used for this validation requirement, either - A validation module that tests the user's entry and returns true or false; or - An input module. This module will return a validated response to the code that calls it. Once a valid response has been entered, determine whether the user answered the question correctly. If so, display Correct!; otherwise display The correct answer is and the letter of the correct answer. Then move on to the next question. After the user has answered all of the questions, display the number of correct responses. The questions, the possible answers, and the correct answers will be maintained in five parallel arrays: 1. question array 2. choice A array 3. choice B array 4. choice C array 5. correct answer array If you are using Python for this assignment you must use five lists or five tuples. The only list method that is allowed is append. After populating the lists or tuples, specific data elements must be accessed in the same way an array element is accessed: using an index value in square brackets. You may not define any classes in your code. If you are using Python for this assignment you must use five lists or five tuples. The only list method that is allo append. After populating the lists or tuples, specific data elements must be accessed in the same way an array e is accessed: using an index value in square brackets. You may not define any classes in your code. Your quiz must have a minimum of five questions. A loop structure must be used to present the questions and possible answers, and process the user's responses. one block of code that is repeated in a loop, with one iteration of the loop per question. Your logic should work ten, fifty, or a thousand questions, with only relatively minor changes. Be sure to check the rubric for how this assignment will be graded

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!