Question: Write a program that: 1. asks the user to enter five test scores. 2. accepts grades that are greater than zero and less or equal

Write a program that: 1. asks the user to enter five test scores. 2. accepts grades that are greater than zero and less or equal to 100. 3. displays a letter grade for each score and the average test score. Check the sample run for clarification. Your program must have the following functions: - getScore. This function should prompt the user to enter one score and return the score after it validates it. Notice that this function is called 5 times in main. - calcAverage. This function should accept five test scores as arguments and return the average of the scores. - determineGrade. This function should accept a test score 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. Notice you need if elif else statements in this function. - main. This function should call the other three functions and print out the output. Sample run: Enter score: 60 Enter score: 95 Enter score: 300 Enter a valid score: 87 Enter score: 75
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
