Jumat, 13 November 2009

4th task

4th task finally coming..
we are so tired this weel..-,-!!
and here it is question number one from task 4th :



















then we have to find animal that is large cat, small cat. large dog & small dog.
  1. firt we have to arrange the database . ex : dog (Fido),dog (rover),cat (marry), then type that on a enotepad and save it as 'pl
  2. then consult it on prolog.. type the formulas, ex : large_dog(X).
  3. then push enter and semi colon until "no " shows up!



















then task number two,we have to make some condition with math operator (such as : average,square,product and larger than) and calculate it based on our algorithm..
the process are :

  1. we made it directly on prolog
  2. then inizialitation for integer X & Y
  3. then type the formula beside the inizialitation of X & Y (divided by coma).
  4. then push enter so the result must be gien gift..then push semi colon until "no" shows up..^^




Tidak ada komentar:

Posting Komentar