Write a Prolog program that defines family relations in compliance with the following restrictions: 1. The program shall model a fragment of your own family. However, if required, you are allowed to make additions to or deletions from your family members or relations. 2. The program shall consist of only and only the procedures described below: HEAD OF PROCEDURE: EXPLANATION: father(X, Y) (X is Y’s father) mother(X, Y) (X is Y’s mother) parent(X, Y) (X is Y’s parent) brother(X, Y) (X is Y’s brother) sister(X, Y) (X is Y’s sister) uncle(X, Y) (X is Y’s uncle) grand_uncle(X, Y) (X is Y’s grand uncle) male(X) (X is male) female(X) (X is female) PS: Take one’s uncle to be a brother of his/her father or mother and one’s granduncle to be an uncle of his father or mother.
Write a Prolog
1. The program shall model a fragment of your own family. However, if required, you are allowed to make additions to or deletions from your family members or relations.
2. The program shall consist of only and only the procedures described below:
HEAD OF PROCEDURE: EXPLANATION:
father(X, Y) (X is Y’s father)
mother(X, Y) (X is Y’s mother)
parent(X, Y) (X is Y’s parent)
brother(X, Y) (X is Y’s brother)
sister(X, Y) (X is Y’s sister)
uncle(X, Y) (X is Y’s uncle)
grand_uncle(X, Y) (X is Y’s grand uncle)
male(X) (X is male)
female(X) (X is female)
PS: Take one’s uncle to be a brother of his/her father or mother and one’s granduncle to be an uncle of his father or mother.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)