Prepared by: Shehla Shoaib
Programming & Scratch
Prepared by: Shehla Shoaib
Scratch
Scratch is a programming language and online community where you can create your own interactive stories, games, and animations -- and share your creations with others around the world.
Prepared by: Shehla Shoaib
Learning to program is about learning to think logically.
The building blocks out of which a programmer constructs solutions, meanwhile, are relatively simply.
Programming
Prepared by: Shehla Shoaib
logical reasoning
breaking complex problems into simpler parts
debugging problems
developing ideas from initial conception to completed project
sustained focus and determination
Problem-Solving and Project-Design Skills
Prepared by: Shehla Shoaib
Scratch Interface
Stage:
Where
your game
takes place Scripts
Area: Where
you enter your
instructions
Blocks
Palette:
Commands
Sprite
list
Prepared by: Shehla Shoaib
Review
Prepared by: Shehla Shoaib
computer programs tell the computer precisely what to
do, step-by-step
writing computer programs doesn’t require special
expertise, just clear and careful thinking
Fundamental Ideas about Computers and
Programming
Prepared by: Shehla Shoaib
Common in programming, for instance, are "loops" (whereby a program does something multiple times) and "conditions" (whereby a program only does something under certain circumstances. Also common are "variables" (so that a program, like a mathematician, can remember certain values).
Programming
Prepared by: Shehla Shoaib
In programming, a statement is simply a directive that tells the computer to do something. Think of it as a command or an instruction. In Scratch, any block whose label reads like a command is a statement.
Statements
Prepared by: Shehla Shoaib
One such block instructs a sprite to say something:
Statements
Prepared by: Shehla Shoaib
Another such block instructs a sprite to go to some location:
Statements
Prepared by: Shehla Shoaib
To create a program in Scratch, you need to think
systematically about the order of steps
Sequence
Prepared by: Shehla Shoaib
Example #01
Prepared by: Shehla Shoaib
Example #02