COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May...

24
COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011

Transcript of COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May...

Page 1: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming in Scratch

Monday, May 16, 2011

Page 2: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Admin Stuff

• Office hours are posted and started earlier today.

• Work on Assignment 1 early so you can look at Assignment 2.

• Assignment 2 posted tonight.• I will post an announcement asking you to print something to bring to next class. DO IT.

Page 3: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

A Tour of Scratch

Page 4: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Boolean Values

Page 5: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Boolean Values

Page 6: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Boolean Values

And: Both must be trueOr: One or both must be true

Not: Must be false

Page 7: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:If Statements

Page 8: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:If Statements

Page 9: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:If Statements

Page 10: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:If Statements

Page 11: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Loops

Start

StopCondition

Page 12: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Loops

Forever loop: no stop condition(literally goes forever – or at least until the program stops)

Page 13: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Loops

Forever if loop: goes forever, butonly runs the code inside when the boolean is TRUE

Page 14: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Loops

Repeat loop: repeats the code exactly the numberof times you tell it to

Page 15: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Loops

Repeat until loop: continues until theboolean value is TRUE, then stops for good

Page 16: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Variables

myObject

Page 17: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Variables

myObject

Page 18: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Variables

Page 19: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Variables

myObject

Page 20: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Variables

Page 21: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Broadcast

Page 22: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Broadcast

Page 23: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Programming Concepts:Broadcast

Page 24: COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.

COMP 1001: Introduction to Computers for Arts and Social Sciences

Tutorials!

http://www.cs.harvard.edu/malan/scratch/http://www.scratch.ie/students

http://learnscratch.org/