Question: The provided program will ask the user for his grade as an integer and report the letter grade according to the following conditions: 9 0

The provided program will ask the user for his grade as an integer and report the letter grade according to the following conditions:
90 or greater: A
80 to 90(not inclusive): B
70 to 80(not inclusive): C
60 to 70(not inclusive): D
less than 60: F
The program has 4 bugs. Find and fix them.
Instructions:
There is no need to perform input validation on this program.
Repeated bugs of the same type are considered a single bug and not two or more different bugs.
Answer: (penalty regime: 10,20,..%)
marks = int(input("Enter the student's marks
if marks >90:
grade ="A"
if marks >80:
grade ="B"
if marks >70:
grade ="C"
if marks >60:
grade ="D"
print("The student received a grade of {grade}
 The provided program will ask the user for his grade as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!