Write a script with if-elif-else blocks to determine the grade obtained by a student based on the total average obtained. Use the following criteria to determine the grade:
if total average >= 90, display "Distinct".
if in range [60, 90), display "Above average".
if in range [40, 60), display "Average".
else display "Fail"
Answers
Answered by
2
Answer:
this script is for python language
Explanation:
a = int(input("marks in english : "))
b = int(input("marks in maths : "))
c = int(input("marks in computer : "))
total = a+b+c
avg = total/3
if avg>=90 :
print("Distinct")
elif avg>60 and avg<90:
print("Above average")
elif avg>40 and avg<60:
print("Average")
else:
print("fail")
print("total: ",total)
HOPE THIS HELPS YOU!!
PLEASE MAKE THIS A BRAINLIEST ANSWER.
Similar questions