Page 89 - Trackpad_V2.1_class8
P. 89

b.   Repeat 5 times                                Marks  45  40  55    49     85
                         {                                     Result
                            READ Marks
                            IF Marks > 50 THEN
                                PRINT "Pass"
                            ELSE
                                PRINT "Fail"
                         }


                    c.                                 start
                         Repeat 5 times
                         (
                            Put a cross
                            Move 1 right
                            Put a tick
                            Move 1 down
                         )




                    d.    Repeat 5 times                                               start
                        (
                            write “8”
                            Move 1 step left
                        )






                 5.  Read the program and do as directed.

                    a.   Repeat 4 times
                         (                             start
                           Colour Yellow
                           Skip One Triangle
                         )


                    b.   Repeat 6 times                start
                         (
                            Put a cross
                            Move 1 right
                            Move 1 down
                          )










                                                                                            Algorithmic Intelligence  87
   84   85   86   87   88   89   90   91   92   93   94