Question: / * Question 2 . 1 : Define a rule pizza ( P , M , B , O , C ) to find out

/* Question 2.1: Define a rule pizza(P, M, B, O, C) to find out how many of each topping can be
* contained on a pizza, where P, M, B, O, and C are the numbers of the pepperoni, meatball,
* basil, olives, and chicken toppings, respectively.
*/
/* Question 2.2: Write a rule called q2 :- condition, to ask the following question (goal), so that the grader to type:
*|?- q2.
* To test the question:
*|?- pizza(1,2,2,2,2).
* Put all answers of the question in a comment in the file
*/
/* Question 2.3: Write a rule called q3 :- condition, to ask the
* following question (goal), so that the grader to type:
*|?- q3.
* To test the question:
*|?- pizza(1, M,1, O, C).
* Put all answers of the question in a comment in the file
*/
/* Question 2.4: Write a rule called q4 :- condition, to ask the following question (goal), so that the grader to type:
*|?- q4.
* To test the question:
*|?- pizza(P, M, B, O,1).
* Put all answers of the question in a comment in the file
*/

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!