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
Social Sciences,
17 days ago
Math,
17 days ago
English,
1 month ago
Biology,
8 months ago
Math,
8 months ago