Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Prolog, Describe the following rules (0.25 marks) is_mother(Mum):-mother(Mum,Child). ANSWER: is_father(Dad):-father(Dad,Child). ANSWER: is_son(Son):-parent(Par,Son),male(Son). ANSWER: sister_of(Sis,Pers):- parent(Par,Sis),parent(Par,Pers), female(Sis),not(Sis,Pers). ANSWER: granpa_of(Gpa,X):-parent(Par,X),father(Gpa,Par). ANSWER: sibling(S1,S2):- parent(Par,S1),parent(Par,S2),not(S1,S2). ANSWER:
Using Prolog, Describe the following rules (0.25 marks)
is_mother(Mum):-mother(Mum,Child).
ANSWER:
is_father(Dad):-father(Dad,Child).
ANSWER:
is_son(Son):-parent(Par,Son),male(Son).
ANSWER:
sister_of(Sis,Pers):- parent(Par,Sis),parent(Par,Pers), female(Sis),not(Sis,Pers).
ANSWER:
granpa_of(Gpa,X):-parent(Par,X),father(Gpa,Par).
ANSWER:
sibling(S1,S2):- parent(Par,S1),parent(Par,S2),not(S1,S2).
ANSWER:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started