Consider the following Grading System: Grade > A+ A B+ B C+ C D E Mark > 85-100 78-84 71-77 64-70 57-63 50-56 40-49 0-39
Posted: Fri Jul 01, 2022 5:38 am
Consider the following Grading System:Grade >A+AB+BC+CDE Mark >85-10078-8471-7764-7057-6350-5640-490-39The following program is written to calculate the grade based onthe mark entered by the user. To make program functional, you needto fill-up the blank grades and conditions in lines 6, 9, 13, 17,and 18. 5 marksAnswer:1mark = eval(input(“Enter mark (0 - 100):”))2if (mark<0 or mark>100):3print("Invalid mark, mark must be within 0 - 100.")4else:5if (mark<40):6grade=" "7elif(mark<50):8grade="D"9elif( ):10grade="C"11elif(mark<64):12grade="C+"13elif( ):14grade="B"15elif(mark<78):16grade="B+"17elif( ):18grade=" "19else:20grade="A+"21print("The grade for %d is %s" %(mark, grade))