1.

Following code is meant to be an interactive grade calculation script that converts from a percentage into a letter grade :90 and above is A+,80-90 is A,60-80 is A-,and everything below is fail.Write the program to display grade of a user ?

Answer»

grade = input (“Enter the grade percentage”) if grade > = 90 :

print “Grade is A+” if 80 < = grade < 90 : print “Grade is A” elsif 60 < = grade : print

“Grade is A-” else grade < 60 :

print “You are fail”



Discussion

No Comment Found