Question: grade = int ( input ( Enter your grade: ) ) #error message placed here if grade < 0 or grade > 1

grade=int(input("Enter your grade: "))
#error message placed here
if grade<0 or grade>100:
print("Error!!")
elif grade>=90:
print("Very Good!")
#code added here
elif grade>=80:
print("Good!")
#70 to 79
elif grade>=70:
print("Satisfactory!")
#60 to 69
elif grade>=60:
print("Fair!")
#less than 60
else:
print("Poor")
h. Make a final change to the program so that it prints an error message if the grade entered is greater than 100 or less than 0. Write the additional code below and draw a line to the program above to indicate where you would place this code.

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!