Professional Documents
Culture Documents
General Objective
Specific objectives
observation method
When we observed the weather conditions
Ethiopia
• Most of time the air is very cold in that area.
• Especially from december to half of January it
is very cold
• From half of January to april the air condition
is partially hotter
• than the other months in the area.
knowledge acquisition method
• weather(good):-
temp(high),
humidity(dry),
sky(sunny).
• weather(bad):-
(humidity(wet);
temp(low);
sky(cloudy)).
Implementation
/* interface */
• go:-
write('Is the temperature high or low?'),
read(Temp), nl,
write('Is the sky sunny or cloudy?'),
read(Sky), nl,
write('Is the humidity dry or wet?'),
read(Humidity), nl,
assert(temp(Temp)),
assert(sky(Sky)),
assert(humidity(Humidity)),
weather(Weather),
write('The weather is '), write(Weather),
retractall(temp(_)),
retractall(sky(_)),
Thank you