EXE-1 - lab. a. parent( jim, X). b. parent( X, jim). c....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
King AbdulAziz University CPCS-331 Faculty of Computing & Information Technology Prolog-Lab Fall Semester – 2011 Lecturer: I. Aasma Memon Prolog –Lab Exercise 1 Name: ________ I.D:___________ Q1. Using the family prolog file created in lab, Answer following Questions. Submit this task in next
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: lab. a. parent( jim, X). b. parent( X, jim). c. parent( pam, X), parent( X, pat). d. parent( pam, X), parent( X, Y), parent( Y, jim). Q2.Formulate in Prolog the following questions about the parent relation: (a) Who is Pat's parent? (b) Does Liz have a child? (c) Who is Pat's grandparent...
View Full Document

Ask a homework question - tutors are online