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: B 2. D 3. A 4. A 5. B 6. A 7. B 8. A 9. C...

1 answer below »

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:



  1. B 2. D 3. A 4. A 5. B 6. A 7. B 8. A 9. C 10. D

  2. B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A


Your program should store these correct answers in a list. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another list. (Create your own answer text file to test the application.) After the student’s answers have been read from the text file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 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.


Once you have completed the program, take a screen shot of the completed functionality (including the input and the output of the script) and save it in a word document, along with the script.


In your initial post,



  • Attach your Word document.

  • Describe your process in developing the program. Paragraph format.

Answered 2 days AfterMar 26, 2021

Answer To: Create an application that grades the written portion of the driver’s license exam. The exam has 20...

Pulkit answered on Mar 28 2021
138 Votes
assignment/1.PNG
assignment/2.PNG
assignment/3.PNG
assignment/4.PNG
assignment/correct.txt
B
D

A
A
B
A
B
A
C
D
B
C
D
A
D
C
C
B
D
A
assignment/main.py
# function that reads the file and returns the list
def get_list(filename):
f = open(filename, "r")
lines = f.readlines()
ans = []
for line in lines:
if line.strip() != '':
# last character of...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here