The program is to input an examination mark and test it for the award of a grade. The mark is a whole number between 1 and 100. Grades are awarded according to the following criteria: >= 80 Distinction >= 60 Merit >= 40 Pass < 40 fail Write pseudo-code.
Grade=input("Input your examination mark")
if Grade>=80
print("Distinction")
if 80>=Grade>60
print("Merit")
if 60>=Grade>=40
print("Pass")
if Grade<40
print("Fail")
Comments
Leave a comment