Question: Using GNU Prolog on PuTTY please. 2 Consider the following database for the meals of lunch and dinner. 2.1 Create facts for the entres: entre(

Using GNU Prolog on PuTTY please.

Using GNU Prolog on PuTTY please. 2 Consider the following database for

2 Consider the following database for the meals of lunch and dinner. 2.1 Create facts for the entres: entre( X,Y) where X is lunch or dinner and Y is the entre. Create facts for the side: side(X,Y) where X is lunch or dinner Y is the side. Create facts for the ingredients : ingredient (X,Y) where X is the side and Y is the ingredient. 2.2 Create a rule meal (X,Y) where X is lunch or dinner and Y is the food that will be served. For example, meal(lunch, X) should return sandwhich, chips, and lemonade. 2.3 Create a rule shoppinglist (X,Y) where X is lunch or dinner and Y is the ingredient needed. For example, shoppinglist(dinner, X) should return egg, flour, green, and tea

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!