Scratch – Simple Programming

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

A spreadsheet is an application which allows you to calculate many simple or complex figures You can create this figures by using formulas; this helps.
Introduction to Spreadsheets. Learning Target I can input data and do simple calculations in a spreadsheet.
Civil Service Retirement System (CSRS) Eligibility Requirements: AgeYears Optional Early Optional/Discontinued Service5020 Any Age25 DisabilityAny.
Secrets of Mental Math By: Katie Blumenstock. Calculations that are either done mentally or with pencil or paper. They are tricks to solve what looks.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
WHAT DO SMARTER QUESTIONS LOOK LIKE? COMPUTER ADAPTIVE TEST: ENGLISH.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech June 2011.
School. Answers to School Questions Question 7th grade Brediceanu 7th grade School No 2 5th grade School no 2 How many years of compulsory education do.
The Scratch Calculator You are all going to be real computer programmers!!!
Intro to Animation Lesson 1 & 2 Unit 14 – Animation
Section 3 Calculations National 4/5 Scratch Course.
Timers Exploring Computer Science Lesson Objectives The students will be able to: Create a timer.
Scratch – Simple Programming
Databases – Part 1 Databases– Part 1 Lesson 7 & 8.
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.
Unit 10 – Web Authoring Web Authoring – Qatar Tourism Lesson 5 & 6.
ESafety Lesson 1 – Intro to eSafety Unit 1 – eSafety
Databases – Part 1 Databases– Part 1 Lesson 5 & 6.
Mechanical Engineering
Scratch Programming Lesson 4 Question asking and answering.
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.
Scratch Dialogues Exploring Computer Science – Lesson 4-3.
Salary Calculator. Design a page like the following.
Unit 2 – Spreadsheets Spreadsheets - Project Computer Shop.
INTRODUCTION TO PROGRAMMING. Program Development Life Cycle The program development life cycle is a model that describes the stages involved in a program.
Databases – Part 2 Databases– Part 2 Lesson 5 & 6.
ESafety Lesson 1 – Intro to eSafety
Games Design. Last Week We were enjoying the sun and surf :~)
CS 101 – Oct. 7 Solving simple problems: create algorithm Structure of solution –Sequence of steps (1,2,3….) –Sometimes we need to make a choice –Sometimes.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Programming Simple Programming If and Nested Statements.
Unit 8 – Spreadsheets Part 2 Spreadsheets Skills Lesson Part 1.
Unit 9 – Google Sketch up Google Sketch up – Intro Lesson 1 & 2.
CIS 115 AID Peer Educator/cis115aid.com FOR MORE CLASSES VISIT
Unit 2 – Spreadsheets Spreadsheets If Statements.
Databases – Part 1 Databases– Part 1 Lesson 3 & 4.
K-6 Critical Areas of Focus K-6 Key Fluencies Kindergarten – Critical Areas of Focus.
Unit 9 – Google Sketch up Google Sketch up – School Design Lesson 3 & 4.
Programming Simple Programming Variables.
Madlib-Input, Strings, and Lists in Scratch
Scratch 7B IT1.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Scratch – Simple Programming
Exploring Computer Science Lesson 4-13
Consecutive Number Equations
Scratch – Simple Programming
Exploring Computer Science Lesson 4-10 – Part 1
Scratch – Simple Programming
Scratch – Simple Programming
Grade one First term Second term Learning unit Learning unit
Explanation of Grades to Numbers
Recap the basics Lesson 1.
And and or…and RANDOMNESS
Lesson Objectives To understand how to make sprites interact
Hour of Code.
Exploring Computer Science Lesson 4-13
An intro to programming concepts with Scratch
Exploring Computer Science Lesson 4-12
Recap the basics Lesson 1.
Prehistory-Middle Ages
Exploring Computer Science Lesson 4-13
Scratch 7B IT1.
Scratch – Game Testing My Game Creation.
Exploring Computer Science Lesson 4-12
Exploring Computer Science Lesson 4-8
Salem Elementary School
Exploring Computer Science Lesson 4-10 – Part 1
Scratch – Simple Programming
Presentation transcript:

Scratch – Simple Programming Variables Extension http://www.yahmad.co.uk/

Unit Overview Objectives Outcomes Time Task 1 Task 2 Task 3 Task 4 Understand why computer programming scripts are used. Understand the use of Variables as place holders for information. Understand the difference between the list and a normal variable. Outcomes Time Task 1 Adding Numbers Task 2 Pupil Age Task 3 Salary Calculator Task 4 List Variables Part 1 Task 5 List Variables Part 2 Task 6 Extension Task http://www.yahmad.co.uk/

Variables Overview Variables are used to store data (Text/Numbers) in scratch and in programming. In the first task three variables are required to store the 1st and 2nd number. The 3rd variable is used to store the sum of the two numbers contained in the variables. Number1 Number2 Total http://www.yahmad.co.uk/

List Variables Overview List variables allows you to type in a number of data into one variable. Data is stored as a list. 1st entry 2nd entry 3Rd entry Names Every time you enter data into the list you can make it either the first or last entry. Selecting Last would be useful if you want to type names in alphabetical order. Maths English Science 1st entry 2nd 3Rd 1st entry 2nd 3Rd 1st entry 2nd 3Rd http://www.yahmad.co.uk/

List Variables Overview Maths + English + Science Total of 1st student grades Total of 2nd student grades Total of 3rd student grades Student1grades Maths + English + Science Totals The data from the student1grades variable is now being stored in the Totals list variable. http://www.yahmad.co.uk/

Task 1 – Adding Numbers You need to create a simple program to calculate two numbers together. You need to create variables to store each number and the total. Your program will have to allow the user to input two different numbers. Variables http://www.yahmad.co.uk/

Task 2 – Pupil Age You need to create a simple program to calculate the total and average age of the pupils in a class (Maximum 3). Variables http://www.yahmad.co.uk/

Task 3 – Salary Calculator (Sprite 1) You need to create a simple program to calculate the total salary for an employee. Your program will include two sprites. The first sprite will work out the weekly salary based on hours worked and hourly rate. Variables http://www.yahmad.co.uk/

Task 3 – Salary Calculator (Sprite 2) The second sprite when clicked will work out the following: Monthly Pay Annual Salary Tax (15% or 0.15) http://www.yahmad.co.uk/

Task 4 - List Variables Part 1 A List variable will store a number of values in one Variable. You need to create a simple program which will store a number of English grades (Maximum 3). The program will total up the grades and work out a class average. Variables http://www.yahmad.co.uk/

Task 5 – List Variables Part 2 You need to create a simple program which will store a number of Maths, English and Science grades for a named pupil. The program will total up the grades and for each student. Repeat based on number of pupils entered http://www.yahmad.co.uk/

Task 5 – List Variables Part 2 This will clear the value of each variable when the green flag is clicked. http://www.yahmad.co.uk/

Can you make your own program containing list and normal variables? Task 6 - Extension Can you make your own program containing list and normal variables? http://www.yahmad.co.uk/

Plenary – Refer to the Lesson Objectives Understand why computer programming scripts are used. Understand the use of Variables as place holders for information. Understand the difference between the list and a normal variable. Plenary Task (Q&A) Peer assess each other scripts. Discuss the levels pupils have achieved for this task. Question: What is the purpose of variables? Question: What is the difference between the list and a normal variable? http://www.yahmad.co.uk/