accept the following from the user and calculate the percentage of class attendance:a total number of working days b. total number of days for absent after calculating percentage show that,if the percentage is less than 75,than student will not be able to sit in exam
Answers
Answered by
1
Answer:
i don't know the answer bt this is a good question i will try it in my copy
Answered by
2
Answer:
number_of_presence = int(input("Enter total number of working days > "))
number_of_absence = int(input("Enter number of days absent > "))
percentage= (number_of_presence - number_of_absence) / number_of_presence * 100
print("Your percentage of class attended is: ", percentage)
if percentage < 75:
print("You will not be able to sit in exam.")
else:
print("You will be able to sit in exam.")
Similar questions
Computer Science,
1 month ago
Biology,
1 month ago
English,
2 months ago
Biology,
9 months ago
Math,
9 months ago