15 lines
736 B
Plaintext
15 lines
736 B
Plaintext
Knowledge base is in the file kb1.txt.
|
|
|
|
1. Convert the file 'family-tree.txt' to Prolog Facts (format understandable for Prolog) in any language you like.
|
|
|
|
The file has 4 columns: name, surname, pesel, parent's pesel
|
|
|
|
2. Prepare the script, load it to Prolog and find out who are the parents of:
|
|
|
|
Haley, Vargas, 1268649062, 1897283424
|
|
|
|
3. Check if the Darwin laws are in place by checking if Haley Vargas is the ancestor of an ape.
|
|
|
|
4. Write in any language (in any other programming paradigm except the logic programming languages), a code which will do the same as here in Prolog. Choose the programming language wisely (2. and 3.).
|
|
|
|
5. Check if the creationist theory is correct by checking if all people come from apes (in Prolog). |