1
Unit 1
Steps to complete a task.
Computer scientists use an algorithm to plan out the steps they want a computer to follow. Here is an algorithm for Scratch cat:
ALGORITHM
1. Move forward 10 steps
2. Wait 2 seconds
10
2
3. Change color to green
A computer cannot understand the same languages that people speak. We must write code, a special language that a computer understands. An algorithm written in code is called a program.
Here is a program for Scratch cat’s algorithm from above.
Can you match each step of the algorithm with each code block?
PROGRAM
A set of instructions written in a �language that a computer understands.
2
Act out and
build scripts.
The Actor (Sprite) uses a script card to act out the script.
The Director makes sure the Actor follows the script correctly.
The Script Builders make the script by putting code blocks together in the correct order.
Scratch Charades is a game where you act out a script and then build the script. There is an:
Actor (Sprite) Director Two Script Builders
Every script will start with a Green Flag clicked or a This Sprite clicked Event.
The scripts will also include Motion, Looks, Sound, and Control blocks.
Motion
Looks
Sound
Control
Hello
3
SCRATCH CHARADES
There are 2 levels of script cards: Green and Blue.
Complete the Green script cards before starting the Blue script cards.
or
3
What ideas are you interested in learning more about?
First Programmer: Ada Lovelace
Role Model: bit.ly/firstprogrammerADA
What challenges did Dorothy face?
Based on the video about English mathematician and first computer programmer, Ada Lovelace, put a check next to the statements that are true. bit.ly/firstprogrammerADA
Think about it:
Why do you think women were not encouraged to study math and science 200 years ago?
4
TIPP & SEE FRAMEWORK
5
a. When you click the : | ||||
| Moves | | Talks | No sprite does anything. |
Talks | Changes Color | |||
b. When you press space bar: | ||||
| Moves | | Talks | No sprite does anything. |
Talks | Changes Color | |||
c. When you click on : | ||||
| Moves | | Talks | No sprite does anything. |
Talks | Changes Color | |||
d. When you click on : | ||||
| Moves | | Talks | No sprite does anything. |
Talks | Changes Color | |||
Title (of project)
Instructions (how to use project)
Purpose (skills to learn)
UNDER THE SEA TIPP&SEE
6
a. Change ‘s block from 50 to 100 steps... | |||
Will Fred move MORE or LESS? �Complete each step: | Predict ⃞ | Change Code ⃞ | Run Code ⃞ |
Fred moves (circle the best answer): | MORE | LESS | |
b. Change ‘s block value from 1 to 2 seconds… | |||
Will Helen’s costume change FASTER or SLOWER? �Complete each step: | Predict ⃞ | Change Code ⃞ | Run Code ⃞ |
Helen’s costume changes (circle the best answer): | FASTER | SLOWER | |
a. Predict which block makes swim?
b. Predict which block makes go to the starting position?
c. Predict which block makes change color?
d. Predict which block makes talk?
Ouch!
2
50
-158
80
Ouch!
2
50
-158
80
Ouch!
2
50
-158
80
Ouch!
2
50
UNDER THE SEA TIPP&SEE (Continued)
-158
80
7
2. Your Quest (check ✓ tasks as you complete them) | ||||
a. Sign in to your Scratch Account | ⃞ | |||
b. RoaR&hiSS - Reload, Remix, Share, and +Add to Studio | ⃞ | |||
| It’s Coded | It Works | ||
|
| ⃞ | ⃞ | |
| ⃞ | ⃞ | ||
|
| ⃞ | ⃞ | |
| ⃞ | ⃞ | ||
Sign in to your Scratch Account and RoaR&hiSS
1. Click or Type: bit.ly/SeaHunt
UNDER THE SEA QUEST
8
algorithm: a list of steps to complete a task
code: a language that a computer understands
computer science: the study of how to use computers to help humans
computer scientist: a person who studies computers and what they can do
computer: a device that reads an action (input), thinks about the action (store and process), and produces information (output)
debugging: finding and fixing problems in an algorithm or program
event: an action that causes something to happen
loop: a sequence of instructions that is repeated
program: an algorithm written in a language that the computer understands
sequence: a set of instructions that follow one another in order
synchronization: coordinating actions between different sprites
WORD LIST
Computer Science Vocabulary
remix: to copy a project and make personal changes to it
script: a set of code blocks used to direct the action of a sprite
sprite: an object or character you can program in Scratch
stage: the scenic area of the Scratch project
studio: a place where students from a class can save their projects together
Scratch-related Vocabulary
9
SCRATCH BACKDROPS
Fantasy
Music Underwater
Sports
Space
Indoors
Outdoors
10
SCRATCH SPRITES
People (not shown in other categories)
Sports
Dance
Letter Styles (Block, Glow, Story)
Additional people sprites exist as costumes
Sprite has multiple costumes
Sprite has multiple costumes
Sprite has multiple costumes
Sprite has multiple costumes
11
SCRATCH SPRITES
Animals (not already shown in another categories)
Music
Sprite has multiple costumes
Sprite has multiple costumes
12
SCRATCH SPRITES
Fantasy
Food
Fashion
Additional sprites exist as costumes
Sprite has multiple costumes
Sprite has multiple costumes
Additional sprites exist as costumes
Additional sprites
exist as costumes
13
HELPFUL SCRATCH VIDEO LINKS
Add Backdrop and Decorate | ||
Make Sprites Bounce Around | ||
Animate Your Name: Combining Ideas | ||
Adding Images from Outside of Scratch | Remove Background from your Images | |
Edit Sprites and Background | ||
Create Costumes for Animations | ||
Using the “When backdrop switches to” Block | ||
Tutorial videos are mainly created by