Presentation is loading. Please wait.

Presentation is loading. Please wait.

Scratch Programming Lesson 2 First glance to programming logic.

Similar presentations


Presentation on theme: "Scratch Programming Lesson 2 First glance to programming logic."— Presentation transcript:

1 Scratch Programming Lesson 2 First glance to programming logic

2 We are going to learn… How to use repeat loop ▫How to use pen How to use repeat-until loop If…. Logic How to use forever loop How to stop a program

3 Repeat loop The command inside the repeat loop will repeat n times which is depending on the number stated The loop will not stop until the designated number of times is finished

4 How to use pen? Clear all thing that drawn on the stage Put down the pen to start drawing OR Take the pen up to stop drawing Determining the colour of the pen Change the pen size to change the thickness of the line Copy the image of the sprite and print on the stage

5 Repeat-until loop The command inside the loop will be repeated until the operation box return a TRUE value e.g. In this loop, the sprite will keep on changing colour until it touches the mouse-pointer.

6 If… The trapezium indicates that an operation is required. Operation: return TRUE or FALSE value E.g. If… The loop will run if the operation is true

7 Forever loop Usually, it uses with a starter ▫e.g.

8 How to stop a program?

9 Task of the lesson Edit Program1_3_ _ _ Use the Green Flag to start the program Add one more character to the program Once the program start, the newly added character will change colour continuously UNTIL it is touched by the original character If the two characters touch ▫The new character will draw a pattern (either triangle, square or a start) with a pen ▫a sound differs from the original one will emit then the whole program will end


Download ppt "Scratch Programming Lesson 2 First glance to programming logic."

Similar presentations


Ads by Google