Page 56 - Touchcode_C2_Flipbook
P. 56

4.3                     UNDERSTANDING PROGRAMS










                  We have already learnt in the previous chapter about an algorithm to

                  draw a square.

                  Now, we will learn to write a program to make a square.






                      Move 2 steps right

                      Move 2 steps up

                      Move 2 steps left

                      Move 2 steps down


                                                                                        Start











                      A computer understands the algorithm built in a specific and
                      unique language, called known as program.







                  Similarly, we can write a program to make a rectangle.






                      Move 2 steps right

                      Move 1 step up

                      Move 2 steps left

                      Move 1 step down                                                  Start






                   54      Touchcode-II
   51   52   53   54   55   56   57   58   59   60   61