Programming in Scratch
Programming in Scratch
Intensive Introduction to
Computer Science
Course Overview
Programming in Scratch
Welcome to CS S-111!
Computer science is not so much the science of computers
as it is the science of solving problems using computers.
Eric Roberts
A Rigorous Introduction
• Intended for:
• future concentrators who plan to take more
advanced courses
• others who want a rigorous introduction
• no programming background required,
but can also benefit people with prior background
Textbooks
• Required: The CSCI S-111 Coursepack
• contains all of the lecture notes
• will be available at Gnomon Copy on Mass Ave.
• Policies:
• 10% penalty for submissions that are one day late
• please don't request an extension unless it's an emergency!
• grading
• Please read the syllabus carefully and make sure that you
understand the policies and follow them carefully.
Scratch Basics
• Scratch programs (scripts) control characters called sprites.
• Sprites perform actions and interact with each other on the stage.
the stage
building
blocks
for
programs/
scripts
new sprite
buttons
list of sprites
on the stage
forms
• To create a variable:
Using Variables in Your Program
note: you must drag a variable into place, not type its name
• Boolean operators:
• They have an input area with pointed edges for the condition.
Flow of Control: Conditional Execution (cont.)