Pseudocode:
Print and ask the user for the exam mark
examMark = user input for exam mark
Print and ask the user for the final module mark
finalMark = user input for final module mark
if examMark > 30 and finalMark < 50 then print qualifies for a supplementary exam
else print NOT qualifies for a supplementary exam
Python:
examMark = float(input("Please Enter the exam mark: "))
finalMark = float(input("Please Enter the final module mark : "))
if examMark > 30.0 and finalMark < 50.0:
print("You are qualifies for a supplementary exam.")
else:
print("You are NOT qualifies for a supplementary exam.")
Comments
Leave a comment