NOTE : Is learning \"Python programming\" (currently on chapter 7) with the foll
ID: 3601748 • Letter: N
Question
NOTE: Is learning "Python programming" (currently on chapter 7) with the following textbook:
Book "Starting Out With Python" 3rd Edition by Gaddis
ProblemS 1. The local driver's license office has asked you to create an application that grades the written portion of the driver's license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 6.B11. A12. D 14. A 16. C 18. B 7.C 13. C 8.A 3.A 4.A 5.D 15. D 10.B 19. D 20. Your program should store these correct answers in a list (just hard code this list). The program should read the student's answers for each of the 20 questions from a text file named responses.trt and store the answers in another list. This file will have each answer as an uppercase letter on its own line. (Create your own text file to test the application.) After the student's answers have been read from the file, the program should display "Congrats! You passed!" if the student passed, or "Sorry, you did not pass" if the student failed the exam. A student must correctly answer at least 15 of the 20 questions to pass the exam. It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions ~/workspace/HW/ S python number01.py Sorry, you did not pass Your results: Correct:7 Wrong: 13 These are the questions you answered incorrectly:Explanation / Answer
I have written program as simple as possible, please comment if you find anything confusing.
.
.
.
.
.
.
.
.
.
.
.
Sample response.txt: C C A C D C D C C B D A A A C C D B A A
Result:
Sorry,you did not pass
Your results:
Correct: 6
Wrong: 14
These are the questions you answered incorrectly :
1
4
6
7
8
11
12
13
14
15
16
17
18
19
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.