Question: Based on facts given in Figure 4, write down a rule in prolog to represent the statements below: married ann, king). married annie, chong). married

Based on facts given in Figure 4, write down a rule in prolog to represent the statements below: married ann, king). married annie, chong). married maria, kumar). helpful(chong).loval(chong).loyal(kumar) mother ann, lina).mother annie, sophie).mother(ann, john).mother annie, jack). mother(maria, anne) mother(maria, harith). good(ohn).good(anne).good harith).good(sophie). Figure 4 a. "Every woman loves her husband if her husband helpful and loyal". [4 marks) b. "Every mother likes her child if her child is good" [3 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
