Answer to Question #270635 in Python for comscie

Question #270635

write a python program that accepts a quiz average, midterm grade, and final grade. Compute


the numerical grade , nm= ( quiz average + midterm grade + final grade)/3 and converts it to an equivalent letter


grade, and displays the letter grade. Use appropriate message for the program

1
Expert's answer
2021-11-23T11:22:35-0500
midterm = float(input("Enter your midterm average: "))
quiz = float(input("Enter your quiz grade: "))
final = float(input("Enter your final grade: "))
def calculate(midterm, quiz, final):
  score = ( quiz + midterm + final)/3
  if score >= 90: return "A"
  elif score >= 80: return "B"
  elif score >= 70: return "C"
  elif score >= 60: return "D"
  else : return "E"
  
calculate(midterm, quiz, final)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS