Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions