Question: program in prolog Sara is a vegetarian and eats only what her doctor tells her to eat. Given a menu and the preceding rule, you
program in prolog
Sara is a vegetarian and eats only what her doctor tells her to eat.
Given a menu and the preceding rule, you can conclude if Sara can order a particular item on the menu. To do this, you must check to see if the item on the menu matches the constraints given.
a. Is Food_on_menu a vegetable?
b. Is Food_on_menu on the doctor's list?
c.. Conclusion: If both answers are yes, Sara can order Food_on_menu.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
