Write prolog clauses to express the relationships given the


Program: Write prolog clauses to express the subsequent relationships, given the parent relationship: grand-parent, sibling, cousin.

so far i have:

ancestor(X,X).

ancestor(X,Y) :- ancestor(X, Z), parent(Z, Y).

PLEASE make sure it compiles and write the full program to receive full credit. Thank you so much for your help.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write prolog clauses to express the relationships given the
Reference No:- TGS0962030

Expected delivery within 24 Hours