CS 105

Week 1

Intro Movie

"Cookie Love Story"
(Scratch Project from Harvard)

Wade's Office Hours

  • Mondays, 2:30pm - 3:30pm
  • Wednesdays, 10:30am - 11:30am
  • By appointment


TA Lab Hours

  • Mondays, 2:00pm - 6:00pm
  • Tuesdays, 9:00am - 1:00pm, 3:30pm - 5:30pm
  • Fridays, 9:45am - 11:45am

Why Programming?

To use a computer efficiently, you must understand how a computer "thinks".

Scratch

Scratch

Computer programming language

Procedural programming language
(1): Runs "procedures" from top to bottom
(2): Contains loops and conditionals

JavaScript

Computer programming language

Procedural programming language
(1): Runs "procedures" from top to bottom
(2): Contains loops and conditionals

DDR

DDR Game

"Scratch Scratch Revolution!"
(Scratch Project, Harvard University)

Statement

Statements instruct the computer to DO something.

Statements Example 1

"Dog Goes Forward"
(Scratch Project)

Statements Example 2

"Dog Moves Toward Ball"
(Scratch Project)

Conditional

Conditionals CONTROL the path of execution.

Conditional Example

"Pet the Dog?"
(Scratch Project)

Boolean Expressions



Boolean Expressions

Boolean expressions always have an answer of TRUE or FALSE.

Boolean expressions are used with conditionals.

Variables

Variables allow a program to REMEMBER a value for later use.

Variable Example

"The Barking Dog"
(Scratch Project)

Variable Example 2

"Save Arendelle"
(Scratch Project, CS 105, Spring 2014)

MP0

Build your own, original Scratch program!

Release: Tomorrow (CS 105 website)
Due: Tuesday, Feb. 3, 8:00pm