Kamis, 22 Oktober 2009

2nd task

hi, everyone!
we have another task for this week..
first i will post my result..
here it is the question:
























this is the result :

1. from that database we have to find animal that is : mammals,  mammals that is carnivora, stripes mammals and reptile that is mane
..




































  first we have to put some formulas to find the animals catagories..
and after we put the formulas prolog will help us found them..
so..
  1. first, you type the database on a notepad.
  2. then you put this formula above the database :

  3. then save it as .pl
  4. after that open prolog and consult the notepad (pl)
  5. then type again the formula(one by one) on the number, ex number 1.mammals(B). then push enter & semicolon(;) until you see "no" with the next number.
2.couple
















for the couple, all procedure is the same..just try it! ^^








Tidak ada komentar:

Posting Komentar