Test Average and Grade Write a program, in python, that asks the user to enter five test scores. The program should display a letter grade for each...
View the step-by-step solution to:
Question

# Test Average and Grade<br/>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:
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 (as a String), based on the following grading scale:
Score 90-100 = A
80-89 = B
70-79 = C
60-69 = D
Below 60 = F

The solution is...

def calcAverage(num1,num2,num3,num4,num5):
return (num1+num2+num3+num4+num5)/5
if(num&gt;=90 and num&lt;=100):
return &quot;A&quot;
if(num&gt;=80 and num&lt;=89):
return...

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents