Due Date:
February 5, 2018 23:59 hours
Create a program in Prolog to represent your family tree going back at least 3
generations. Facts should be the predicates parent, married, male and female. Use rules
to define all other family relationships (such as grandfather, aunt, sister, son, half_sibling,
ancestor, etc.) You may find some intermediate rules to be helpful to simplify the rest of
the rules significantly.
Submit a working .pl file with a significant number of code comments to show your
understanding and demonstrate the rules with multiple test cases.
[D:\COMP 469] swipl family.pl
Welcome to SWI-Prolog (threaded, 64 bits, version 7.6.4)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For built-in help, use ?- help(Topic). or ?- apropos(Word).
1 ?- cousin(X, 'Steven Wirsz').
X = 'Kinsey W' ;
X = 'Kyra W' ;
X = 'Cheryl R' ;
X = 'Richard R' ;
X = 'Ted S' ;
false.
Last Revised: January 26, 2018