Page 64 - Robo_Genius_V1.0_flipbook_C3
P. 64

Algorithm Used


                  The algorithm used for the activity is:


                                                   START

                                                   Show number to 0

                                                   Set count to 0

                                                   When button A pressed

                                                   Show number

                                                   When button B pressed

                                                   Change count by 1

                                                   Show number


                                                   When A + B both pressed

                                                   Show number

                                                   END




                                                                                                 21 st   #Creativity
                                                                                               Century
                    Activity      Building a Simple Counter Program                             Skills  #Technology Literacy



                  Step 1       Go to Microsoft make code https://makecode.microbit.org/

                  Step 2       Click on new projects.













                                     Click on new
                                     project















                       62    RoboGenius (V1.0)-III
   59   60   61   62   63   64   65   66   67   68   69