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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started