Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Prolog, prepare a genneological knowledge base of some historycal royal famil

ID: 3757947 • Letter: I

Question

In Prolog, prepare a genneological knowledge base of some historycal royal family, you can choose a well-known family. Define the following facts for at least sixteen people and at least four generations:

male(<name>)

female(<name>)

lifespan(<person's name>,<birth year>,<dead year>)

parentOf(<parent's name>,<child's name>)

ruleOf(<ruler's name>,<country's name>,<year began>,<year ended>)

Must include a family tree showing the same information

Explanation / Answer

CODE :

male(Sam)
male(Eric)
male(Derik)
male(Steve)
male(Aron)
male(Euler)
male(Ab Diviliers)
male(Jack)
female(Stephy)
female(Shirley)
female(Rebecca)
female(Peneloppe)
female(Rose)
female(Lilly)
female(Shirlin)
female(Rolly)
lifespan(Sam,1947, 2001)
lifespan(Stephy, 1947, 2000)
lifespan(Derik, 1960, 2004)
lifespan(Rose, 1958, 2001)
parentOf(Sam, Eric)
parentOf(Stephy, Eric)
parentOf(Eric, Rebecca)
parentOf(Shirley, Rebecca)
parentOf(Rebecca, Derik)
parentOf(Steve, Derik)
parentOf(Derik, Ab Diviliers)
parentOf(Rose, Ab Diviliers)
parentOf(Rose, Penellope)
parentOf(Derik, Aron)
parentOf(Derik, Euler)
parentOf(Eric, Lilly)
parentOf(Eric, Jack)
parentOf(Eric, Rolly)
parentOf(Stephy, Shirlin)
ruleOf(Sam, Australia,1957,2001)
ruleOf(Stephy, USA, 1957, 2000)
ruleOf(Eric, England, 1960, 2002)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote