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 score numeric grade letter grade score 1: 60.0 D score 2: 95.0 score 3: 87.0 B score 4: 75.0 C score 5: 99.0 A Average score: 83.2 B assignment 5 Rubric Criteria Comments at the top of the program: First last name./ date / what your program does. The run is included as a comment at the end of your code you must have at least 2 sample runs. comment before each function: what the function does. inputs and returns. Names of your variables are meaningful The program is running with the correct output. comment before any if block or while block - getScore function is created and it validates the input with a while loop. - calcAverage function is created and returns the average score. - determineGrade function is created and it returns the letter grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
