General
Material
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5

Hint

menu(hungry,X,Y,Z) :- starter(X),
                      main(Y),
                      desert(Z).
menu(not_so_hungry,X,Y,nothing) :- starter(X),
                                   main(Y).
menu(not_so_hungry,nothing,Y,Z) :- main(Y),
                                   desert(Z).
menu(on_diet,X,nothing,nothing) :- starter(X).
    

Back to the exercise.