In Prolog, create definitions for the following rules: motherOf(<mother\'s name>
ID: 2905975 • Letter: I
Question
In Prolog, create definitions for the following rules:
motherOf(<mother's name>,<child's name>)
fatherOf(<father's name>,<child's name>)
sonOf(<son's name>,<parent's name>)
daughterOf(daughter's name>,<parent's name>)
brotherOf(<brother's name>,<sibling's name>)
sisterOf(<sister's name>, <sibling's name>)
siblingOf(<sibling's name>,<person's name>)
as well as similar rules for......auntOf, grandparentOf, ancestorOf, and drscendentOf. also, add the following:
contemporaryOf(<person>,<contemporary>)
successorOf(<ruler>,<next ruler>)
Explanation / Answer
MotherOf(<A>,<B>)
FatherOf(<C>,<D>)
SonOf(<E>,<F>)
DaughterOf(<G>,<H>)
BrotherOf(<I>,<J>)
SisterOf(<K>,<L>)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.