SlideShare une entreprise Scribd logo
1  sur  28
Intro to Programming
Algebra-Geometry
Computer Programming?
 What is programming?
 The process of writing, testing, and maintaining
the source code of computer programs.
 Telling the computer what to do
 Why learn to program?
 Develops logic and problem-solving skills
 Improves attention to detail
 It’s fun!
But I’m Not a Geek!
 Until recently, programming required
knowledge of computer language syntax
Anyone Can Program!
 New tools, like Scratch, allow ANYONE to
create computer programs without learning
complicated syntax.
Programming with Scratch
 Open Scratch from either the desktop icon or
Start Menu
Homework
 Make sure you have the latest version of
Scratch installed on your Tablet PC
 Finish working through the Scratch Getting
Started Guide
 Feel free to experiment and explore!
Scratch Syntax: Part 1
Algebra-Geometry
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.
Boolean Expressions
 Sometimes, you only want a statement to be
executed under certain conditions. Such
conditions are defined in terms of Boolean
expressions.
 In programming, a Boolean expression is
an expression that is either true or false. In
Scratch, any block shaped like an elongated
diamond is a Boolean expression.
Boolean Expressions
 One such block is:
After all, it is either true that the mouse button
is down or it is false.
 Another such block is:
After all, it is either true that some number is
less than another number or it is false.
 With Boolean expressions can we construct
conditions.
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.
Conditions
 If Construct: Instruct a sprite to say hello
only if, say, the user has depressed the
mouse button:
 If-Else Construct: Instruct a sprite to say
hello or goodbye, depending on whether the
user has depressed the mouse button:
Conditions
 When Construct: Instruct a sprite to do
something when an event occurs:
 When Construct: Instruct a sprite to wait to
do something until a condition is true:
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.
Follow Me
Follow Me applet
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.
Scratch Syntax: Part 2
Algebra-Geometry
Variables
 In programming, a variable is a placeholder
for some value, much like x and y are popular
variables in algebra.
 In Scratch, variables are represented with
blocks shaped like elongated circles,
uniquely labeled by you.
Threads
 In programming, a thread is like a mini-
program within a program that can execute at
the same time as other threads.
 In Scratch, any block whose label begins with
"when" essentially demarks the start of a
thread.
Events
 An event is a signal from one thread to
another.
 Blocks whose labels begin with "broadcast"
signal events whereas blocks whose labels
begin with "when" handle events.
Pac Man and Pong
 Games like Pac Man
use Threads
 A Variable could be
added to Pong
Homework
 Complete the Tweak a Game Project
 Remember that the video tutorials can be
very helpful
 Completed projects need to be submitted via
Interact by the due date. Don’t forget to
include your brief written summary!
Scratch Syntax:
Your First Game
Algebra-Geometry
Adding a Level
 Levels can be added using threads and
events.
Copter Game Flight Code
Copter Game—One Level
Homework
 Complete the Your First Game Project
 You may wish to use the Copter Game and
Levels program as resources
 Completed projects need to be submitted via
Interact by the due date.

Contenu connexe

Tendances

Tendances (20)

Scratch: Programming for everyone
Scratch: Programming for everyoneScratch: Programming for everyone
Scratch: Programming for everyone
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer Programming
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch Programming
 
Scratch Programming
Scratch ProgrammingScratch Programming
Scratch Programming
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
 
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to Scratch
 
Coding Basics with Scratch
Coding Basics with ScratchCoding Basics with Scratch
Coding Basics with Scratch
 
Scratch Lesson 1 – Basics
Scratch Lesson 1 – BasicsScratch Lesson 1 – Basics
Scratch Lesson 1 – Basics
 
Scratch
ScratchScratch
Scratch
 
Scratch Lesson Plan
Scratch Lesson PlanScratch Lesson Plan
Scratch Lesson Plan
 
Introduction to scratch programming
Introduction to scratch programmingIntroduction to scratch programming
Introduction to scratch programming
 
Scratch Lesson 3
Scratch Lesson 3Scratch Lesson 3
Scratch Lesson 3
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Scratch Project
Scratch ProjectScratch Project
Scratch Project
 
scratch course-part1-2023.pdf
scratch course-part1-2023.pdfscratch course-part1-2023.pdf
scratch course-part1-2023.pdf
 
Scratch Basics
Scratch BasicsScratch Basics
Scratch Basics
 
Scratch Lesson 3 - Interactivity
Scratch Lesson 3 -  InteractivityScratch Lesson 3 -  Interactivity
Scratch Lesson 3 - Interactivity
 
Coding with kids
Coding with kidsCoding with kids
Coding with kids
 
Scratch Lesson 6
Scratch Lesson 6Scratch Lesson 6
Scratch Lesson 6
 
Desktop 03
Desktop 03Desktop 03
Desktop 03
 

En vedette

Scratch programmering länktips
Scratch programmering länktipsScratch programmering länktips
Scratch programmering länktipsKajsa Silén
 
FL2011: Ikt i matematikundervisningen, helena kvarnsell
FL2011: Ikt i matematikundervisningen, helena kvarnsellFL2011: Ikt i matematikundervisningen, helena kvarnsell
FL2011: Ikt i matematikundervisningen, helena kvarnsellFramtidens Lärande
 
What's Supersymmetry?
What's Supersymmetry?What's Supersymmetry?
What's Supersymmetry?Sinan Kuday
 
Kom igång med programmering
Kom igång med programmeringKom igång med programmering
Kom igång med programmeringLisaKodcentrum
 
Dark Matter, Physical Science Lesson PowerPoint
Dark Matter, Physical Science Lesson PowerPointDark Matter, Physical Science Lesson PowerPoint
Dark Matter, Physical Science Lesson PowerPointwww.sciencepowerpoint.com
 
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...Michael Edson
 
Dark matter and dark energy
Dark matter and dark energyDark matter and dark energy
Dark matter and dark energyAdnan Anwer
 
Experimental Searches for Dark Matter
Experimental Searches for Dark MatterExperimental Searches for Dark Matter
Experimental Searches for Dark MatterMorgan Catha
 
Dark Energy And Dark Matter
Dark Energy And Dark MatterDark Energy And Dark Matter
Dark Energy And Dark MatterAllie H.
 
Insights into Dark Matter
Insights into Dark MatterInsights into Dark Matter
Insights into Dark MatterKatie Mack
 
Scratch in the Classroom
Scratch in the ClassroomScratch in the Classroom
Scratch in the ClassroomDarrel Branson
 
Mystery of Dark Matter is solved!
Mystery of Dark Matter is solved!Mystery of Dark Matter is solved!
Mystery of Dark Matter is solved!Harri Carlson
 
Dark Matter and Dark Energy
Dark Matter and Dark EnergyDark Matter and Dark Energy
Dark Matter and Dark EnergyBryan Higgs
 
C Graphics Functions
C Graphics FunctionsC Graphics Functions
C Graphics FunctionsSHAKOOR AB
 

En vedette (19)

Scratch programmering länktips
Scratch programmering länktipsScratch programmering länktips
Scratch programmering länktips
 
FL2011: Ikt i matematikundervisningen, helena kvarnsell
FL2011: Ikt i matematikundervisningen, helena kvarnsellFL2011: Ikt i matematikundervisningen, helena kvarnsell
FL2011: Ikt i matematikundervisningen, helena kvarnsell
 
Modern kosmologi
Modern kosmologiModern kosmologi
Modern kosmologi
 
Matte år 2014
Matte år 2014Matte år 2014
Matte år 2014
 
What's Supersymmetry?
What's Supersymmetry?What's Supersymmetry?
What's Supersymmetry?
 
Nytt av gammalt
Nytt av gammaltNytt av gammalt
Nytt av gammalt
 
Kom igång med programmering
Kom igång med programmeringKom igång med programmering
Kom igång med programmering
 
Dark Matter, Physical Science Lesson PowerPoint
Dark Matter, Physical Science Lesson PowerPointDark Matter, Physical Science Lesson PowerPoint
Dark Matter, Physical Science Lesson PowerPoint
 
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
Dark Matter - - the dark matter of the internet is open, social, peer-to-peer...
 
Dark matter and dark energy
Dark matter and dark energyDark matter and dark energy
Dark matter and dark energy
 
Experimental Searches for Dark Matter
Experimental Searches for Dark MatterExperimental Searches for Dark Matter
Experimental Searches for Dark Matter
 
Dark matter
Dark matterDark matter
Dark matter
 
Dark Energy And Dark Matter
Dark Energy And Dark MatterDark Energy And Dark Matter
Dark Energy And Dark Matter
 
Insights into Dark Matter
Insights into Dark MatterInsights into Dark Matter
Insights into Dark Matter
 
Universum
UniversumUniversum
Universum
 
Scratch in the Classroom
Scratch in the ClassroomScratch in the Classroom
Scratch in the Classroom
 
Mystery of Dark Matter is solved!
Mystery of Dark Matter is solved!Mystery of Dark Matter is solved!
Mystery of Dark Matter is solved!
 
Dark Matter and Dark Energy
Dark Matter and Dark EnergyDark Matter and Dark Energy
Dark Matter and Dark Energy
 
C Graphics Functions
C Graphics FunctionsC Graphics Functions
C Graphics Functions
 

Similaire à Mini Scratch Unit

introduction to programming using scratch.ppt
introduction to programming using scratch.pptintroduction to programming using scratch.ppt
introduction to programming using scratch.pptLamini Harunah
 
Raspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing WorkshopRaspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing WorkshopRachel Wang
 
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docxLabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docxDIPESH30
 
Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!olracoatalub
 
1.5 branching and subroutines
1.5   branching and subroutines1.5   branching and subroutines
1.5 branching and subroutinesallenbailey
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basicsom_nangia
 
Mark asoi ppt
Mark asoi pptMark asoi ppt
Mark asoi pptmark-asoi
 
Advanced java script essentials v1
Advanced java script essentials v1Advanced java script essentials v1
Advanced java script essentials v1ASHUTOSHPATKAR1
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3dDao Tung
 
My summary for cs001x computer science for beginners
My summary for cs001x computer science for beginnersMy summary for cs001x computer science for beginners
My summary for cs001x computer science for beginnersIbrahim Omar
 
Class #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyClass #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyAngela DeHart
 
Fundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinaFundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinarurumedina
 

Similaire à Mini Scratch Unit (20)

introduction to programming using scratch.ppt
introduction to programming using scratch.pptintroduction to programming using scratch.ppt
introduction to programming using scratch.ppt
 
Day 1( magic camp)(1)
Day 1( magic camp)(1)Day 1( magic camp)(1)
Day 1( magic camp)(1)
 
scratch.pptx
scratch.pptxscratch.pptx
scratch.pptx
 
Raspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing WorkshopRaspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing Workshop
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
 
Scratch Syntax 2 Cmp
Scratch Syntax 2 CmpScratch Syntax 2 Cmp
Scratch Syntax 2 Cmp
 
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docxLabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
 
Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!Yeahhhh the final requirement!!!
Yeahhhh the final requirement!!!
 
1.5 branching and subroutines
1.5   branching and subroutines1.5   branching and subroutines
1.5 branching and subroutines
 
My final requirement
My final requirementMy final requirement
My final requirement
 
Introducing small basic
Introducing small basicIntroducing small basic
Introducing small basic
 
Mark asoi ppt
Mark asoi pptMark asoi ppt
Mark asoi ppt
 
Scratch2
Scratch2Scratch2
Scratch2
 
Advanced java script essentials v1
Advanced java script essentials v1Advanced java script essentials v1
Advanced java script essentials v1
 
Lab a
Lab aLab a
Lab a
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
 
My summary for cs001x computer science for beginners
My summary for cs001x computer science for beginnersMy summary for cs001x computer science for beginners
My summary for cs001x computer science for beginners
 
Class #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyClass #1: Blocks and Vocabulary
Class #1: Blocks and Vocabulary
 
Fundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medinaFundamentals of prog. by rubferd medina
Fundamentals of prog. by rubferd medina
 
Switch case looping
Switch case loopingSwitch case looping
Switch case looping
 

Plus de Patrick Woessner

Digital fabrication for k 12 education
Digital fabrication for k 12 educationDigital fabrication for k 12 education
Digital fabrication for k 12 educationPatrick Woessner
 
An Urban Adventure in Project-Based Learning
An Urban Adventure in Project-Based LearningAn Urban Adventure in Project-Based Learning
An Urban Adventure in Project-Based LearningPatrick Woessner
 
Passion Based Learning: Lausanne 2012
Passion Based Learning: Lausanne 2012Passion Based Learning: Lausanne 2012
Passion Based Learning: Lausanne 2012Patrick Woessner
 
Passion-Based Learning ISACS Workshop
Passion-Based Learning ISACS WorkshopPassion-Based Learning ISACS Workshop
Passion-Based Learning ISACS WorkshopPatrick Woessner
 
7th grade presentation cite2
7th grade presentation  cite27th grade presentation  cite2
7th grade presentation cite2Patrick Woessner
 
7th grade presentation cite1
7th grade presentation  cite17th grade presentation  cite1
7th grade presentation cite1Patrick Woessner
 
Passion-Based Learning Workshop
Passion-Based Learning WorkshopPassion-Based Learning Workshop
Passion-Based Learning WorkshopPatrick Woessner
 
Collaboration in the Digital Age
Collaboration in the Digital AgeCollaboration in the Digital Age
Collaboration in the Digital AgePatrick Woessner
 
Social bookmarking with delicious
Social bookmarking with deliciousSocial bookmarking with delicious
Social bookmarking with deliciousPatrick Woessner
 
Wikis in the K12 Classroom
Wikis in the K12 ClassroomWikis in the K12 Classroom
Wikis in the K12 ClassroomPatrick Woessner
 

Plus de Patrick Woessner (20)

Digital fabrication for k 12 education
Digital fabrication for k 12 educationDigital fabrication for k 12 education
Digital fabrication for k 12 education
 
An Urban Adventure in Project-Based Learning
An Urban Adventure in Project-Based LearningAn Urban Adventure in Project-Based Learning
An Urban Adventure in Project-Based Learning
 
Managing Google Apps
Managing Google AppsManaging Google Apps
Managing Google Apps
 
Passion Based Learning: Lausanne 2012
Passion Based Learning: Lausanne 2012Passion Based Learning: Lausanne 2012
Passion Based Learning: Lausanne 2012
 
Intro to Systems Thinking
Intro to Systems ThinkingIntro to Systems Thinking
Intro to Systems Thinking
 
Passion-Based Learning ISACS Workshop
Passion-Based Learning ISACS WorkshopPassion-Based Learning ISACS Workshop
Passion-Based Learning ISACS Workshop
 
7th grade presentation cite2
7th grade presentation  cite27th grade presentation  cite2
7th grade presentation cite2
 
7th grade presentation cite1
7th grade presentation  cite17th grade presentation  cite1
7th grade presentation cite1
 
Passion-Based Learning Workshop
Passion-Based Learning WorkshopPassion-Based Learning Workshop
Passion-Based Learning Workshop
 
Collaboration in the Digital Age
Collaboration in the Digital AgeCollaboration in the Digital Age
Collaboration in the Digital Age
 
Social bookmarking with delicious
Social bookmarking with deliciousSocial bookmarking with delicious
Social bookmarking with delicious
 
Wikis in the K12 Classroom
Wikis in the K12 ClassroomWikis in the K12 Classroom
Wikis in the K12 Classroom
 
Tech Sci Classroom
Tech Sci ClassroomTech Sci Classroom
Tech Sci Classroom
 
Citizenship Digital Age
Citizenship Digital AgeCitizenship Digital Age
Citizenship Digital Age
 
Intro To Programming Cmp
Intro To Programming CmpIntro To Programming Cmp
Intro To Programming Cmp
 
Think Before You Post
Think Before You PostThink Before You Post
Think Before You Post
 
Web Eval Form
Web Eval FormWeb Eval Form
Web Eval Form
 
Website Evaluation 2009
Website Evaluation 2009Website Evaluation 2009
Website Evaluation 2009
 
K12 9-26 LAN Party
K12 9-26 LAN PartyK12 9-26 LAN Party
K12 9-26 LAN Party
 
Flat Class Workshop
Flat Class WorkshopFlat Class Workshop
Flat Class Workshop
 

Dernier

Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 

Dernier (20)

Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 

Mini Scratch Unit

  • 2. Computer Programming?  What is programming?  The process of writing, testing, and maintaining the source code of computer programs.  Telling the computer what to do  Why learn to program?  Develops logic and problem-solving skills  Improves attention to detail  It’s fun!
  • 3. But I’m Not a Geek!  Until recently, programming required knowledge of computer language syntax
  • 4. Anyone Can Program!  New tools, like Scratch, allow ANYONE to create computer programs without learning complicated syntax.
  • 5. Programming with Scratch  Open Scratch from either the desktop icon or Start Menu
  • 6.
  • 7. Homework  Make sure you have the latest version of Scratch installed on your Tablet PC  Finish working through the Scratch Getting Started Guide  Feel free to experiment and explore!
  • 8. Scratch Syntax: Part 1 Algebra-Geometry
  • 9. 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.
  • 10. Boolean Expressions  Sometimes, you only want a statement to be executed under certain conditions. Such conditions are defined in terms of Boolean expressions.  In programming, a Boolean expression is an expression that is either true or false. In Scratch, any block shaped like an elongated diamond is a Boolean expression.
  • 11. Boolean Expressions  One such block is: After all, it is either true that the mouse button is down or it is false.  Another such block is: After all, it is either true that some number is less than another number or it is false.  With Boolean expressions can we construct conditions.
  • 12. 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.
  • 13. Conditions  If Construct: Instruct a sprite to say hello only if, say, the user has depressed the mouse button:  If-Else Construct: Instruct a sprite to say hello or goodbye, depending on whether the user has depressed the mouse button:
  • 14. Conditions  When Construct: Instruct a sprite to do something when an event occurs:  When Construct: Instruct a sprite to wait to do something until a condition is true:
  • 15. 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.
  • 17. 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.
  • 18. Scratch Syntax: Part 2 Algebra-Geometry
  • 19. Variables  In programming, a variable is a placeholder for some value, much like x and y are popular variables in algebra.  In Scratch, variables are represented with blocks shaped like elongated circles, uniquely labeled by you.
  • 20. Threads  In programming, a thread is like a mini- program within a program that can execute at the same time as other threads.  In Scratch, any block whose label begins with "when" essentially demarks the start of a thread.
  • 21. Events  An event is a signal from one thread to another.  Blocks whose labels begin with "broadcast" signal events whereas blocks whose labels begin with "when" handle events.
  • 22. Pac Man and Pong  Games like Pac Man use Threads  A Variable could be added to Pong
  • 23. Homework  Complete the Tweak a Game Project  Remember that the video tutorials can be very helpful  Completed projects need to be submitted via Interact by the due date. Don’t forget to include your brief written summary!
  • 24. Scratch Syntax: Your First Game Algebra-Geometry
  • 25. Adding a Level  Levels can be added using threads and events.
  • 28. Homework  Complete the Your First Game Project  You may wish to use the Copter Game and Levels program as resources  Completed projects need to be submitted via Interact by the due date.