SlideShare a Scribd company logo
Intro to Programming
Algebra-Geometry
Computer Programming?
 What is programming?
 The process of writing, testing, and maintaining
the source code of computer programs.
 Telling the computer what to do
 Why learn to program?
 Develops logic and problem-solving skills
 Improves attention to detail
 It’s fun!
But I’m Not a Geek!
 Until recently, programming required
knowledge of computer language syntax
Anyone Can Program!
 New tools, like Scratch, allow ANYONE to
create computer programs without learning
complicated syntax.
Programming with Scratch
 Open Scratch from either the desktop icon or
Start Menu
Mini Scratch Unit
Homework
 Make sure you have the latest version of
Scratch installed on your Tablet PC
 Finish working through the Scratch Getting
Started Guide
 Feel free to experiment and explore!
Scratch Syntax: Part 1
Algebra-Geometry
Statements
 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.
Boolean Expressions
 Sometimes, you only want a statement to be
executed under certain conditions. Such
conditions are defined in terms of Boolean
expressions.
 In programming, a Boolean expression is
an expression that is either true or false. In
Scratch, any block shaped like an elongated
diamond is a Boolean expression.
Boolean Expressions
 One such block is:
After all, it is either true that the mouse button
is down or it is false.
 Another such block is:
After all, it is either true that some number is
less than another number or it is false.
 With Boolean expressions can we construct
conditions.
Conditions
 In programming, a condition is something
that must be true in order for something to
happen.
 A condition is thus said to "evaluate to true"
or "evaluate to false."
 In Scratch, any block whose label says "if,"
"when," or "until" is a sort of conditional
construct.
Conditions
 If Construct: Instruct a sprite to say hello
only if, say, the user has depressed the
mouse button:
 If-Else Construct: Instruct a sprite to say
hello or goodbye, depending on whether the
user has depressed the mouse button:
Conditions
 When Construct: Instruct a sprite to do
something when an event occurs:
 When Construct: Instruct a sprite to wait to
do something until a condition is true:
Loops
 In programming, a loop can induce multiple
executions of statements.
 In Scratch, any block whose label begins with
"forever" or "repeat" is a looping construct.
Follow Me
Follow Me applet
Homework
 Complete the Cat Walk Project
 You may wish to use the Scratch Reference
Guide and the Programming Concepts
Handout as resources
 Completed projects need to be submitted via
Interact by the due date.
Scratch Syntax: Part 2
Algebra-Geometry
Variables
 In programming, a variable is a placeholder
for some value, much like x and y are popular
variables in algebra.
 In Scratch, variables are represented with
blocks shaped like elongated circles,
uniquely labeled by you.
Threads
 In programming, a thread is like a mini-
program within a program that can execute at
the same time as other threads.
 In Scratch, any block whose label begins with
"when" essentially demarks the start of a
thread.
Events
 An event is a signal from one thread to
another.
 Blocks whose labels begin with "broadcast"
signal events whereas blocks whose labels
begin with "when" handle events.
Pac Man and Pong
 Games like Pac Man
use Threads
 A Variable could be
added to Pong
Homework
 Complete the Tweak a Game Project
 Remember that the video tutorials can be
very helpful
 Completed projects need to be submitted via
Interact by the due date. Don’t forget to
include your brief written summary!
Scratch Syntax:
Your First Game
Algebra-Geometry
Adding a Level
 Levels can be added using threads and
events.
Copter Game Flight Code
Copter Game—One Level
Homework
 Complete the Your First Game Project
 You may wish to use the Copter Game and
Levels program as resources
 Completed projects need to be submitted via
Interact by the due date.

More Related Content

PPTX
Scratch programming
PPTX
Scratch: Programming for everyone
PPTX
Scratch Programming
PPT
Scratch for Data Logging and Graphing
PPTX
Scratch Lesson 2
PPTX
Scratch Basics
PPT
Introduction to Scratch Programming
PDF
Scratch Animation
Scratch programming
Scratch: Programming for everyone
Scratch Programming
Scratch for Data Logging and Graphing
Scratch Lesson 2
Scratch Basics
Introduction to Scratch Programming
Scratch Animation

What's hot (20)

PPT
Scratch Lesson 1 – Basics
PPTX
Computer Coding with Scratch: Lesson 2_primaryschoollessons
PPTX
Scratch programming introduction to game creation
PPTX
PPT
Scratch for intermediates course
PPTX
Lesson 1: Scratch Computer Programming
PPT
Intro To Scratch
PPTX
Scratch Lesson 1
PDF
Coding Basics with Scratch
PPTX
Scratch Lesson 6
PPT
Scratch Project
PDF
Kids coding
PPTX
Scratch Parrot Game
PPTX
Scratch Lesson 3
PPTX
Lecture 1.pptx
PPTX
scratch.pptx
PDF
Scratch Lesson Plan
PPTX
Basic of computer
PDF
Tinkercad lesson 1
PDF
Guía de actividades Scratch
Scratch Lesson 1 – Basics
Computer Coding with Scratch: Lesson 2_primaryschoollessons
Scratch programming introduction to game creation
Scratch for intermediates course
Lesson 1: Scratch Computer Programming
Intro To Scratch
Scratch Lesson 1
Coding Basics with Scratch
Scratch Lesson 6
Scratch Project
Kids coding
Scratch Parrot Game
Scratch Lesson 3
Lecture 1.pptx
scratch.pptx
Scratch Lesson Plan
Basic of computer
Tinkercad lesson 1
Guía de actividades Scratch
Ad

Viewers also liked (17)

PPTX
Scratch programmering länktips
PDF
FL2011: Ikt i matematikundervisningen, helena kvarnsell
DOC
Modern kosmologi
PPTX
Matte år 2014
PDF
What's Supersymmetry?
PPTX
Dark Matter, Physical Science Lesson PowerPoint
PPTX
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
PPT
Dark matter and dark energy
PPTX
Experimental Searches for Dark Matter
PPTX
Dark matter
PPT
Dark Energy And Dark Matter
PDF
Insights into Dark Matter
PPT
Universum
PDF
Scratch in the Classroom
PDF
Mystery of Dark Matter is solved!
PPT
Dark Matter and Dark Energy
PDF
C Graphics Functions
Scratch programmering länktips
FL2011: Ikt i matematikundervisningen, helena kvarnsell
Modern kosmologi
Matte år 2014
What's Supersymmetry?
Dark Matter, Physical Science Lesson PowerPoint
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
Dark matter and dark energy
Experimental Searches for Dark Matter
Dark matter
Dark Energy And Dark Matter
Insights into Dark Matter
Universum
Scratch in the Classroom
Mystery of Dark Matter is solved!
Dark Matter and Dark Energy
C Graphics Functions
Ad

Similar to Mini Scratch Unit (20)

PPT
woessnerscratchunit-090518182238-phpapp01.pdf.ppt
PPT
introduction to programming using scratch.ppt
PPTX
Day 1( magic camp)(1)
PPTX
Lesson 17 - Presentation - Introduction to coding with code blocks.pptx
PPTX
Raspberry Pi and Physical Computing Workshop
PDF
scratch-3-tutorial.pdf
PPTX
Scratch Syntax 2 Cmp
DOCX
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
PPTX
Yeahhhh the final requirement!!!
PPTX
1.5 branching and subroutines
PPTX
My final requirement
PDF
How do I learn to code with Scratch in AEP
DOCX
Introducing small basic
PPTX
Mark asoi ppt
PDF
Scratch2
PDF
Advanced java script essentials v1
PDF
Lab a
PDF
How tomakea gameinunity3d
PDF
My summary for cs001x computer science for beginners
PDF
Class #1: Blocks and Vocabulary
woessnerscratchunit-090518182238-phpapp01.pdf.ppt
introduction to programming using scratch.ppt
Day 1( magic camp)(1)
Lesson 17 - Presentation - Introduction to coding with code blocks.pptx
Raspberry Pi and Physical Computing Workshop
scratch-3-tutorial.pdf
Scratch Syntax 2 Cmp
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
Yeahhhh the final requirement!!!
1.5 branching and subroutines
My final requirement
How do I learn to code with Scratch in AEP
Introducing small basic
Mark asoi ppt
Scratch2
Advanced java script essentials v1
Lab a
How tomakea gameinunity3d
My summary for cs001x computer science for beginners
Class #1: Blocks and Vocabulary

More from Patrick Woessner (20)

PPTX
Digital fabrication for k 12 education
PPTX
An Urban Adventure in Project-Based Learning
PPTX
Managing Google Apps
PPT
Passion Based Learning: Lausanne 2012
PPTX
Intro to Systems Thinking
PPT
Passion-Based Learning ISACS Workshop
PPTX
7th grade presentation cite2
PPT
7th grade presentation cite1
PPTX
Passion-Based Learning Workshop
PPTX
Collaboration in the Digital Age
PPT
Social bookmarking with delicious
PPTX
Wikis in the K12 Classroom
PPTX
Tech Sci Classroom
PPTX
Citizenship Digital Age
PPTX
Intro To Programming Cmp
PPTX
Think Before You Post
DOCX
Web Eval Form
PPT
Website Evaluation 2009
PDF
K12 9-26 LAN Party
PPT
Flat Class Workshop
Digital fabrication for k 12 education
An Urban Adventure in Project-Based Learning
Managing Google Apps
Passion Based Learning: Lausanne 2012
Intro to Systems Thinking
Passion-Based Learning ISACS Workshop
7th grade presentation cite2
7th grade presentation cite1
Passion-Based Learning Workshop
Collaboration in the Digital Age
Social bookmarking with delicious
Wikis in the K12 Classroom
Tech Sci Classroom
Citizenship Digital Age
Intro To Programming Cmp
Think Before You Post
Web Eval Form
Website Evaluation 2009
K12 9-26 LAN Party
Flat Class Workshop

Recently uploaded (20)

PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
master seminar digital applications in india
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
PPH.pptx obstetrics and gynecology in nursing
master seminar digital applications in india
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
01-Introduction-to-Information-Management.pdf
Complications of Minimal Access Surgery at WLH
Final Presentation General Medicine 03-08-2024.pptx
TR - Agricultural Crops Production NC III.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Week 4 Term 3 Study Techniques revisited.pptx
Classroom Observation Tools for Teachers
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Abdominal Access Techniques with Prof. Dr. R K Mishra
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student

Mini Scratch Unit

  • 2. Computer Programming?  What is programming?  The process of writing, testing, and maintaining the source code of computer programs.  Telling the computer what to do  Why learn to program?  Develops logic and problem-solving skills  Improves attention to detail  It’s fun!
  • 3. But I’m Not a Geek!  Until recently, programming required knowledge of computer language syntax
  • 4. Anyone Can Program!  New tools, like Scratch, allow ANYONE to create computer programs without learning complicated syntax.
  • 5. Programming with Scratch  Open Scratch from either the desktop icon or Start Menu
  • 7. Homework  Make sure you have the latest version of Scratch installed on your Tablet PC  Finish working through the Scratch Getting Started Guide  Feel free to experiment and explore!
  • 8. Scratch Syntax: Part 1 Algebra-Geometry
  • 9. Statements  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.
  • 10. Boolean Expressions  Sometimes, you only want a statement to be executed under certain conditions. Such conditions are defined in terms of Boolean expressions.  In programming, a Boolean expression is an expression that is either true or false. In Scratch, any block shaped like an elongated diamond is a Boolean expression.
  • 11. Boolean Expressions  One such block is: After all, it is either true that the mouse button is down or it is false.  Another such block is: After all, it is either true that some number is less than another number or it is false.  With Boolean expressions can we construct conditions.
  • 12. Conditions  In programming, a condition is something that must be true in order for something to happen.  A condition is thus said to "evaluate to true" or "evaluate to false."  In Scratch, any block whose label says "if," "when," or "until" is a sort of conditional construct.
  • 13. Conditions  If Construct: Instruct a sprite to say hello only if, say, the user has depressed the mouse button:  If-Else Construct: Instruct a sprite to say hello or goodbye, depending on whether the user has depressed the mouse button:
  • 14. Conditions  When Construct: Instruct a sprite to do something when an event occurs:  When Construct: Instruct a sprite to wait to do something until a condition is true:
  • 15. Loops  In programming, a loop can induce multiple executions of statements.  In Scratch, any block whose label begins with "forever" or "repeat" is a looping construct.
  • 17. Homework  Complete the Cat Walk Project  You may wish to use the Scratch Reference Guide and the Programming Concepts Handout as resources  Completed projects need to be submitted via Interact by the due date.
  • 18. Scratch Syntax: Part 2 Algebra-Geometry
  • 19. Variables  In programming, a variable is a placeholder for some value, much like x and y are popular variables in algebra.  In Scratch, variables are represented with blocks shaped like elongated circles, uniquely labeled by you.
  • 20. Threads  In programming, a thread is like a mini- program within a program that can execute at the same time as other threads.  In Scratch, any block whose label begins with "when" essentially demarks the start of a thread.
  • 21. Events  An event is a signal from one thread to another.  Blocks whose labels begin with "broadcast" signal events whereas blocks whose labels begin with "when" handle events.
  • 22. Pac Man and Pong  Games like Pac Man use Threads  A Variable could be added to Pong
  • 23. Homework  Complete the Tweak a Game Project  Remember that the video tutorials can be very helpful  Completed projects need to be submitted via Interact by the due date. Don’t forget to include your brief written summary!
  • 24. Scratch Syntax: Your First Game Algebra-Geometry
  • 25. Adding a Level  Levels can be added using threads and events.
  • 28. Homework  Complete the Your First Game Project  You may wish to use the Copter Game and Levels program as resources  Completed projects need to be submitted via Interact by the due date.