Introduction to Scratch

Similar documents
SCRATCH MODULE 3: NUMBER CONVERSIONS

In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Athletics Swimming Gymnastics

Making a maze with Scratch

Unit 9 Tech savvy? Tech support. 1 I have no idea why... Lesson A. A Unscramble the questions. Do you know which battery I should buy?

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting

The Stack, Free Store, and Global Namespace

Exercise 6 - Addressing a Message

TABLE OF CONTENTS INTRODUCTION

Introduction to Scratch Programming v1.4 (Second Ed) Lesson 6 Calculator

Instructions for Casual and Relief Staff

GGCS Introduction to Windows 10 Part 4: Cortana and the Mail, Calendar, People and OneNote apps

CHAPTER 18: CLIENT COMMUNICATION

SPRITES Moving Two At the Same Using Game State

TABLE OF CONTENTS CHANGES IN 2.0 FROM 1.O

def F a c t o r i a l ( n ) : i f n == 1 : return 1 else : return n F a c t o r i a l ( n 1) def main ( ) : print ( F a c t o r i a l ( 4 ) )

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction

Getting started with social media and comping

ONLINE REGISTRATION: A STEP-BY-STEP GUIDE

In today s video I'm going show you how you can set up your own online business using marketing and affiliate marketing.

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction

Scratch Lesson 2: Movies Made From Scratch Lesson Framework

Computing Curriculum

Reviewers: Approval Date: REF No:

QUICK EXCEL TUTORIAL. The Very Basics

Writing. By: Sohail Ahmed M.A English Literature

Outpatient Quality Reporting Program

Excel Basics: Working with Spreadsheets

Math Dr. Miller - Constructing in Sketchpad (tm) - Due via by Friday, Mar. 18, 2016

Creating An Account With Outlook

Java Programming Fundamentals - Day Instructor: Jason Yoon Website:

You can delete the default blank background by clicking on its Delete button.

APPM 2460 Matlab Basics

Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Crossley Fields - Computing Vocabulary

How to Improve Your Campaign Conversion Rates

Excel Basics Fall 2016

File Upload Instructions Customer Access To Transcript Bulletin Publishing s FTP Site

Eastside Literacy Tutor Support Word Processing Tutorial

Advanced Excel Charts : Tables : Pivots

Touring the Mac. S e s s i o n 3 : U S E A N APPLICATION

Notebook Assignments

Hands-On BassetPro. Asset Verification Procedure. 1. Installing BassetPro on Your PC and Workabout

Measuring in Pixels with Scratch

Build a balloon pop game!

Setup Instructions for Upgrading the Windows XP Panasonic CF-19 Toughbook to Windows 7

CMPT 120 Basics of Python. Summer 2012 Instructor: Hassan Khosravi

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING

Installing a Custom AutoCAD Toolbar (CUI interface)

Crowdfunding Templates Samples (customize to fit your own project)

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Amyyon customers can t wait to get their hands on it s new application, developed in Uniface.

Introduction to Spreadsheets Part 1. The Quick and Easy guide to using Openoffice Calc

SCRATCH. Introduction to creative computing with Scratch 2.0

Introduction to Spreadsheets

Try typing the following in the Python shell and press return after each calculation. Write the answer the program displays next to the sums below.

Welcome Back! Without further delay, let s get started! First Things First. If you haven t done it already, download Turbo Lister from ebay.

We ve been playing The Game of Life for several weeks now. You have had lots of practice making budgets, and managing income and expenses and savings.

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...

COMP : Practical 9 ActionScript: Text and Input

Teach Yourself Microsoft Office Access Topic 2: Getting Started with Microsoft Access

MITOCW watch?v=0jljzrnhwoi

Intro. Scheme Basics. scm> 5 5. scm>

The Environment. Scratch Programming. The Environment. The Environment. The Environment. The Environment. Lesson 1: Introduction THE STAGE

All Blocks of Scratch

Unit 29. Installing and Upgrading Software Level 3

Cmpt 101 Lab 1 - Outline

Aesop QuickStart Guide for Substitutes

the rules The Goal Get all three of your monkeys around the board and into the Banana Grove before anyone else can!

TheBrain Pro Companion Guide for TeamBrain Services

BCSWomen Android programming (with AppInventor) Family fun day World record attempt

Usability Test Report: Tool for Books & More Bento Box 1

Python for Non-programmers

Welcome to GoalEnforcer

Pilot document v1 Jan Getting Started with Smart Fleet

S3 Scratch Programming

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

CS 177 Recitation. Week 1 Intro to Java

Boolean Expressions. Is Equal and Is Not Equal

Signing up for My Lahey Chart

Aesop QuickStart Guide for Substitutes

Boolean Expressions. Is Equal and Is Not Equal

AppyBuilder Beginner Tutorials

How to connect to a Wi-Fi or Wireless Network

#2 Madlibs. Print out a story using the five variables into a text box. Make a procedure called madlibs that works with a Main and a Start procedure.

15 Graph Theory Counting the Number of Relations. 2. onto (surjective).

106A assignment review #4. 13 Feb :30p-6:30p.! Miles Seiver

Mechanical Turk and AWS Workshop

Chapter 1 Operations With Numbers

Getting Started with Silo

Term Definition Introduced in: This option, located within the View tab, provides a variety of options to choose when sorting and grouping Arrangement

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Quick Reference Tables

RACKET BASICS, ORDER OF EVALUATION, RECURSION 1

STEP ACTIONS: STEP TOWARDS AND STEP AVOIDING

In this project, you will create a showcase of your HTML projects and learn about links and embedding resources.

Managing Groups Using InFellowship. A guide for Small Group Leaders

Edsel Ford High School

Transcription:

Introduction to Scratch

Familiarising yourself with Scratch The Stage Sprites Scripts Area Sequence of Instructions Instructions and Controls

If a computer is a box think of a program as a man inside the box!

Tell me what to do and I will do it!! and programming is all about instructing the man to do what you want!

The man in the computer (program) thinks just like a human. If we taught the man how to have a conversation with the computer user, what would be the first thing we would tell him to do?

Inputs Storage Process Output Conversations start with a question. In other words the man in the computer might ask the user for some information (INPUT). Example: What is your name? The user would then type IN their name! INPUT What is your name?

Inputs Storage Process Output Then the man in the computer will store the answer in its brain (STORAGE) and think about how to respond (PROCESS). 1. Remember the answer (STORE IT) 2. Think about how to respond (Process)

Inputs Storage Process Output The man in the computer would finally respond (OUTPUT). Example: So, your name is BOB! What a great name! The computer would display this on the screen (OUTPUT). OUTPUT

Inputs Storage Process Output All programs work in this way Think of a word processor: INPUT STORAGE/PROCESS OUTPUT 1. Users can press a letter on a keyboard (input) 2. The computer stores this event and decide how to respond (storage/process) 3. And then display the letter on the screen (output)

Inputs Storage Process Output The ASK script asks the user to enter (input) a value into scratch?

Inputs Storage Process Output What do you get when you ask a question? ANSWER! Once you have inputted a value into scratch it is stored in a variable called answer. This is what the script looks like

Storage What is a variable? In programming, a variable can be thought of as a storage box. The box may be given a name, and it may hold various different things. In scratch, is the name of the variable, and it will store whatever you type into scratch. Variable called ANSWER Contents is anything we type in

Inputs Storage Outputs Which of the following scripts do you think will help us output a value onto the screen?

The Join Script We can also join words and the ANSWER together to create sentences:

Moving your Sprite In programming, things always happen in a set order a sequence. Sequences are first written as a flow chart and then programmed in a game. If we want to move a sprite left the following sequence would have to occur: Press right arrow key Sprite faces to the right Sprite moves a step to the right In Scratch, we program the sprite like this:

Inputs, Outputs, Variables and Decisions

Inputs Storage Process Output In Scratch, which of the following scripts will help us program the man (inside the computer) to demand an input from a user?

Inputs Storage Process Output The ASK script asks the user to enter (input) a value into scratch?

Inputs Storage Process Output What do you get when you ask a questions? ANSWER! Once you have inputted a value into scratch it is stored in a variable called answer. This is what the script looks like

Storage What is a variable? In programming, a variable can be thought of as a storage box. The box may be given a name, and it may hold various different things. In scratch, is the name of the variable, and it will store what ever you type into scratch. Variable called ANSWER Contents is anything we type in

Inputs Storage Process Output Which of the following scripts do you think will help us program the man (inside the computer) to output a value onto the screen?

Summary INPUT SCRIPTS: STORAGE SCRIPTS: OUTPUT SCRIPTS: The join script is a nice extra to combine set text with the user s text to form sentences when outputting to the screen

Inputs Storage Process Output IF statements are how programs make decisions (process data). IF this occurs, I will do this ELSE, I will do that IF ELSE statements allow programs to make decisions based on certain conditions occurring.

What s going on here? Program asks the user to input a number from 1 to 3 Program stores their input in the variable called answer IF answer contains 1, the program will display a message IF answer contains 2, the program will display a different message IF answer contains 3, the program will display a different message

Inputs, Outputs, Variables and Decisions You are all going to be real computer programmers!!!

Today We will create a simple calculator in scratch which will add two numbers together and display the result 2 5

So how can we get our sprite to do the following? Ask for a number? Store the number? Ask for another number? Store the number? First issue: Scratch only has one variable (storage box) answer. Scratch can therefore only store one number!? Display their Sum We need 2!! Number 1 Number 2

Storage What is a variable? In programming, a variable can be thought of as a storage box. The box may be given a name, and it may hold various different things. In scratch, is the name of a ready made variable, and it will store what ever you type into scratch. Variable called ANSWER Contents is anything we type in

So how can we get our sprite to do the following? Ask for a number? Store the number? Ask for another number? Store the number? Display their Sum