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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!