Page 50 - Touchcode_C7_Flipbook
P. 50

Place it after the smallest books in the sorted bundle
                     IF (any more book is left in the unsorted bundle)
                     THEN

                     Repeat the above given steps
                     ELSE

                     Books are sorted.
                   Program End






                       Well  done,  you  have learned to draw the  flowchart and  to write a
                       pseudocode to arrange the books.





                                                                                                    Experiential Learning

                                                       Coding Task          06

                                                  To calculate the area of a circle

                   In this task, you will learn to calculate the area of a circle in MakeCode Arcade.

                   [Concept: Formula to calculate the area of a circle is πr , where π=3.14].
                                                                                2
                   To perform the task, follow these steps:

                   Step 1:  Visit the link:  https://arcade.makecode.com/. Give the
                             name of your project as ‘To calculate the area of a circle’

                             and click on ‘Create’.
                   Step 2:  Click  on  the variables, and  select ‘Make a variable...’.

                             Name the variable as ‘radius’, and click on ‘OK’.

                   Step 3:  Drag the ‘set radius to 0’ block to the workspace. Change the value of ‘radius’
                             from ‘0’ to ‘2’; and drop it to the ‘on start’ block.



















                   48     Touchcode-VII
   45   46   47   48   49   50   51   52   53   54   55