Consider the following prolog logic program:
mother (mary, sue).
father (john, sue).
mother (mary, bill).
father (john, bill).
mother (sue, nancy).
father (bob, nancy).
mother (sue, jeff).
father (bob, jeff).
mother (jane, ron).
Father(bill,ron).
Parent(A,B) :- father(A,B).
Parent (A,B) :- mother(A,B).
Grandparent(C,D) :- parent(C,E), parent(E,D).
Show the trace of the processing of the following queries:
?- grandparent(Who, ron).
Expert Answer
An answer will be send to you shortly. . . . .