CP2003 - Tutorial 11

Prolog


Write a program that stores information about your family, and will answer queries about relationships.

Information about individual people must be stored as facts containing the persons name, sex and parents' names, e.g.

person(geoff,male,bob,margaret).

Here are the queries you should be able to answer ...