Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please provide all codes using Prolog. 3. Do these different queries produce the same result in prolog? Why? 2 N is-(6,7),3) 2 N is (6+7)-3.
please provide all codes using Prolog.
3. Do these different queries produce the same result in prolog? Why? 2 N is-(6,7),3) 2 N is (6+7)-3. For each of the following English statements write a prolog program 4. Facts & Rules (1) jane is a woman. (2) john is a man (3) john is healthy. (4) jane is healthy. (5) john is muscular (6) anyone is a hiker if he is healthy and muscular. (7) anyone can hike if he is a hiker. % Goals (queries). (8) Who can hike? (9) Who is healthy and muscular? 5. What answers do you get for below queries for this given program? % Facts & Rules vegan (iose) (iames). milk (cow milk milk (soy milk) likes (jose, X) :-milk (X) . vegan loves (Who, soymilk)- vegan (Who) % This are queries. You do not need to copy the 2- symbol ? milk (X) 2- milk (potato) . 2- likes jose, What). ?-likes (Who, soy milk). - loves (Who, soy milk)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started