Question: Using the following facts as a Prolog database: Define rules for the following relationships: d ) Nephew / / s . nephew ( , B
Using the following facts as a Prolog database:
Define rules for the following relationships:
d Nephew
s nephew
& means is nephew of
&
nepher :
e Cousins
cousins
& means is cousin of
&
cousin :
Test your goals for each relationship with suitable variablesconstants
You may need to write additional predicates for your relationships.
Use 'findall' for multiple results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
