Question: Based on facts given below, write down a rule in prolog to represent the statements of: Every teachers loves their students if their students are

Based on facts given below, write down a rule in prolog to represent the statements of: "Every teachers loves their students if their students are good". [3 marks] brother(ann, king). sister(annie, chong). mother(maria, kumar). teacher (ann, lina). teacher (annie, sophie). teacher (ann, john). teacher(annie, jack).teacher(maria, anne). teacher(maria, harith). good(john). good(anne). good(harith). good(sophie)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
