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 =
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
Related questions
Question
Python
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:](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7cef3050-b0aa-40af-9112-57cab04a18ba%2Fd3e70387-f055-4557-ba97-947e548ff2ce%2Ftpnanc_processed.jpeg&w=3840&q=75)
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:

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education