Question
Write a program in python that asks the user to enter five test scores. The program should display a letter grade for each score and
Write a program in python that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program:
calcAverageThis function should accept five test scores as arguments and return the average of the scores.
determineGradeThis function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale: Score Letter Grade 90100 A 8089 B 7079 C 6069 D Below 60 F
Include function getValidScore is a function that has no passed parameters but prompts for, and reads, a single valid test score. A validation loop is used to only allow valid input for subsequent processing. The isValidScore function is used to test the users input for validity. Once a valid test score has been input, this valid test score is then returned to the calling module.
Include function isValidScore is a function that checks whether a single passed test score is in range (0 inclusive to 100 inclusive) and returns a Boolean indicating if it is valid (True if in range, False if out of range). Be sure to check for non-numeric input!
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