Write a prolog program that implements a family database


Write a PROLOG program that implements a family database for your family. Save it as an ordinary text file named family.pro. Your program should implement the following facts for your immediate family, grandparents, and great-grandparents.

parent_of(X,Y).
male(X).
female(Y).

That is, your database should consist of a number of facts about who is the parent_of of who, about which individuals are male and about which individuals are female. For example:

parent_of(joe,susie).
parent_of(joe,dan).
parent_of(mary,susie).
parent_of(mary,dan).
male(dan).
male(joe).
female(susie).
female(mary).


Attachment:- ASSIGNMENT.rar

Solution Preview :

Prepared by a verified Expert
Database Management System: Write a prolog program that implements a family database
Reference No:- TGS0666047

Now Priced at $40 (50% Discount)

Recommended (95%)

Rated (4.7/5)