Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Language is python Write a program named grades.py that asks the user to enter five test scores. Assume valid scores will be entered and each
Language is python
Write a program named grades.py that asks the user to enter five test scores. Assume valid scores will be entered and each number will be entered separately, i.e. you will need 5 variables. The program should display a letter grade for each score and the average test score. Write the following functions in the program: main asks the user to enter five test scores separately, placing them into five float variables. main should then call showScores 5 times passing one of each of the scores each time. When returned from showScores, main should then call calcAverage passing it the 5 scores. showScores- receives a single score and prints the score to the console (without starting a new line) and sends the score just printed to printletterGrade which will print a letter grade on the same line. printletterGrade accepts a single number as an argument and displays a letter grade for the score based on the following grading scale Letter Grade Score 90-100 80-89 70-79 60-69 Below 60 calcAverage receives the 5 scores as arguments and displays the average of the scores, along with a letter grade equivalent to that average (take advantage of the function printLetterGrade to display the letter by passing it the calculated average)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