Page 63 - Robo_Genius_V1.0_flipbook_C4
P. 63

Algorithm Used


                 An algorithm is a step-by-step procedure that defines a set of instructions that
                 must be carried out in a specific order to produce the desired result.



                                                  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




                 Hands-On Activity: Building a Simple Counter Program


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

                 Step 2  Click on new projects.












                                     Click on new
                                     project











                                                                    Introduction to Micro:bit and Programming  61
   58   59   60   61   62   63   64   65   66   67   68