0% found this document useful (0 votes)
17 views16 pages

Introduction to Scratch Programming

Module 1 introduces the importance of computers and software in everyday life, highlighting the evolution from large machines like ENIAC to modern devices. It teaches programming skills using Scratch, a free programming language for creating interactive projects, and includes exercises on algorithms and music creation. The module concludes with a quiz to assess understanding of the concepts covered.

Uploaded by

MK Lee
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)
17 views16 pages

Introduction to Scratch Programming

Module 1 introduces the importance of computers and software in everyday life, highlighting the evolution from large machines like ENIAC to modern devices. It teaches programming skills using Scratch, a free programming language for creating interactive projects, and includes exercises on algorithms and music creation. The module concludes with a quiz to assess understanding of the concepts covered.

Uploaded by

MK Lee
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

Module 1

Getting Started

Computers Rule the World 2


Say “Hello” to Scratch 3
Using Scratch 4
Exercises 5
Playing with Pictures 7
Exercises 8
Tell me what to do 9
Exercises 10
Playing With Music 12
Exercises 12
End of Module Quiz 14

© 2013 Lero
Computers Rule the World

Computers, Internet websites, calculators and mp3 players simply would not function without software.
Thousands of lines of code are required for your modern mobile phone or games console to operate.
Take a look at some amazing facts that show us how software is present everywhere we look in our
everyday lives.

The first computers were huge machines. For The technology contained in a single handheld
example, the ENIAC computer weighed nearly console exceeds all the computing power that was
thirty tons and occupied 680 square feet of floor used to put the first man on the moon.
space. ENIAC contained more than nineteen
thousand vacuum tubes and performed about five
thousand addition or subtraction operations every
second. That is super slow for today but it was
super fast back in those days. Today computers are
tiny compared to what they were in 1949.

$60 billion
Value of merchandise sold on eBay in 2009, this is
the equivalent to the GDP of Cuba.
Glen Beck (background) and Betty Snyder (foreground)
program the ENIAC in BRL building 328.
So
To

In 2010 Facebook had more than 500 million


Fo

ld
Le
r
Sa

registered users; if it were a country it would be


t
le

the 3rd biggest in the world.

1... 2 abc 3 def Dublin native Brian Fallon set up [Link] in 1996.
It was his transition year mini-company in
4 ghi 5 jkl 6 mno St. Mary’s College, Rathmines.
Daft is now Ireland’s biggest property website
and is estimated to be worth millions.
According to the Irish telecom regulator ComReg,
an average of 25 million text messages are sent in
Ireland every day.

2 | Scratch Workbook
Say “Hello” to Scratch

We will learn problem solving and programming


skills using Scratch.

Scratch is a programming language that makes


it easy to create your own interactive stories,
animations, games, music, and art and share your
creations on the web.

Scratch is completely free. To start


creating with Scratch 2.0 go to http://
[Link]

The Scratch Interface

Module 1 | 3
Using Scratch

Check out the Scratch 2.0 Introductory Video at [Link]

4 | Scratch Workbook
Exercises

 Assemble the commands from the events, control and motion areas of Scratch. Write a description
of what happens in the script when the green flag is clicked.

Script Description

 Using Scratch write a script that will do the following


1. Move a sprite to the starting position x:50 y:70
2. Turn the Sprite upside-down
3. Glide for 2 seconds to x:-50 y:-50
4. Turn the sprite upwards again

Module 1 | 5
 The Scratch Interface Quiz

Task:
Look at the Scratch Interface above.

In the table below see if you can match the letters to the different features of the Scratch Interface:

A Blocks palette
B Stage
C Sprite list

D Tool Bar

E Tabs
F Scripts Area

6 | Scratch Workbook
Playing with Pictures

You can add a new sprite to your projects by using


this button located under the stage.

It is also possible to draw your own sprite by


clicking on this button .

You can also upload a sprite from your computer


using this button .

You can also use your computers webcam to take


a photo by using this button

You can change how a sprite looks with any


easy to use paint editor.

Module 1 | 7
Exercises

 Modify the script below to make the cat move across the stage as the costume changes. Make it
appear like it is going for a walk.

 Create a sprite from a photograph that you have taken.

8 | Scratch Workbook
Tell me what to do

Algorithms

Sets of instructions that solve a problem.

Buying items in a shop Baking a Cake

1. Choose a packet of crisps 1. Mix milk and vinegar. Melt the


and a drink from shelf. chocolate. Sieve flour, cocoa
2. Go to checkout. and soda into a bowl. Add
3. Wait in queue. margarine, sugar, eggs and half
4. Hand items to cashier. the milk mixture and beat well.
5. Wait for cashier to say 2. Add the melted chocolate
total price. and remaining milk. Beat
6. Take out money. until smooth. Transfer to
7. Hand money to cashier. A Good Algorithm 8” round cake tin which
8. Wait for change. has been greased & lined.
9. Take items. 1. Leads to completion. Bake in a preheated oven at
2. Is accurate and 325°F,160°C,Gas Mark 3 for 1
unambiguous. ½ hours approx. When cake is
3. Has the appropriate cold, split in half & use half the
level of detail. filling to sandwich cake. With
4. Has well ordered remaining filling, completely
instructions. cover cake & decorate to your
5. Covers all possible choice.
outcomes with 3. Put sugar & evaporated milk
into a saucepan. Stir and bring
practical solutions.
to the boil, then simmer for 5
minutes. Remove from heat.
Add the broken chocolate &
stir until melted. Repeat with
margarine. Pour into a bowl &
leave in fridge until it thickens.

Giving Directions

From the town hall, follow Orchard Road for 2 kilometres until you reach a set of
traffic lights. Turn left onto Western Road. Continue driving along Western Road
until you reach a T-junction. Turn Right onto O’Connell Avenue and continue
forward for 1 kilometre until you pass the Post Office on your left. Just after the
Post Office turn left onto Meadow Drive. Mary’s house is the second house on
the right.

Module 1 | 9
Exercises

 In the box below write a good computer algorithm to explain how to top up your mobile phone
credit. Make sure you use a step by step clear set of instructions.

 With human algorithms we can rely on


• Intuition
• Initiative
• Prior knowledge
• Independent decision-making
• Learning from experience

Computers do not have these things. Look back on the 3 algorithms on the previous page.
In the box below list 3 algorithms that you execute in your daily life.

1. ___________________________________________________________________
___________________________________________________________________

2. ___________________________________________________________________
___________________________________________________________________

3. ___________________________________________________________________
___________________________________________________________________

10 | Scratch Workbook
 Solve the Farmers problem

A farmer has to take three items, a dog, a goat and a cabbage, across a river.
He has a boat but it can only take two objects at once, in other words, the farmer
and one other item.
If the dog and the goat are left together the dog will bite the goat.
If the goat and the cabbage are left together the goat will eat the cabbage.

Write an algorithm to tell the farmer how to get the three items across the river.

Module 1 | 11
Playing With Music

Often when using a computer it needs to respond to an event triggered by the user. For example a
computer will react when you press buttons on a joy pad when playing a game or simulating piano
playing on a keyboard.

Exercises

 Create a script using Scratch that will make your sprite move in different directions using the arrow
keys. When you have a working script use it to fill in the blank commands below.

12 | Scratch Workbook
 Using Scratch commands from the sounds block palette get your sprite to play a musical scale
when the space key is pressed.

 Create your own band using Scratch.


Use sound commands to make music for the band.
Animate your sprites by using costumes and motion commands.
Figure out how to introduce a background to make the stage fit in with the image of your band.

Module 1 | 13
End of Module Quiz

 A software application that allows users to make voice and video calls over the Internet is called
A. YouTube
B. Facebook
C. Skype
D. Ebay

 An electronic device for playing digital audio files is often known as


A. Touchscreen
B. MP3 player
C. Eniac
D. Audio Speakers

 In Scratch your creations come to life in the area


shown in the image know as
A. The Stage
B. The Sprite
C. The Screen
D. The Interface

 What does this script do?


A. A sprite will rotate forwards by 90
degrees and move 100 steps up
when the green flag is pressed.
B. A sprite will rotate forwards by 90
degrees and move 100 steps down
when the green flag is pressed.
C. A sprite will rotate backwards by
90 degrees and move 100 steps up
when the green flag is pressed.
D. A sprite will rotate backwards by 90
degrees and move 100 steps down
when the green flag is pressed.

 Match the following parts of the Scratch interface to the images

Sprite List Blocks Palette Tool Bar Tabs

14 | Scratch Workbook
 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. Toolbar
F. Add image from a file

Module 1 | 15
 A written explanation that can be attached to code as shown is known as

A. A Comment
B. A Cursor
C. A Sticky Note
D. A Script

 Which of the items listed below is not a feature of a good algorithm?

A. Accurate and unambiguous


B. Written in random order
C. Leads to completion
D. Covers all possible outcomes with practical solutions

 Identify the script below that matches the game instruction. Hit “a” to move left and hit “b” to move
right

A.

B.

C.

D.

16 | Scratch Workbook

Common questions

Powered by AI

The Scratch interface includes the Blocks Palette for commands, the Stage for viewing projects, the Sprite List for managing sprites, the Tool Bar for project control, and the Scripts Area for coding. These features are beneficial as they provide a visual and intuitive environment for beginners to learn programming by creating interactive stories, games, and animations .

User feedback in educational environments like Scratch plays a critical role in optimizing learning outcomes by providing insights into user experience and challenges faced during the learning process. Constructive feedback helps educators tailor instructional strategies and software functionalities to better suit learners' needs, ensuring a more effective educational experience and improving student engagement and comprehension .

Understanding algorithms is essential because they provide a structured approach to problem-solving by detailing a clear set of steps, leading to a solution that is accurate and unambiguous. This structured thought process can be applied in daily scenarios such as cooking or navigating, where a series of logical steps ensure tasks are completed efficiently and effectively, minimizing errors .

Scratch can significantly enhance musical education by allowing students to create music-based interactive programs. By using the sound commands and associating sprite animations with musical notes or scales, learners can develop an understanding of rhythm, tempo, and composition. This interactive method encourages creativity and aids in the comprehension of music theory in a practical and engaging manner .

Creating a walking animation in Scratch helps learners understand crucial programming principles like loops, sequencing, and control structures. By modifying scripts to make a sprite 'walk,' users learn how repeated sequences of asset swapping (costumes) and movement commands can simulate natural actions. This process enhances learners' problem-solving skills and logical thinking, as they must organize commands in the correct order to achieve a smooth animation .

Beginners might face challenges like understanding the logical flow of programs, grasping abstract concepts such as loops and conditionals, and debugging errors. These challenges can be mitigated by providing thorough introductory tutorials, interactive guides, and community support. Incremental practice with feedback and example projects can build confidence and understanding .

The ENIAC, an early computer, was gigantic, occupying 680 square feet and weighed nearly thirty tons, performing roughly five thousand operations per second using over nineteen thousand vacuum tubes, which is extremely slow compared to modern handheld devices. Current handheld consoles surpass all the computing power used to put the first man on the moon, illustrating significant technological advancement from ENIAC's time .

Problem-solving exercises in Scratch enhance computational thinking by fostering skills such as decomposition, pattern recognition, abstraction, and algorithm design. As learners create and troubleshoot scripts, they practice breaking down problems into actionable steps, recognizing patterns in logic, abstracting details to focus on solutions, and developing algorithms. This approach supports critical thinking and systematic problem solving applicable beyond programming .

Project-based learning in Scratch stimulates creativity and innovation by allowing students to pursue interest-driven projects, encouraging exploration and experimentation. This environment empowers students to combine art and technology creatively, pushing them to exceed conventional boundaries and apply technical skills in novel ways, which enhances problem-solving abilities and fosters innovative thinking across disciplines .

The evolution from early computers like the ENIAC, which was massive and performed limited operations, to highly sophisticated modern devices reflects trends such as miniaturization, increased processing power, and enhanced functionality. This progression demonstrates the exponential advancement in computing efficiency and capability, driven by innovations like integrated circuits and semiconductor technology, aligning with Moore's law .

You might also like