1. likes(tom, carol); likes(tom, rosy). /* Tom likes Carol or Tom likes Rosy */
2. likes(nick, lucy), likes(lucy, nick). /* Nick likes Lucy and Lucy likes Nick */
3. father(a,b) :- man(a) , parent(a,b).
4. Jack is the owner of cat X if X has Fur and spots.
#s 1-5 in prolog Give an example of "or" relationship. Give an example of "and" relationship. Assume the following facts: parent(a,b). man(a). woman(c) 1. 2. 3. State a clause for...
CSE 240 Homework 5- Programming with PROLOG Due: Monday, April 22, 11:59 PM A. What This Assignment Is About: Facts, Rules, Goals Prolog execution model Arithmetic operations . Recursive Rules B. Use the following Guidelines Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc.) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, methods, and code associated with ifs, switches and loops. Be consistent with the number of...