Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
1 Computer teacher : Worood Al Ali
Scratch is a block-based visual programming language and
online community targeted primarily at children. Users of the site
can create online projects using a block-like interface.
Revision sheet for ongoing exam term2
Grade 6
2 Computer teacher : Worood Al Ali
The Scratch Interface
A
Stage
B
Scripts Area
C
Presentation Mode
D
Blocks palette
E
Tool Bar
F
Spire list
G
Tabs
3 Computer teacher : Worood Al Ali
Change the Sprite
• Every time when we open SCRATCH program the Sprite will be the cat .
• I can change it and add more than one sprite from here .
4 Computer teacher : Worood Al Ali
Run the program
• Go to the “ Events ” blocks palette:
• Choose “ the green flag “ block .
Add a Background In the lower left corner of the screen, choose the Stage.
Click on “Add background from file” icon:
5 Computer teacher : Worood Al Ali
The Backdrop Library appears
6 Computer teacher : Worood Al Ali
First Program: Hello World • We’re going to make the cat say hello
• Go to the ‘Looks’ blocks palette and drag the “Say Hello! For 2 secs” block on to the script
area:
We’re going to make the cat say a few more things.
• Drag and drop another “Say Hello! For 2 secs” block on to the script area.
• Change the text to say ‘My name is …’
7 Computer teacher : Worood Al Ali
• Drag and drop another “Say Hello! For 2 secs” block on to the script area.
• Change the text to say ‘I can run fast!’
Your project should like this:
Putting Sentences Together • Interlock each block together.
• Double-click and see what happens
• A bunch of blocks locked together is known as a script.
8 Computer teacher : Worood Al Ali
• Your First Script • The computer needs scripts to tell it exactly what to do. • The computer starts at the top of a script and runs each block in the order that they appear.
Talking With Waiting • Go to the ‘Control’ blocks palette and drag out a “ wait block”.
• Wrap it between the speech blocks. click the flag block and see what happen.
9 Computer teacher : Worood Al Ali
Move the Sprite
• We’re going to make the cat move
• Go to the ‘ Motion ’ blocks palette and drag the “ Move 10 steps ” block on to the script
Area.
• Drag and drop another “ Move 10 steps ” block on to the script area. • Double click on the block and see what happen .
10 Computer teacher : Worood Al Ali
Drawing a shape
• We are going to draw a shape • First things you have to know:
1- which shape you going to draw 2- Number of sides 3- The angles degree
• Open Scratch program • Go to ‘ Events ‘ blocks palette and drag the “ flag block on script area . • Drag and drop “ Hide ” block on to the script area. • Drag and drop “ clear “ or “ erase all ” block on to the script area. • Drag and drop “ repeat ” block on to the script area. • Drag and drop “ pen down ” block inside the repeat block on to the script
area. • Drag and drop block inside the repeat block on to
the script area. • Drag and drop block inside the repeat block on to
the script area.
Enter The number of sides
Enter Angle degree
Enter Length of the side
11 Computer teacher : Worood Al Ali
Square
Angle = 90 4 sides The Lengths of the sides are equal.
A rectangle
Angle =90 4 sides The Lengths of the sides are not equal.
Square
Angle = 90 4 sides The Lengths of the sides are equal.
Triangle
Angle = 120
Circle
Angle = 360
Pentagon:
Angle = 72