Question: A Prolog program session appears as follows: ?- parent(A,B). A = salah B = saeed; A = hussain B = salah; A = hoda
A Prolog program session appears as follows: ?- parent(A,B). A = salah B = saeed; A = hussain B = salah; A = hoda B = saeed; ?-grandfather(A,B). A = hussain B = saeed; ?-grandparent(A,B). A = Hussain B = saeed 1. Write the CLIPS program code listing the facts and rules. 12 Marks 8 marks 2. After running the program, what would be the output of the CLIPS session? 4 marks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
