The marks obtained by students in three different subjects are input by the user. Write a python program which should calculate the average of the subjects and display the grade. The student gets a grade as per the following rules :
average grade
90-100A
80-89 B
70-79 C
60-69 D
0-59. F
Answers
Answered by
1
Answer:
he marks obtained by students in three different subjects are input by the user. Write a python program which should calculate the average of the subjects and display the grade. The student gets a grade as per the following rules :
average grade
90-100A
80-89 B
70-79 C
60-69 D
0-59. F
Explanation:
Answered by
8
Answer:
e=int(input("enter ur english mark")
m=int(input("enter ur maths mark")
s=int(input("enter ur sci mark")
tot=e+m+s
avg=tot/3
if avg>=90 and avg<=100:
print(" A grade")
elif avg>=80 and avg<=89:
print("B grade")
elif avg>=70 and avg<=79:
print("C grade")
elif avg>=60 and avg<=69:
print("D grade")
else:
print(" F grade")
PLEASE MARK IT AS THE BRAINLIESTT
Similar questions
Math,
4 months ago
Math,
4 months ago
Science,
4 months ago
Social Sciences,
9 months ago
English,
1 year ago