Question: PROLOG PROGRAM: -------------------------------------------------------------------- Given the following set of Prolog clauses father(X,Y):-parent(X,Y),male(X). parent(sally,bob). parent(jim,bob). parent(alice,jane). parent(thomas,jane). male(bob). male(jim). male(thomas). female(sally). female(alice). -------------------------------------------------------------------- (1) Add a rule

PROLOG PROGRAM:

--------------------------------------------------------------------

Given the following set of Prolog clauses"

father(X,Y):-parent(X,Y),male(X).

parent(sally,bob). parent(jim,bob). parent(alice,jane). parent(thomas,jane).

male(bob). male(jim). male(thomas).

female(sally). female(alice).

--------------------------------------------------------------------

(1) Add a rule that states parent bill had only sons (no daughters) and every such son became a parent of a child named frank, walkter, or george.

-provide screen shot of final results

-what is the rule you added for above?

--------------------------------------------------------------------

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!