Create a Python program that does the following:
A student will get an extra 5 marks if his/her attendance is more than 75%.
Take following input from user:
a-Number of classes held
b-Number of classes attended.
c-And print percentage of class attended. Is student is allowed to get an extra 5 marks in exam or not?
Assume that the number of classes held equal 45.
All assignment should be submitted in python format.
Answers
Answered by
0
Answer:
a = int(input("Enter the number of classes held: "))
b = int(input("Enter the number of classes attended: "))
c = (b/a)*100
if c > 75:
print("Student is elligible for extra 5 marks")
else:
print("Student is not elligible for extra 5 marks")
Explanation:
Similar questions