Page 85 - Computing book 6
P. 85

EDScratch                                                                            Class 6


               Control

               The light orange blocks in the Control category are all programming control structures which can be
               used to affect the flow of an EdScratch program. Loops, waits and if-statement control blocks can all
               be found in the Control category.





























               Video tutorial:
               Programming Edison using Loops and events(Data, events and control categories):
               https://www.youtube.com/watch?v=3gjtBph6xqY

                        Program Algorithm           EdScratch Code
                        Using Repeat
                        The Edison should create a
                        square shape using repeat:

                        Repeat 4 Time:
                            Turn left led on
                            Turn Right Led on
                            Go forward 3 Inches
                            Turn Right on 90 Degrees
                            Turn left led off
                            Turn Right Led off
                             Play a Sound
















               The City School /Academics/Computing Curriculum/Class 6/2020-2021                Page 84 of 94
   80   81   82   83   84   85   86   87   88   89   90