This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Generate your own different queries to test above predicate Q2. Add some more clauses to store telephone number for each room. Use a predicate phone with two arguments, 1 st argument should be room number , second should be extension Phone(room number, extension) Lecturer: Aasma Memon [ CPCS-331 ] Write this rule here Ring(P,N):-room(P,R),phone(R.N). Visiting(alan,Helen) Find(X.Z):- visiting(X,Y),room(Y,Z). Q3....
View Full Document
This note was uploaded on 01/02/2012 for the course COMPUTER 101 taught by Professor Dr.kahan during the Spring '11 term at Akademia Ekonomiczna w Krakowie.
- Spring '11