Page 137 - TrackpadV5.1_class7
P. 137
ALGORITHMIC CHAPTER
INTELLIGENCE 9
Topics Covered 95%
Information Processing
Conditions in a Program
Techie, I’m going out to play. Can
you help me decide what to wear?
Sure, Aadya! Let’s check the weather.
If it’s sunny, wear a hat.
If it’s raining, take an umbrella.
I see some dark clouds gathering in the sky. What should I
do in this situation?
Hmm, if it looks like rain is on the way, it would be wise
to grab an umbrella just in case!
Wow! But how did you come to that decision so
quickly?
It’s quite simple; I used conditions to decide. Let me
explain it to you in detail.
Algorithmic Intelligence 135

