Question: Based on facts given in Figure 4, write down a rule in prolog to represent the statements below: a. Every woman loves her husband if

Based on facts given in Figure 4, write down a rule in prolog to represent the statements below:

Based on facts given in Figure 4, write down a rule in

a. Every woman loves her husband if her husband is helpful and loyal.

[4 marks]

b. Every mother likes her child if her child is good

[3 marks]

married (ann, king). married (annie, chong). married(maria, kumar). helpful(chong).loyal(chong).loyal(kumar) mother(ann, lina).mother(annie, sophie).mother(ann, john).mother annie, jack). mother(maria, anne).mother(maria, harith). good(john).good(anne).good(harith).good(sophie). Figure 4

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!