Programming with Scratch Lesson 1: Intro to Programming
Computer Programming? <ul><li>What is programming? </li></ul><ul><ul><li>The process of writing, testing, and maintaining ...
But I’m Not a Geek! <ul><li>Until recently, programming required knowledge of computer language syntax </li></ul>
Anyone Can Program! <ul><li>New tools, like Scratch, allow ANYONE to create computer programs without learning complicated...
Programming with Scratch <ul><li>Open Scratch from either the desktop icon or Start Menu  </li></ul>
 
Homework <ul><li>Download and install Scratch on your home computer </li></ul><ul><li>Finish working through the Scratch G...
Programming with Scratch Lesson 2: Scratch Syntax Part 1
Statements <ul><li>In programming, a  statement  is simply a directive that tells the computer to do something. Think of i...
Boolean Expressions <ul><li>Sometimes, you only want a statement to be executed under certain conditions. Such conditions ...
Boolean Expressions <ul><li>One such block is:  </li></ul><ul><li>After all, it is either true that the mouse button is do...
Conditions <ul><li>In programming, a  condition  is something that must be true in order for something to happen.  </li></...
Conditions <ul><li>If Construct : Instruct a sprite to say hello only if, say, the user has depressed the mouse button: </...
Conditions <ul><li>When Construct : Instruct a sprite to do something when an event occurs: </li></ul><ul><li>When Constru...
Loops <ul><li>In programming, a  loop  can induce multiple executions of statements.  </li></ul><ul><li>In Scratch, any bl...
Follow Me Follow Me applet
Homework <ul><li>Complete the Cat Walk Project </li></ul><ul><li>You may wish to use the Scratch Reference Guide as a reso...
Programming with Scratch Lesson 3: Scratch Syntax Part 2
Variables <ul><li>In programming, a  variable  is a placeholder for some value, much like  x  and  y  are popular variable...
Threads <ul><li>In programming, a  thread  is like a mini-program within a program that can execute at the same time as ot...
Events <ul><li>An  event  is a signal from one thread to another. </li></ul><ul><li>Blocks whose labels begin with &quot;b...
Copter Game Flight Code
Copter Game—One Level
Adding a Level <ul><li>Levels can be added using  threads  and  events . </li></ul>
Homework <ul><li>Complete the Your First Game Project </li></ul><ul><li>You may wish to use the Copter Game and Levels pro...
Upcoming SlideShare
Loading in...5
×

Intro To Scratch

4,939

Published on

Lecture notes for into lessons on using Scratch

Published in: Education, Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,939
On Slideshare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
265
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Intro To Scratch

  1. 1. Programming with Scratch Lesson 1: Intro to Programming
  2. 2. Computer Programming? <ul><li>What is programming? </li></ul><ul><ul><li>The process of writing, testing, and maintaining the source code of computer programs. </li></ul></ul><ul><ul><li>Telling the computer what to do </li></ul></ul><ul><li>Why learn to program? </li></ul><ul><ul><li>Develops logic and problem-solving skills </li></ul></ul><ul><ul><li>Improves attention to detail </li></ul></ul><ul><ul><li>It’s fun! </li></ul></ul>
  3. 3. But I’m Not a Geek! <ul><li>Until recently, programming required knowledge of computer language syntax </li></ul>
  4. 4. Anyone Can Program! <ul><li>New tools, like Scratch, allow ANYONE to create computer programs without learning complicated syntax. </li></ul>
  5. 5. Programming with Scratch <ul><li>Open Scratch from either the desktop icon or Start Menu </li></ul>
  6. 7. Homework <ul><li>Download and install Scratch on your home computer </li></ul><ul><li>Finish working through the Scratch Getting Started Guide </li></ul><ul><li>Feel free to experiment and explore! </li></ul>
  7. 8. Programming with Scratch Lesson 2: Scratch Syntax Part 1
  8. 9. Statements <ul><li>In programming, a statement is simply a directive that tells the computer to do something. Think of it as a command or an instruction. </li></ul><ul><li>In Scratch, any block whose label reads like a command is a statement. </li></ul>
  9. 10. Boolean Expressions <ul><li>Sometimes, you only want a statement to be executed under certain conditions. Such conditions are defined in terms of Boolean expressions. </li></ul><ul><li>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. </li></ul>
  10. 11. Boolean Expressions <ul><li>One such block is: </li></ul><ul><li>After all, it is either true that the mouse button is down or it is false. </li></ul><ul><li>Another such block is: </li></ul><ul><li>After all, it is either true that some number is less than another number or it is false. </li></ul><ul><li>With Boolean expressions can we construct conditions . </li></ul>
  11. 12. Conditions <ul><li>In programming, a condition is something that must be true in order for something to happen. </li></ul><ul><li>A condition is thus said to &quot;evaluate to true&quot; or &quot;evaluate to false.&quot; </li></ul><ul><li>In Scratch, any block whose label says &quot;if,&quot; &quot;when,&quot; or &quot;until&quot; is a sort of conditional construct. </li></ul>
  12. 13. Conditions <ul><li>If Construct : Instruct a sprite to say hello only if, say, the user has depressed the mouse button: </li></ul><ul><li>If-Else Construct : Instruct a sprite to say hello or goodbye, depending on whether the user has depressed the mouse button: </li></ul>
  13. 14. Conditions <ul><li>When Construct : Instruct a sprite to do something when an event occurs: </li></ul><ul><li>When Construct : Instruct a sprite to wait to do something until a condition is true: </li></ul>
  14. 15. Loops <ul><li>In programming, a loop can induce multiple executions of statements. </li></ul><ul><li>In Scratch, any block whose label begins with &quot;forever&quot; or &quot;repeat&quot; is a looping construct. </li></ul>
  15. 16. Follow Me Follow Me applet
  16. 17. Homework <ul><li>Complete the Cat Walk Project </li></ul><ul><li>You may wish to use the Scratch Reference Guide as a resource </li></ul><ul><li>Completed projects need to submitted by the due date. </li></ul>
  17. 18. Programming with Scratch Lesson 3: Scratch Syntax Part 2
  18. 19. Variables <ul><li>In programming, a variable is a placeholder for some value, much like x and y are popular variables in algebra. </li></ul><ul><li>In Scratch, variables are represented with blocks shaped like elongated circles, uniquely labeled by you. </li></ul>
  19. 20. Threads <ul><li>In programming, a thread is like a mini-program within a program that can execute at the same time as other threads. </li></ul><ul><li>In Scratch, any block whose label begins with &quot;when&quot; essentially demarks the start of a thread. </li></ul>
  20. 21. Events <ul><li>An event is a signal from one thread to another. </li></ul><ul><li>Blocks whose labels begin with &quot;broadcast&quot; signal events whereas blocks whose labels begin with &quot;when&quot; handle events. </li></ul>
  21. 22. Copter Game Flight Code
  22. 23. Copter Game—One Level
  23. 24. Adding a Level <ul><li>Levels can be added using threads and events . </li></ul>
  24. 25. Homework <ul><li>Complete the Your First Game Project </li></ul><ul><li>You may wish to use the Copter Game and Levels program as resources. </li></ul><ul><li>Completed projects need to submitted by the due date. </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×