Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

5-4 What are the current computer software platforms and trends?

Answered: 1 week ago