Write a program that ask user to input number of students and no of chairs in the class. Also input the availability of the teacher in yes or no.
If the teacher is not available class will not be held otherwise check if no of chairs is greater than no of students, print “ okay for class execution “ otherwise declare a problem.”
In case of a problem check whats the time if time is less than 11 pm you can go and ask fr another teacher .
Comments
Leave a comment