Question: Consider the following Prolog program: box ( yellow , hotweels ) . box ( yellow , puzzle ) . box ( red , dress )
Consider the following Prolog program:
boxyellow hotweels boxyellow puzzle boxred dress boxred shoes boxblue book
addressedtoyellow alex addressedtoblue alex addressedtored becky
addressedtogreen chris
giftPerson Gift : addressedtoColor Person boxColor Gift
nogiftPerson : addressedtoColor Person not boxColor Gift
a What is the first value of X returned by the goal giftalex X
b Which person does not receive a gift? That is what is the value of X returned by the goal
nogiftX
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
