3 Consider Following Prolog Program Like Ann Marlyn Like Joe Kate Like Ann Mary Like Ka Q37075540

3. Consider the following PROLOG program: a) like (ann, marlyn). like (joe,kate). like(ann, mary). like(kate,erica) like(eric3. Consider the following PROLOG program: a) like (ann, marlyn). like (joe,kate). like(ann, mary). like(kate,erica) like(erica,ann). male(joe) What is the first result (for A, B, and C) of the query: ?- like(A,B), like(B,C), not(male(A)). Consider the following predicate: Show transcribed image text 3. Consider the following PROLOG program: a) like (ann, marlyn). like (joe,kate). like(ann, mary). like(kate,erica) like(erica,ann). male(joe) What is the first result (for A, B, and C) of the query: ?- like(A,B), like(B,C), not(male(A)). Consider the following predicate:


Answer


like(ann,marlyn).

like(joe,kate).

like(ann,mary).

like(kate,erica).

like(erica,ann).

male(joe).

?-

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.