Course Solutions Uncategorized (Solved) : Consider Following Prolog Logic Program Mother Mary Sue Father John Sue Mother Mary Bill Q37968997 . . . .

(Solved) : Consider Following Prolog Logic Program Mother Mary Sue Father John Sue Mother Mary Bill Q37968997 . . . .

 

Consider the following prolog logic program:

mother (mary, sue).

father (john, sue).

mother (mary, bill).

father (john, bill).

mother (sue, nancy).

father (bob, nancy).

mother (sue, jeff).

father (bob, jeff).

mother (jane, ron).

Father(bill,ron).

Parent(A,B) :- father(A,B).

Parent (A,B) :- mother(A,B).

Grandparent(C,D) :- parent(C,E), parent(E,D).

Add a sibling relationship to the above program and answer thefollowing question:

?- sibling(sue, X).

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 2 Point Calculate Following Operations Using Two S Complement Method Assuming 8 Bit Regist Q26380583 . . . .(Solved) : 2 Point Calculate Following Operations Using Two S Complement Method Assuming 8 Bit Regist Q26380583 . . . .

<p><img alt="(2 point) Calculate the following operations using twos complement method: (assuming 8-bit register is used) 9- 15" src="http://d2vlcm61l7u1fs.cloudfront.net/media%2F955%2F955e1502-9473-477f-a1a5-246fa86762ef%2Fphp8nzIYw.png" style="height:81px;width:1024px;" aria-describedby="d3f"/></p>(2 point) Calculate the following operations using two's complement method:

(Solved) : Matrix Analysis Structures Edit Code Function Drawbeam 2d Frames Work 3d Frame Coordinated Q28644054 . . . .(Solved) : Matrix Analysis Structures Edit Code Function Drawbeam 2d Frames Work 3d Frame Coordinated Q28644054 . . . .

<p>matrix analysis of structures: edit the code of the functionbelow, "DrawBeam", which is for 2D frames, to work for a 3d framewith coordinateds X, Y, Z.</p><p>function DrawBeam(NODES,MEMBERS,CL,LW)<br/>%CL:Color<br/>%LW: Linewidth<br/>NOM = size(MEMBERS,1);%Number