Government of India has decided to give scholarship for students who are first graduates in family and have scored average > 98 in math, physics and chemistry. Write a Python program to check if a student is eligible for scholarship.
Answers
Answered by
0
Answer:
Sorry there is not full question
Answered by
0
As per the condition,
the average of the marks should be greater than 98 marks.
The students will be eligible for scholarship.
Explanation:
Print('Is student eligible is 1 or else 0 ')
first=int(input())
Print('enter physics marks' )
phy_marks=float(input())
Print('enter maths marks' )
math_marks=float(input())
Print('enter chemistry marks' )
chem_marks=float(input())
total_mark= phy_marks+math_marks+chem_marks;
avg=total_mark/3
if(phy_marks <0 or chem_marks<0 or math_marks)
print('Invalid input')
else:
if first==1 and average>=98:
print('The students eligible for scholarship')
else
print('The students not eligible for scholarship')
Similar questions