Question
How to write a program using Python programming language that will grade a portion of a final test and store the answers in a list.
How to write a program using Python programming language that will grade a portion of a final test and store the answers in a list. The program should read from a text file called 'student_answers.txt' the student's answers for the 25 questions and place the student's answer in another list. After grading the exam the program needs to display, the percentage correct, and a letter grade(scale listed below). It should then display the total number of correctly answered question's, the total number of incorrectly answered questions, and a list showing the question numbers that were answered incorrectly.
Test Score Grade
>=90 and above A
>=80 to 90 B
>=70 to 80 C
>=60 to 70 D
<60 and below F
An example of output:
Percentage correct.........88%
Letter grade.....B
You incorrectly answered.......3
You correctly answered.......22
You missed questions.........1,5,12
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started