Question: You have been asked to write an application that automatically grades a quiz. The quiz has 1 5 multiple - choice questions. The correct answers
You have been asked to write an application that automatically grades a quiz. The quiz has multiplechoice questions. The correct answers are:A D BC D CA A DB C DB A BThe program will start by creating a list holding the quiz answers key shown above. It will then prompt the user for the student name and their answers file and read them into a separate list. It will finally compare the key vs answers lists to calculate & display:Number of correct answersNumber of incorrect answersQuestions incorrectly answered.Whether the student has passed or failed the quizA student must correctly answer out of questions to pass.The user can grade as many students as they wish.NotesThe file containing the students answers is organized as lines. Each line contains the answer to the corresponding question. The responses are single character strings, from A to D uppercase.Must use functional decomposition in your program implementation.Use Exception Handling to catch file processing errors such as IOError, FileNotFoundError, etc.You may use the AQuiz.txt BQuiz.txt and CQuiz.txt files attached to the Unit Lab Assignment and Submission Folder, for testing purposes.
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
