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

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!