×
☰ Menu

 


Experiment No. 3


Write predicates One converts centigrade temperatures to Fahrenheit, the other checks if a temperature is below freezing.

 

Program:

Production rules:

c_to_f (F,C) :-F is C * 9 / 5 +32
freezing :-f < = 32

Clauses:
c_to_f(C,F) :-
F is C * 9 / 5 + 32
freezing(F) :-
F =< 32

 

Output: 

 

 


 

To Download Complete Artificial Intelligence Lab Manual Click Here

 

 Download Now 

 


Artificial Intelligence Lab, AKTU manual, 4th year, Computer Science and Engineering, Information Technology, Prolog, programming

Artificial Intelligence Lab (RCS752)

Artificial Intelligence Lab Manual AKTU

Artificial Intelligence Lab Manual using Prolog PDF

Artificial Intelligence Lab Notes Download