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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

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))
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply