Page 48 - Modular_v4.0
P. 48

Chapter Profile
                  If you miss one step or do not write the steps in the correct order, the output will not be
                  what you want it to be.





                           The step-by-step procedure is also called algorithm.




                         DECISION MAKING


                  Ruhi is getting ready for school. She looks outside the window. It was raining.


                             Oh! It's raining.
                               What to do?                             If (it’s raining)
                                                                       then
                                                                            Carry an umbrella and go to
                                                                           school.
                                                                       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.


                         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.








                                                 In the second round, Harry and Jerry  are both at the
                                                 same level.












                46   Modular (Ver. 4.0)-III
   43   44   45   46   47   48   49   50   51   52   53