Artificial Intelligence Assignment 1

1.     The Structure of Prolog Programs.

1.     Given three relations child(X,Y):X is a child of Y, male(X):X is male, female(X):X is female.

Write a program to find relations like brother(X,Y) , father(X,Y), mother(X,Y), grandfather(X,Y), grandmother(X,Y), uncle(X,Y), sister(X,Y), ancestor(X,Y) between different members of a family.

 

1.     Write a program to prepare a calculator that perform different operations like add, mul, sub, div, etc. (implementation of switch statement using cut).

   >>Click Here To Download <<

    >>Back To Site<<

by.. Hardik H. Kothadia

      R.K.University

ĉ
hardik kothadia,
Apr 15, 2013, 9:19 AM
Comments