Here is a program on calculating grades. Please correct the errors in the program. # Calculating Grades (ok, Let me think about this one) # Write a program that will average 3 numeric exam grades, return an av erage test score, a corresponding Letter grade, and a message stating w hether the student is passing. Grade # Average # 90+ A # 80-89 # 70-79 # 60-69 # 0-59 B с D F # Exams: 89, 90, 90 # Average: 90 # Grade: A # Student is passing. # Exams: 50, 51, 0 # Average: 33 # Grade: F # Student is failing. exam_one = int(input("Input exam grade one: ")) exam_two input ("Input exam grade two: ")) str(input("Input exam grade three: ")) exam_3 =

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Python programming only 

FIX THE ERRORS IN THE CODE EXERCISE

Here is a program on calculating grades. Please correct the errors in the program.
# Calculating Grades (ok, let me think about this one)
# Write a program that will average 3 numeric exam grades, return an average test score, a corresponding letter grade, and a message stating whether the student is passing.

please use the code below just need any errors in it corrected like profreading an essay im having trouble with it 

grades = [exam_one exam_two exam_three]
sum = 0
for grade in grade:
sum sum + grade
avg=sum / len (grdes)
if avg >= 90:
letter_grade = "A"
elif avg >= 80 and avg < 90
letter_grade = "B"
elif avg> 69 and avg < 80:
letter_grade = "C'
elif avg <= 69 and avg >= 65:
letter_grade = "D"
elif:
letter_grade = "F"
for grade in grades:
print("Exam: " + str(grade))
print("Average:
+ str(avg))
print("Grade: " + letter_grade)
if letter-grade is "F":
11
print "Student is failing."
print "Student is passing."
else:
Fixed:
Transcribed Image Text:grades = [exam_one exam_two exam_three] sum = 0 for grade in grade: sum sum + grade avg=sum / len (grdes) if avg >= 90: letter_grade = "A" elif avg >= 80 and avg < 90 letter_grade = "B" elif avg> 69 and avg < 80: letter_grade = "C' elif avg <= 69 and avg >= 65: letter_grade = "D" elif: letter_grade = "F" for grade in grades: print("Exam: " + str(grade)) print("Average: + str(avg)) print("Grade: " + letter_grade) if letter-grade is "F": 11 print "Student is failing." print "Student is passing." else: Fixed:
Here is a program on calculating grades. Please correct the errors in the program.
# Calculating Grades (ok, Let me think about this one)
# Write a program that will average 3 numeric exam grades, return an av
erage test score, a corresponding Letter grade, and a message stating w
hether the student is passing.
# Average
# 90+ A
#
# 70-79
# 60-69
# 0-59
Grade
B
с
# Exams: 89, 90, 90
# Average: 90
# Grade: A
# Student is passing.
exam_3 =
D
F
# Exams: 50, 51, 0
# Average: 33
# Grade: F
# Student is failing.
=
exam_one = int(input("Input exam grade one: "))
exam_two input ("Input exam grade two: "))
str(input("Input exam grade three: "))
Transcribed Image Text:Here is a program on calculating grades. Please correct the errors in the program. # Calculating Grades (ok, Let me think about this one) # Write a program that will average 3 numeric exam grades, return an av erage test score, a corresponding Letter grade, and a message stating w hether the student is passing. # Average # 90+ A # # 70-79 # 60-69 # 0-59 Grade B с # Exams: 89, 90, 90 # Average: 90 # Grade: A # Student is passing. exam_3 = D F # Exams: 50, 51, 0 # Average: 33 # Grade: F # Student is failing. = exam_one = int(input("Input exam grade one: ")) exam_two input ("Input exam grade two: ")) str(input("Input exam grade three: "))
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education