Question: Write a program that reads a string that contains a test taker's answers to multiple choice exam questions and grades the test For example,

Write a program that reads a string that contains a test taker's 

Write a program that reads a string that contains a test taker's answers to multiple choice exam questions and grades the test For example, assume that the correct answers (for 11 questions) are defined as: # Define a string containing the correct answers. CORRECT ANSWERS = "adbdcacbdac" Then Ask for the User's answers (in a string) And see if each answer is correct or not (hint: compare each character in the defined string and the string the User inputs) Keep a percent score of correct answers At the end, Display the Missed questions, and the percent score as shown below: Enter your exam answers: acddcbcbcac You missed 4 questions: aXXdcxcbXac Your score is: 64 percent

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python CORRECTANSWERS adbdcacbdac USERANSWERS inputEnter your exam answers Count the number of ... View full answer

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 Algorithms Questions!