Ive started with this program
asg1Mark = int(raw_input("Enter Asg1 mark: "))
asg2Mark = int(raw_input("Enter Asg2 mark: "))
examMark = int(raw_input("Enter Exam mark: "))
final = asg1Mark + asg2Mark + examMark
print 'Please enter only numbers'
print "Final mark is %d, grade is" % finalMark,
if finalMark < 50:
print "Sorry, You have Fail"
elif finalMark <= 65:
print "You Passed. Well done"
elif finalMark <= 75:
print "You have earned a Credit :-) "
elif finalMark <= 85:
print "Distinction !!!"
elif finalMark >= 85:
print "Congrats you have earned an High Distinction"
print "Invaild selction has been entered. Please try again"
finalMark = calcFinal()
if __name__ == "__main__":
A student MUST pass the final exam in order to pass the unit. Furthermore, if a student passes the exam, but fails the unit by not more than 5% of the total assessment, they are offered an AA – a chance to pass the unit by resubmitting an assignment and attaining a nominated standard.
Similarly, if a student fails the exam, but their total marks are within 5% of a passing grade, they are offered an AE – a chance to resit the exam and attain a passing grade.
What would be the best to approach this question
would it be to create another loop ??
Any help would be great