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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!