Scratch Syntax 1 Cmp

  • 2,084 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,084
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
19
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Scratch Syntax: Part 1
    CMP
  • 2. 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.
  • 3. 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.
  • 4. Conditions
    If Construct: Instruct a sprite to say hello only if, say, the user has depressed the mouse button:
    When Construct: Instruct a sprite to do something when an event occurs:
  • 5. 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.
  • 6. Follow Me
    Follow Me applet
  • 7. 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.