Intro to Programming Algebra-Geometry. Computer Programming? What is programming? The process of writing, testing, and maintaining the source code of.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Decision Structures - If / Else If / Else. Decisions Often we need to make decisions based on information that we receive. Often we need to make decisions.
Introduction to Macromedia Director 8.5 – Lingo
30 min Scratch July min intro to Scratch A Quick-and-Dirty approach Leaving lots of exploration for the future. (5 hour lesson plan available)
Events Chapter 7. Interactive Real world is interactive User determines order of actions instead of programmer.
CHAPTER 5: Repetition Control Structure. Objectives  To develop algorithms that use DOWHILE and REPEAT.. UNTIL structures  Introduce a pseudocode for.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Programming Concept #2 Iteration. Is just a fancy way of saying that you would like something to repeat more than one time. It is used in any modern programming.
CS001 Introduction to Programming Day 3 Sujana Jyothi
Python Magic Select a Lesson: Why Learn to Code? Basic Python Syntax
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Tutorial 4 Decision Making with Control Structures and Statements Section A - Decision Making JavaScript Tutorial 4 -Decision Making with Control.
INTRODUCTION TO SCRATCH. About Me Resources Scratch Website Learn Scratch Washington-Lee Computer.
Simple Python Loops Sec 9-7 Web Design.
index.php Palmyra Area High School 1.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Summer Computing Workshop. Session 4 Loops  At the heart of their functionality, loops enable blocks of code to be executed more than once  Loops represent.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th.
Flow of Control. 2 Control Structures Control structure: An instruction that determines the order in which other instructions in a program are executed.
Programming & Scratch. Programming Learning to program is ultimately about learning to think logically and to approach problems methodically. The building.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
Summer Computing Workshop. Introduction  Boolean Expressions – In programming, a Boolean expression is an expression that is either true or false. In.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Chapter 3: Branching and Program Flow CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
More Python!. Lists, Variables with more than one value Variables can point to more than one value at a time. The simplest way to do this is with a List.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
February 25,  The BDE(Begin-During-End) event.  Worksheet – Exercise # 9 Instructions  2nd Period Test.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
To make a robot operate without constant human interaction, it must know what to do, when to do it, what order to follow, and perhaps even what to do if.
Intro CS – Logic & Operators Lesson Plan 5. Goals  Students can explain basic logical operators  AND, OR, NOT  Students can create truth tables for.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
Computer Science 1000 LOGO II. Boolean Expressions like Excel and Scratch, LOGO supports three Boolean operators less than (
FOP: Multi-Screen Apps
Programming & Scratch.
Scratch for Interactivity
Welcome to Computer Science Jeopardy
Scratch: iteration / repetition / loops
Diamond Hunt Mock Programming Project.
Scratch for Interactivity
Introduction to Object-Oriented Programming
LESSON 11 – WHILE LOOPS UNIT 5 – 1/10/17.
Creativity in Algorithms
Learn… Create… Program
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Learn… Create… Program
Chapter 8: More on the Repetition Structure
Programs as Directions
Learning Objectives Explain how selection is used to change a program output Decompose a problem with inputs to help design a program Describe the use.
Tutorial 10: Programming with javascript
Learn… Create… Program
Learn… Create… Program
Presentation transcript:

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.