USE PYTHON. Write a program that prompts the user to enter 5 test scores. The program...

90.2K

Verified Solution

Question

Programming

USE PYTHON. Write a program that prompts the user to enter 5test scores. The program should display a letter grade for eachscore and the average test score.

Hint:

Declare local variables under main() program

Prompts the user to enter 5 test scores

Define a function to calculate the average score: this shouldaccept 5 test scores as argument and return the avg

Define a function to determine the letter grade: this shouldaccept a test score as argument and return a letter grade based onthe following grading scale.

Score         LetterGrades

90-100               A

80-89                  B

70-79                  C

60-69                  D

Below60           F

Answer & Explanation Solved by verified expert
4.2 Ratings (813 Votes)
def calcaveragen1n2n3n4n5 return n1n2n3n4n55def determinegradescore if score 60 letter F elif score 70 letter D    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students