Dear Students, I am making sincere efforts to provide you
the programs that you have to run as a class XI IP student in your labs.
Solution:
#To find average and grade for given marks.
eng=float(input("Enter English Marks:"))
cs=float(input("Enter Computer Science Marks:"))
phy=float(input("Enter Physics Marks:"))
chem=float(input("Enter Chemistry Marks:"))
maths=float(input("Enter Mathematics Marks:"))
average=float((eng+cs+phy+chem+maths)/5)
print("Average of Marks is",average)
if average>90:
print("You scored GRADE A")
elif average<=90 and average >80:
print("You scored GRADE B")
elif average<=70 and average <80:
print("You scored GRADE C")
elif average<=60 and average <70:
print("You scored GRADE D")
elif average<=50 and average <60:
print("You scored GRADE E")
Source Code:
Source code for how to find average and grades of given marks |
Output: