 Review  Created our own motion block called “draw square”  Used script to create a square with side lengths of 100 steps.

Slides:



Advertisements
Similar presentations
1a)I can identify the hypothesis and the conclusion of a conditional 1b)I can determine if a conditional is true or false 1c)I can write the converse of.
Advertisements

GAME:IT Junior Learning Game Maker: The Control Tab.
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Mr. Wortzman INTRO. TO COMPUTER SCIENCE. UNIT 1 – CUSTOM BLOCKS.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Chapter 7 Creating Graphics. Chapter Objectives Use the Pen tool Reshape frames and apply stroke effects Work with polygons and compound paths Work with.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
1 An introduction to programming concepts with Scratch.
1 Excel Lesson 3 Using Formulas and Functions Microsoft Office 2010 Fundamentals Story / Walls.
Extending the Pong Example Barb Ericson Georgia Tech June 2011.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
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.
The Pythagorean Theorem
Find the area of each square. How do you find the area of each square? Area may be found by either counting the number of units or multiply length of.
Section 3 Calculations National 4/5 Scratch Course.
Chapter 7 review Number 73 This method shows how to find the direction by adding the vector. You will use the laws of sines and cosines. To view this show,
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
 Make sure you are subscribed to announcements on Moodle.  Activity 4 will be due 48hrs after your lab ends.
Scratch Programming Lesson 2 First glance to programming logic.
Summer Computing Workshop. Introduction  Boolean Expressions – In programming, a Boolean expression is an expression that is either true or false. In.
Section 1 Introduction National 4/5 Scratch Course.
 There are times when you will want blocks to repeat. Instead of duplicating blocks and ending up with a long script that might be confusing, there.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Mathematical Foursomes AIM: You will be shown 4 words, one at a time. You must guess which mathematical word they are connected to. The sooner you guess,
Algorithms Writing instructions in the order they should execute.
Square Root vocab. And Square Root Notes absent copy Monday 5/5
Inequalities. SymbolMeaning Greater Than =Equal Greater Than or Equal To.
CONTROL FLOW The order in which blocks are executed is called the “control flow” of the script So far all our scripts have just executed blocks in the.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Summer Computing Workshop. Session 3 Conditional Branching  Conditional branching is used to alter the normal flow of execution depending on the value.
Scratch Another computer programming language Developed by MIT in 2003
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Digital Art in Scratch part 2 Barb Ericson Georgia Tech Nov 2010.
CS 104 – Fall 2011 Exploring Computer Science Build Your Own Blocks September 19, 2011.
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
Computer Programming Modeling a Passive Solar Home.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Drawing in Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Using MIT Scratch for Programming and Control Programming 9.
Functions / Blocks.
Module 2: Investigation 2
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
Scratch – Simple Programming
Translations.
Exploring Computer Science Lesson 4-10 – Part 1
ECS 9/7/17.
Intro to CS Monday, August 29
Subject knowledge, what is it good for?
Intro to CS Monday, August 24
Scratch for Interactivity
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Introduction to TouchDevelop
Looping Topic 4.
Lesson 3.2 Review: Identifying concepts
Symmetry in Circles Isosceles triangles have two equal sides and two equal angles. e° f° b° 30° n° e = (180 – 30)°  2 m° a° 70° = 75° 110° a = 70°
All About Shapes! Let’s Go!.
Unit 9. Day 17..
Similar Triangles Review
Creating a Simple Game in Scratch
Prove that the interior angles of a triangle have a sum of 180º
2 Making Blocks.
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

 Review  Created our own motion block called “draw square”  Used script to create a square with side lengths of 100 steps

 Created a motion block, that allows us to move a sprite in a 100 step square whenever this block is applied to the script  We will edit the block to accept an argument (or input), which tells it the length of the square it has to draw.  Right-click on the block and open block editor.

 Notice the “+” surrounding the draw square text on the block  Allows us to enter another component  Create size input and copy by dragging

 Using knowledge of “draw square” motion block…create a “draw triangle” › How many repeats? › What angle?  Edit block to have size argument

 Create a motion block that will draw any shape  Name block “draw shape sides size”  Have two arguments › Side › Size  Use operator block for angle

 Reporter block – reports a value  We will make a block called “max” that takes two numbers as input and reports the bigger value (the maximum)  Notice the shape of this block, it has smooth edges and differs from the puzzle piece look of command blocks

 How could we compute the max of 3 values?

 You can create inputs in blocks by clicking on the plus signs to add an input; however, you can also type the names of the input by incorporating a %.  The percent signs (%) indicate that the word should be an input.  Practice doing this both manually and with a %

 A predicate is a block that reports either true or false.  Notice the difference in shape of a predicate block, it is neither smooth or puzzle piece shaped, but has pointed sides.  Lets create our own predicate block, “Greater than or equal to”

 Normal/Global Variables: Can be used anywhere and by any in block, script, and sprite › Ex. “score” variable  Sprite Specific Variables: Normal variables that are applied to sprites individually, not good for block use  Script Variables: For use inside a script

 In this activity you will draw this brick wall  See Moodle link for full description