Solution
4.
(1)
woman(jane).
(2)
man(john).
(3)
healthy(john).
(4)
healthy(jane).
(5)
wealthy(john).
(6)
traveler(X) :- healthy(X), wealthy(X).
(7)
travel(X) :- traveler(X).
(8)
travel(X).
% John can travel because he is healthy and wealthy
(9)
healthy(X), wealthy(X).
%John
--
5)
?- vegetable(X).
carrot
?- vegetable(potato).
false
?- likes(jose, What).
carrot
?- likes(Who, egg_plant).
Jose
?- loves(Who, egg_plant).
Jose
--
solved 2 problems, really sorry for that
please post remaining question separately, love to answer
all the best
CSE 240 Homework 5- Programming with PROLOG Due: Monday, April 22, 11:59 PM A. What This...
For each of the following English statements write a prolog program. % Facts & Rules (1) jane is a woman. (2) john is a man. (3) john is healthy. (4) jane is healthy. (5) john is wealthy. (6) anyone is a traveler if he is healthy and wealthy. (7) anyone can travel if he is a traveler. % Goals (queries). (8) Who can travel? (9) Who is healthy and wealthy?
7. For below English sentences write applicable Prolog facts, rules & goals. a) John reads a book. b) Anyone likes sundevils if he/she is an ASU student. c) Who likes sundevils? d) Jane likes any village if it is small and sparse.
Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...