Question: Write a Prolog program that lists facts on who is a parent of who, and who is female and who is male. Basecd on these

Write a Prolog program that lists facts on who is a parent of who, and who is female and who is male. Basecd on these facts, it also codes rules on what defines mother, and what defines father. However, the functors mother and father cannot be used in a fact. Name your source code parent.pl. Here are some example ueries: ?- mother (X, tommy) x-jane ?- father (X, tommy) x-johrn ?- mother (X, tammy) x-beth ?- father (X, tammy) X mike
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
