Question
Write a program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name
Write a program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name will be a local variable. The program should display a letter grade for each score, and the average test score, along with the student's name. There are 12 students in the class. Write the following functions in the program:
calc_average - this function should accept 8 test scores as arguments and return the average of the scores per student
determine_grade - this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
Data for the program:
Lucy Miller 45 69 70 66 87 82 75 73
Frank Jones 90 93 87 84 91 93 90 88
Nancy Franklin 99 97 92 90 88 89 87 90
Judy Forsyth 72 86 59 69 72 78 80 82
Tony Spirit 87 83 86 90 79 76 80 88
Ruth Ames 66 69 72 61 69 73 71 70
John Smith 100 98 89 93 82 86 91 93
Andrew Barnes 78 77 75 83 80 87 80 78
Becky Stone 98 94 90 89 84 83 79 93
Marvin Decker 59 54 61 45 39 66 70 72
Steve Parker 71 78 73 62 66 72 64 70
Frank Harper 89 86 90 92 91 85 88 93
*Must be run on Python with no additional programs, please include screenshots and I would appreciate it if this code is as simple as possible because everytime I have searched for help the code makes no sense or variables come back undefined, thank you!*
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