Programming Simple Programming Variables.

Slides:



Advertisements
Similar presentations
Lesson 6: Boolean and If Statements Computer Science 1 Mr. Bernstein.
Advertisements

The Scratch Calculator You are all going to be real computer programmers!!!
 2004 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
An Introduction to Textual Programming
A Level Computing#BristolMet Session Objectives U2#S6 MUST identify different data types used in programming aka variable types SHOULD describe each data.
Intro to Animation Lesson 1 & 2 Unit 14 – Animation
Lesson 1: Introduction to ABAP OBJECTS Todd A. Boyle, Ph.D. St. Francis Xavier University.
Python Programming Using Variables and input. Objectives We’re learning to make use of if statements to enable code to ask questions. Outcomes Build an.
Section 3 Calculations National 4/5 Scratch Course.
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.
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
Unit 10 – Web Authoring Web Authoring – Qatar Tourism Lesson 5 & 6.
Databases – Part 1 Databases– Part 1 Lesson 5 & 6.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Function Problems. Write Functions Asks users whether the user wants to continue of not, then returns the answer. Takes two integers and returns 1 if.
Python Programming Using Variables and input. Objectives We’re learning to use basic knowledge of variables combined with user input. Outcomes Continue.
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.
UFCEKS-20-2Multimedia Authoring Times Table Quiz.
Multimedia Product Multimedia Product Lesson 3 & 4.
Unit 2 – Spreadsheets Spreadsheets - Project Computer Shop.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Homework Sec. 1.3 # 16, 29, 40, 48, I like to get rid of the fractions by multiplying both sides by the LCD. Then I get all the variables on one.
Creating a mystic meg program A simple program asking the user questions and using their answers to build up a fortune telling in a list.
Databases – Part 2 Databases– Part 2 Lesson 5 & 6.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
UFCFY5-30-1Multimedia Studio Scripting for Interactive Media Times Table Quiz This will contribute towards your online portfolio for this module.
Scratch – Simple Programming
GCSE Computing: Programming GCSE Programming Remembering Python.
Simple “VICO” (“VIPO”) Programs (Variables, Input, Calculating or Processing, Output)
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
Programming Simple Programming If and Nested Statements.
Unit 9 – Google Sketch up Google Sketch up – Intro Lesson 1 & 2.
Unit 2 – Spreadsheets Spreadsheets If Statements.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
Databases – Part 1 Databases– Part 1 Lesson 3 & 4.
Input, Output and Variables GCSE Computer Science – Python.
CIS 115 ALL EXERCISES DEVRY UNIVERSITY (DEVRY)  CIS 115 All Exercises Devry University CIS 115 ALL ILABS DEVRY UNIVERSITY (DEVRY)  CIS 115 All iLabs.
Unit 9 – Google Sketch up Google Sketch up – School Design Lesson 3 & 4.
How Computers Work. Objectives What Explain what a computer is. Identify different input and output devices. Why To understand how computers work. How.
Madlib-Input, Strings, and Lists in Scratch
Scratch 7B IT1.
Scratch – Simple Programming
Consecutive Number Equations
Scratch – Simple Programming
Variables, Expressions, and IO
Basic operations in Matlab
Scratch – Simple Programming
Chapter 7 - JavaScript: Introduction to Scripting
Python I/O.
Use proper case (ie Caps for the beginnings of words)
JavaScript: Introduction to Scripting
Programming In Lesson 3.
Learning Outcomes –Lesson 4
Year 7 Number - Calculations
7 – Variables, Input and Output
Chapter 7 - JavaScript: Introduction to Scripting
Chapter 7 - JavaScript: Introduction to Scripting
What’s the QUESTION? Do Now!
Python 10 Mr. Husch.
Hint idea 2 Split into shorter tasks like this.
Unit 1: Intro Lesson 4: Output.
Scratch – Game Testing My Game Creation.
An Instructional Routine to Read Like a Mathematician
GCSE Computing Mini Assignment.
Chapter 7 - JavaScript: Introduction to Scripting
Scratch 7B IT 1.
Python Creating a calculator.
Scratch – Simple Programming
Presentation transcript:

Programming Simple Programming Variables

Programming Unit Overview Objectives Understand why computer programming scripts are used. Understand the use of Variables as place holders for information. Understand the difference between the string and a integer variable. OutcomesTime Task 1 Using Variables Task 2 Joining variables and Printing Variables Task 3 Adding Numbers Task 4 Employee Pay Task 5 Extension

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

Programming Task 1 – Using Variables 1.You need to create a simple program to enter data into variables. 2.You will be required to print each variable.

Programming Task 2 – Joining variables and Printing Variables 1.You need to create a simple program to enter data into variables 2.You will include the print the variables as part of sentence. Create your own program. User will be prompted to input answers for specific questions into variables. You can ask up to 6 different questions. Print the variables as part of a sentence.

Programming Task 3 – Adding Numbers 1.You need to create a simple program to calculate two numbers together. 2.You need to create variables to store each number and the total. 3.Your program will have to allow the user to input two different numbers. Extension: Multiply the entered numbers and print on separate line.

Programming Task 4 – Employee Pay 1.You will be making a program to work out the employees weekly and monthly pay. 2.You need to include suitable variables including: 1.Name 2.Job Type (part time/fulltime) 3.Hours (per week) 4.Payperhour 5.Weeklypay = Hours * Payperhour 6.Monthlypay = Weeklypay * 4 3.You need to print the following statement: 1.Your name is __________. You are a __________ employee. 2.You have worked _______ hours this week and your pay per hour is _____. 3.Your weekly pay is _______. Your monthly pay is ________.

Programming Task 5 - Extension Can you make your own program containing variables?

Programming Plenary – Refer to the Lesson Objectives 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? Objectives Understand why computer programming scripts are used. Understand the use of Variables as place holders for information. Understand the difference between the string and a integer variable.