0
Upcoming SlideShare
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Standard text messaging rates apply

# Lesson 1: scratch basics

651

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total Views
651
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
14
0
Likes
0
Embeds 0
No embeds

No notes for slide
• 1
• Remember to hide the sprite from the screen
• ### Transcript

• 1. Introduction to Programming Scratch Lesson 1
• 2. Goals• What is an algorithm?• Scratch Interface• Variables• Conditional Statements• Turtle Graphics• Repetition 2
• 3. What is an algorithm?• A step by step process (Algorithm) – Instructions for making tea (Pseudocode) If no water in kettle: Put water in kettle Turn on kettle While water not boiling in kettle: Wait Put water in cup … 3
• 4. Scratch user interface 4
• 5. Scratch stage 5
• 6. Stage + Sprite• Exercise: – Point your mouse to coordinate x=0, y=0• Exercise: – Get a new sprite on the screen 6
• 7. First scratch program 7
• 8. Variables Add a variable called “number”Exercise:Say a random number 8
• 9. ConditionsExercise: – What does this code do? – What are the errors in the code? 9
• 10. ConditionsExercise: – What does this code do? – What are the errors in the code? – What if “number” is equal to 5? 10
• 11. Motion statements • Move Right • Move Left • Big Steps • Small Steps • Move Up • Move Down • Exercise: Double-click on the blocks to see what happens 11
• 12. More motion action• Exercise – Make the sprite go to x=0, y=0• Exercise – Make the sprite move 100 steps and turn 90 degrees• Exercise – Make the sprite go in a square pattern• Exercise – Make the sprite move when you hit a key 12
• 13. Pen statements • Pen appears underneath sprite • Pen must be set to “down” before it will draw • Exercise: Draw a line after the sprite 13
• 14. Iteration • Repeat statements • Exercise: Guess what this code does • Test your guess 14
• 15. Loop exercises• Exercise: Draw this (10 diamonds)• Exercise: Try to write your programs with as few statements as possible 15
• 16. More repeating exercises• Exercise: Draw this in any colour• Exercise: Change the colour of each square• Exercise: Draw a triangle, a pentagon a hexagon and a circle. 16