Box Variables Prof Paul Curzon Queen Mary, University of London With support from Google, D of.

Slides:



Advertisements
Similar presentations
C.Sc. 110 Computer Science 113: Computer Systems.
Advertisements

Spit-not-so Prof Paul Curzon Queen Mary University of London With support from Google, D of E.
Achieving Examination Success
GCSE COMPUTING Dan Gardner Session Objectives Gain an overview of the Computer Science curriculum at Key Stage 4 (GCSE). Understand.
Common Core State Standards for English Language Arts Grades K-3 Module #7.
Introduction to a Programming Environment
Stress, Depression, and Suicide (YSRP0001) Tutorial 2 (10 March 2010)
Bug Session Two. Session description In this session the use of algorithms is reinforced to help pupils plan out what they will need to program on their.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
Anya Brookman. How to create a new message Unwanted messages Folders Messages you have sent to someone Logging out when you have finished sending.
Mathematics in the new curriculum Framework for Progression in Calculation MERLEY FIRST SCHOOL Pamphill First School Allenbourn Middle School.
Mind Mapping. Tutorial Session Aims: To develop knowledge of Mind Maps as a revision tool in preparation for the exams.
EasyView© for Moodle Presentation by Richard Goddard Project Manager VLE Middleware EasyView.
Home screen of your online tracker system Updates or notes for your attention are placed at the top in red. This will also inform you of the document turnaround.
The Scratch Calculator You are all going to be real computer programmers!!!
C++ / G4MICE Course Session 3 Introduction to Classes Pointers and References Makefiles Standard Template Library.
CC0002NI – Computer Programming Computer Programming Er. Saroj Sharan Regmi Week 7.
Soda Constructor: Exploring the laws of Physics with Computational Thinking Paul Curzon Queen Mary University of London
Introduction to Programming with Java. Overview What are the tools we are using – What is Java? This is the language that you use to write your program.
+ Streaming Participants: Download the documents for the session The documents are on the Math Professional Development Resources page on “The Math Corner”
Enhancing Teaching and Learning with Podcasts Mico e-Learning Workshop.
Primes and Tests for Divisibility Chapter 5 Section 1 By: Tiffany Fey.
Part 4 – Preview/Index, History, combining search sets, Accessing full text articles and restricting results to the HINARI subset of journals. Instructions.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 6: Variables and constants.
> 1 Diagrams in Word Faculty of Health Alan Grace.
By the end of this session you should be able to...
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
How to read a scientific paper
“Investigate a National Park or coastal resort as a tourist destination." (This will be your aim)
Make-a-face Prof Paul Curzon Queen Mary, University of London With support from Google, D of.
Hat’s ebatable!. Instructions for making the Debatable foldable Project Description: Getting students to see the two sides of each issue is a challenging.
Programming for GCSE Topic 4.2: Faults and Debugging T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
Guy Downes © IAP2 The Australasian Conference for Public Participation Visual report – Day 1 20 th October 2011
Hexahexaflexagon Automata Paul Curzon Queen Mary University of London With support from Google,
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
Explorers need maps: Abstraction, representations and graphs Paul Curzon Queen Mary University of London
In this document I will explain what attachments are, why attachments are useful and a screen shot of the following showing how to add attachments.
The Imp Computer Prof Paul Curzon Queen Mary, University of London With support from Google,
How the Session Works Outline Practical on arrival Talk 1 Reflect on practical Clarify concepts Practical exercises at your own pace Talk 2: Further concepts.
Change Blindness Presentation: Paul Curzon Change Blindness: Milan Verma & Peter McOwan, Queen.
Week 12 Methods for passing actual parameters to formal parameters.
Module 7: Constructors #1 2000/2001Scientific Computing in OOCourse code 3C59 Module 7: Constructors and Destructors: In this module we will cover: Constructors.
How to Write an Effective Five Paragraph Persuasive Essay Yvonne Smith IDT Click here to get started.
…empowering communities through modeling and adaptive management Sustaining Ecological Communities Through Citizen Science and Online Collaboration.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
ILearn: Using Microsoft Word to Organize Our Research Subject: Social Studies (E.4) Session 4 of 8.
Design and Technology Yr 7&8 ICT Pizza Box Design.
Maths workshop Times tables
Different Kinds of Microscopes. 12/16/14 Evidence #2: Virtual Microscope Lab Observations: Key Question: Explain how to use and focus a microscope. Initial.
Memory Management.
GC101 Introduction to computers and programs
Parent Maths Workshop Alne Primary School
Abstract Classes and Inheritence Operator over-loading
Punch Card Sorting: Binary Radix Sort
Teaching KS3 Computing Session 4 Theory: Boolean logic AND/OR/NOT
Bubble Sort Paul Curzon
Consistency In Design By Kilye Tran
Mergesort: The power of divide and conquer
To Get Started Paper sheet
CS190/295 Programming in Python for Life Sciences: Lecture 1
Strategies for Multiplication
The intelligent piece of paper: so what is an algorithm?
Lesson 2 Programming constructs – Algorithms – Scratch – Variables Intro.
Bakuro: Binary Logical Thinking Puzzles
The SwapPuzzle So what is an algorithm?
Teach A-Level Computer Science: Object-Oriented Programming in Python
Sodarace: Exploring Evolution with Computational Thinking
Queen Mary University of London
Introduction In today’s lesson we will look at: why Python?
Running & Testing Programs :: Translators
Presentation transcript:

Box Variables Prof Paul Curzon Queen Mary, University of London With support from Google, D of E and the Mayor of London

Aims Give you deeper understanding of core topics –Getting started programming –Variables: declaration and initialisation –Assignment –Sequencing and flow of control Give you practical ways to teach computing in a fun, thought provoking way –away from computers, focus on concepts Linked activity sheets and booklets can be downloaded from our website:

Variables and assignment One of the first big hurdles students face when learning to program is understanding how variables and assignment work. If they do not understand this they will not get any further. It is very easy to misunderstand! It is very easy to fix!

Running programs physically A really good way to build a deep understanding of programming constructs is to act out the program Compile the program on to people! They follow the instructions Makes abstract ideas visible and tangible

Variables as boxes Variables are like storage boxes Special ones that can –Store –Create –Destroy

A swap program What does this (python) program do? colour1 = “red” colour2 = “green” temp = colour1 colour1 = colour2 colour2 = temp Let’s act it out!

Main points The main points this activity illustrates are: Variables have names –so the computer knows which one is meant. Variables hold values – the actual data that is being stored. Do not confuse variable names with their values! A variable can only store one value at a time. When accessing a variable’s value you make a copy –that variable’s value is untouched. When you store a value in a variable you destroy anything that was previously there.

Is this a swap program? What does this program do? colour1 = “red” colour2 = “green” colour1 = colour2 colour2 = colour1

Paper dry run As a follow up exercise dry run simple programs on paper Make sure everyone understands Fix anything anyone has misunderstood

Faulty mental models(1) Watch out for the following common misunderstandings: X a variable still holds its original value after an assignment, X assignment works by copying left to right, X a sequence of assignments all happen together X a sequence of assignments can happen in any order

Faulty mental models(2) Watch out for the following common misunderstandings: X both left hand side and right hand side change X assignment is like a mathematical equality just making both sides the same X after an assignment future changes to one variable change the other X variable can hold all the values ever assigned to it

Summary Variables and assignment are key early topics Important to –get the mental model right –fix if not! Programming can be introduced in fun ways away from a computer

More support On our website to support this session: Activity sheets Story sheets Slides Details of more worskshops/courses free unplugged sessions subsidised courses (e.g. GCSE programming)

Thank you! Together we are Teaching London Computing