Page 67 - 00inner.cdr
P. 67

LOOPS

            The act of repeating an action again and again in 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.




            In the third round, Jerry is at a higher level. Thus,
            the cycle goes on.

            Repeating a set of steps is a loop       .




            UNDERSTANDING PROGRAMS
            A computer understands step-by-step instructions written only in a unique language,
            called as program      . The computer reads the program we write and follows as per our

            instructions.

            Let's write a program to make a square.




                             Move 2 steps right.

                             Move 2 steps up.

                             Move 2 steps left.
                             Move 2 steps down.




                          Flashback Time


                    ¨  The process of completing one step and going onto the other is known as stepwise
                       thinking.

                    ¨  Decision making is a process of arriving at a conclusion by making a choice.
                    ¨  The act of repeating an action again and again is called looping.

                    ¨  A program is a step-by-step instructions for a computer to perform a task.



                                                                 67
   62   63   64   65   66   67   68   69   70   71   72