Page 82 - TP_Prime_v2.2_Class_3
P. 82
If you miss one step or do not write
the steps in the correct order, the Fun The step-by-step procedure
Fact!
output will not be what you want it is also called algorithm.
to be.
Decision Making
Prime (Ver. 2.2)-III Ruhi is getting ready for school. She looks outside the window. It was raining.
If (it’s raining)
Oh! It's raining.
What to do?
then
Carry an umbrella and go
to school.
80 otherwise
Don’t carry an umbrella.
This explains that when a condition like ‘if’ is given, there are two choices:
1. When the ‘If’ condition is a ‘Yes’, then we follow ‘then’ statement.
2. When the ‘If’ condition is a ‘No’, then we follow ‘otherwise’ statement.
Decision making is a process of arriving at a conclusion by making a choice.
21 st
Warm Do as directed. Century #Critical Thinking
Skills
Up! If (boy eating ice cream) If (boy's shirt green)
then then
Colour the star as red Colour the diamond
otherwise as blue
Yellow otherwise
Pink
Loops
The act of repeating an action again and again is called looping.
Let us understand loops with the help of an example.
You can observe that first Harry goes up towards the sky.

