Question: Need help with prolog problem. In Prolog, assume that you have defined the following facts. mother(M, C). /* M is the mother of C */

Need help with prolog problem.

In Prolog, assume that you have defined the following facts.

mother(M, C). /* M is the mother of C */
father(F, C). /* F is the father of C */
male(X). /* X is male */
female(X). /* X is female */

Write the Prolog rules for:

grandmother(G, X). /* G is a grandmother of X */
sister(S, X). /* S is a sister of X */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!