Question: 7. Consider a course timetable for a Fine Arts student at a mythical university. The student wants to take a course in art, music, film,
7. Consider a course timetable for a Fine Arts student at a mythical university.
The student wants to take a course in art, music, film, and dance, and each of these has three hours of classes a week. To accommodate a variety of timing constraints, some courses offer two sections at different times.
There are two possible sections for art. One is offered MWF10, and the other, MWF11.
There is a single section of dance: Friday 1–4.
Music can be taken either Monday at 11, Wednesday at 3, and Friday at 3, or Monday at 2, Wednesday at 2, and Friday at 11.
There are two sections of film: one on Monday at 11, Wednesday at 11, and Friday at noon, and one on Monday at noon, Wednesday at noon, and Wednesday at 3.
In addition, the student wants a free hour for lunch each day at noon or at 1.
Write a Prolog program that generates a timetable for the student.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
