Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/ * 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

=+ (e) The probability in Problem 2.15.

Answered: 1 week ago

Question

Many different people can conduct performance appraisals.

Answered: 1 week ago