Assignment Task
Overview
Create a Prolog program to answer questions in English about “your family”.
Documentation in the form of comments (%) before each predicate is expected.
Detail
1. Write a natural language front end to your family database which works like this:
Yes? Print each daughter of fred.
winnie alma esther
Yes? Do you know what a cousin is ?
No, what is a cousin?
Yes? Does fred have a daughter? Yes.
Yes? Find every cousin of jill.
Sorry, I don’t know what cousins are!
Yes? Does frd have a son?
Sorry, I don’t know who frd is!
2. Predicates are to be included for the following relations only (others must be learnt):
father,mother,son,daughter,brother,sister,wife,husband/2 male,female,person/1 (child/3 & married/2 will be needed in defining these)
3. To assist you in the programming task some procedures are provided in the Archive (family.pl) which you MUST incorporate in your program
(there are also additional hints and optional help predicates in this file).
4. Sentences of these types should be recognized by the system:
DO you know what AN R is ?
DOES P have AN R ?
PRINT EACH R of P.
PRINT EACH R.
DO you know P ?
Extension
5. Learning: you should be able to teach the system new relationships interactively by including two additional sentence types with appropriate procedures. For example, we could define parent and uncle with:
yes? A father is a parent.
ok yes? A mother is a parent.
ok yes? A brother of a parent is an uncle.
ok
6. The new sentence types to be recognized have the forms:
AN R1 is AN R2.
AN R1 of AN R2 is AN R3.
Other extensions would be looked on favourably and marks will be awarded up to the maximum mark available for the assignment (two additional marks allowed for). You may like to implement a family database for your own family, which will help with testing as you already know the relationships. But no extra marks will be allocated for creating or extending the database of facts.
This IT Assignment has been solved by our IT experts at Schooling Best. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive,
plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.