Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_step_2

Step: 3

blur-text-image_step3

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

Students also viewed these Databases questions

Question

What are the uses of performance appraisal?

Answered: 1 week ago

Question

research one aspect/topic of occupational health and safety law

Answered: 1 week ago