0% found this document useful (0 votes)
482 views20 pages

Scratch Workbook Solutions

Here is a suggested solution for building a house in Scratch: 1. Use a repeat loop to draw a triangle roof - Point direction 90 - Repeat 3 - Move forwards 50 - Turn right 120 2. Position sprite below roof - Move forwards -50 - Turn right 90 3. Use a repeat loop to draw the square house - Repeat 4 - Move forwards 50 - Turn right 90 4. Finish - Pen up This uses efficient repeat loops to draw the triangle roof and square house parts. Make sure to position the sprite correctly and change directions as needed.  Make Music You will need to use note blocks, drum blocks and timing blocks

Uploaded by

AnandReddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
482 views20 pages

Scratch Workbook Solutions

Here is a suggested solution for building a house in Scratch: 1. Use a repeat loop to draw a triangle roof - Point direction 90 - Repeat 3 - Move forwards 50 - Turn right 120 2. Position sprite below roof - Move forwards -50 - Turn right 90 3. Use a repeat loop to draw the square house - Repeat 4 - Move forwards 50 - Turn right 90 4. Finish - Pen up This uses efficient repeat loops to draw the triangle roof and square house parts. Make sure to position the sprite correctly and change directions as needed.  Make Music You will need to use note blocks, drum blocks and timing blocks

Uploaded by

AnandReddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Scratch Workbook

Solutions
Module 1 3 Module 6 17
Say hello to Scratch 3 Break Dance Project 17
Playing With Pictures 3 Aquarium Project 21
Tell me what to do 4 Tamara Project 25
Playing With Music 4 Dance Dress Up Project 30
End of Module 1 Quiz 5 Robot Dance Project 34
Fish Chomp Project 38
Module 2 6
Think Like a Computer 6 Module 7 42
Could You Repeat That Please 7 Towers Of Hanoi 42
Over and Over Again 8 The Travelling Salesman
Problem 42
End of Module 2 Quiz 8
End of Module 7 Quiz 43

Module 3 9
Module 8 43
Where Are You now? 9
End of Module 8 Quiz 43
Me First Sorting 9
CSI Finding Information on the
Internet 9 Module 9 43
End of Module 3 Quiz 10 End of Module 9 Quiz 43

Module 4 11 Module 10 44
Look at Me 11 End of Module 10 Quiz 44
End of Module 4 Quiz 11

Module 5 12
Easy Exercises 13
Difficult Exercises 13
Extreme Exercises 15

2 | Scratch Workbook
Module 1

Exercises Say hello to Scratch

Sample Solution
When the green flag is clicked the sprite will go to the position x:100 y:100 on the stage. The sprite
will then pause for 1 second, move downwards by 200 steps, pause for .5 seconds, move left 100
steps and turn forward by 90 degrees. The sprite will glide for 1 second to the stage position x:0 y:0
and point facing in a forward direction.

Select can rotate button


(Select the i at the top left hand corner of the
selected sprite in the sprites area to reveal the
sprite editor to rotate.)

The Scratch Interface Quiz

A Blocks palette
B Stage
C Sprite list

D Tabs

E Scripts Area
F Tool Bar

Exercises: Playing With Pictures

Solutions | 3
Exercises: Tell me what to do

Sample Solution
1. Buy a top up voucher in a shop or at a vending machine.
2. Dial 1741 on your phone.
3. Listen to the instructions.
4. Enter the code on the voucher and press the # key on your phone.
5. Listen for your new balance to make sure its correct.
6. Hang up.

Sample Solution
1. Making a cup of tea
2. Brushing your teeth
3. Playing a dvd

Sample Solution
1. Begin on side A
2. Take goat across to side B
3. Return with empty boat to side A
4. Take dog across river to side B
5. Return with goat to side A
6. Take cabbage to side B
7. Return with empty boat to side A
8. Take goat to side B
9. END

Exercises: Playing With Music

4 | Scratch Workbook
End of Module 1 Quiz

C.

B.

A.

D.

Match the following parts of the Scratch interface to the images

Sprite List Blocks Palette Tool Bar Tabs

Match the letters from the diagram of the Scratch paint Editor to the correct description.

A Colour palates
B Current Colours
C Zoom
D Flip
E Add image from a file
F Toolbar

A.

B.

B.

Solutions | 5
Module 2

Exercises: Think Like a Computer

Sample Solution
In the centre of the page draw a rectangle about 3mm high 3 cm wide.
At the midpoint of the top side of rectangle draw a line upwards 5cm in length.
Draw a rectangle 4cm high 2 cm wide with the midpoint of the bottom side touching the top of
the upwards line.
Draw 3 circles inside the top rectangle all 1cm in diameter that are centred horizontally across the
rectangle and spaced evenly vertically in the rectangle.

Sample Solution

1. Draw 3 circles on top of each other. The top circle is the smallest, the middle circle is
middle sized and the bottom circle is the largest
2. On top of the top circle, draw a square with a line underneath it extending out at the sides
of the square
3. In the top area of the bottom circle draw a coloured small circle
4. In the centre of the middle circle draw two small coloured circles
5. In the top circle, draw two small solid circles side by side in the upper part of the circle
6. In the top circle, draw three small circles side by side in the bottom part of the circle in a U
shape.
7. In the top circle, draw a left facing right angled triangle in the centre of the circle with the
base twice the side of the height.
8. On the right hand side of the middle circle, draw a line facing north east direction and at
the end of the line draw a small hexagon
9. On the left hand side of the middle circle, draw a line facing north west direction and at
the end of the line draw a small hexagon

6 | Scratch Workbook
Exercises: Could You Repeat That Please?

Solutions | 7
Over and Over Again

End of Module 2 Quiz

C.

D.

C.

A.

8 | Scratch Workbook
Module 3

Where Are You now?

Linear Search 14 checks. Check names 1 by 1.


Binary Search 3 checks. > 10 Levey, >15 Moloney, =18 Power
Hash Search 5 checks. Hash key 5, 4th item under this hash key list

Me First Sorting

First Name (A to Z) Surname (Z to A) PPSN (low to high)


Anna Scott 7860133C
Brian Ryan 7860277B
Mary Ryan 7861212F
Ruth Horgan 8392109D
Shane Hogan 9058693D

Exercise
3 times through the list
3 swaps required

Anna, Ruth, Brian, Shane, Mary (Original List)


Anna, Brian, Ruth, Shane, Mary (First Pass through list Swap 1)
Anna, Brian, Ruth, Mary, Shane (First Pass through list Swap 2)
Anna, Brian, Mary, Ruth, Shane (Second Pass through list Swap 3)
Anna, Brian, Mary, Ruth, Shane (Third Pass through list no swaps required)

CSI Finding Information on the Internet

Exercise 1

1. Maroon
2. Lithreach
3. URL
4. Somali Shilling
5. Elleboog
6. Aerophobia
7. Transport
8. Iguazu

Letters 1 8: M L U S E A T I

Magic Word Unscrambled: S I M U L A T E

Solutions | 9
End of Module 3 Quiz

C.

D.

D.

D.

A.

10 | Scratch Workbook
Module 4

Build a Game Solution - The full Scratch solution for Module 4 Game is located at
http://scratch.mit.edu/studios/229051

End of Module 4 Quiz

A.

C.

B.

C.

B.

B.

C.

Solutions | 11
Module 5

Easy Exercises - Scratch Card Solutions - The full Scratch solutions for all Scratch cards
are located at http://scratch.mit.edu/studios/229051
Move to a Beat Colour Burst
Check that the sprite moves when clicked. Check that the green flag starts the program.
Make sure that drum beats are included in Both sprites require code to change colour.
the script. Encourage the use of costume
changes. Zebra Script

Bug Script

Polly Moves About


A wait command can be used to control the speed of the
parrot. Use the if on edge, bounce command to make the
parrot bounce off the edge of the stage.

12 | Scratch Workbook
Random Drum
Use the pick random command. The most efficient way
of playing 5 random beats is using a repeat loop rather
than 5 separate play drum commands.

Draw a Triangle
The most effective way of drawing a triangle is by using a
repeat loop to draw and rotate 3 times instead of 3 separate
draw and 3 rotate commands. Dont forget to put the pen
down to start drawing!

Difficult Exercises

Build a House
You will need to use 2 repeat loops for the triangle and square parts of the house. Make sure your
sprite is pointing in the right direction and that you position the sprite correctly inside the house.

Spooky Surprise
Create costume 2 by copying and editing costume 1 in the
paint editor. Use a forever loop to repeat the switch between
costume 1 and costume 2 continuously. A wait command can
be used to decrease the speed of the animation.

Solutions | 13
Extraordinary Whirl
The set whirl effect should be placed in a forever loop. The forever loop allows the
whirl effect to change continuously as the x position of the mouse changes. The
mouse x command is found in the sensing block.

Scribbling Dog
Use the pen down command to allow the sprite to scribble on the stage. Set the pen
to any size or colour. Use the point towards mouse-pointer inside a forever loop to
follow the mouse. Move the sprite to leave a trail.

Score goes Up and Down


Create a variable score. Use the wait command to decrease the speed of the
animation..

14 | Scratch Workbook
Extreme Exercises

Whats the Answer?


Create 3 variables: Number 1, Number 2 and Answer. Use an if else statement. By using the when
Sprite 1 clicked command, clicking on the sprite should tell you if the answer is right or wrong.
Remember to double click on your variables to make them into sliders as shown on the card.

Keeping Track
To make the variables for x position and y position appear on the stage, click the
check box next to the block as shown here.

Once the variables appear on stage, you can then use a


forever loop and pick random commands to make the
sprite move randomly. The variables track the position
of the sprite.

5,4,3,2,1
Draw a rocket or just use a picture of a plane from the Scratch
image library. Create a variable called Timer and set it to 5. Use
a repeat until loop. When Timer = 0, broadcast blast off to the
rocket sprite.

The rocket sprite contains the following code.

Solutions | 15
Bigger and Bigger
Make the sprite shrink to zero. Create a variable named size. Use a repeat until loop to make the
sprite grow to until it reaches full size (100%) again.

Shape Sensation
Use variables to store sides and angle. Start with a triangle. Use a repeat until loop to stop when
sides = 9. Use wait to slow things down.

16 | Scratch Workbook
Module 6

Changing Things Solutions

The full Scratch solutions for Module 6 modified projects are located at http://scratch.mit.edu/
studios/229051.

Solutions | 17
Module 7

Towers Of Hanoi

For 15 disks (2n-1) = 215-1 = 32768-1 =32767


For 25 disks (2n-1) = 225 1 = 33554432 1 = 33554431
For 1,099,511,627,775 moves 1,099,511,627,775 = (2n-1)
1,099,511,627,775 + 1 =2n
1,099,511,627,776 = 2n
Log2(1,099,511,627,776) = n
n = 40

Number of Moves Required


Number of Disks
to Solve the Problem
6 63
9 511
15 32,767
25 33,554,431
40 1,099,511,627,775
64 9,223,372,036,854,775,808

The Travelling Salesman Problem

Date Journey From Journey To Distance


Jun-21 Dublin Portlaoise 85
Jun-22 Portlaoise Thurles 65
Jun-23 Thurles Tipperary Town 45
Jun-24 Tipperary Town Limerick 45
Jun-25 Limerick Tralee 110
Jun-26 Tralee Cork 120
Jun-27 Cork Clonmel 100
Jun-28 Clonmel Waterford 55
Jun-29 Waterford Kilkenny 60
Jun-30 Kilkenny Dublin 125
Total Distance 810

18 | Scratch Workbook
End of Module 7 Quiz

B.

D.

A.

C.

B.

End of Module 8 Quiz

D.

B.

C.

D.

Module 9 - Advanced Game Solution - End of Module 9 Quiz


The full Scratch solution for Module 9 Advanced Game is located at http://scratch.mit.edu/
studios/229051.

C.

B.

C.

B.

Solutions | 19
End of Module 10 Quiz

C.

B.

A.

C.

20 | Scratch Workbook

You might also like