Learning Objective LO: We’re learning to understand when it is appropriate to use particular data types.

Slides:



Advertisements
Similar presentations
Why not just use Arrays? Java ArrayLists.
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Week 2: Primitive Data Types 1.  Programming in Java  Everything goes inside a class  The main() method is the starting point for executing instructions.
To type the VB code behind the command button (named cmdPush), Double-Click on the Push Me (caption) command button As a result the Visual Basic Code Window.
Microsoft ® Office Word 2007 Training Mail Merge II: Use the Ribbon and perform a complex mail merge [Your company name] presents:
LO: Learn how to develop your game further to include interactions with the device.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
1 TouchDevelop Chapter 8-10 Presenter: Jing Xu. 2 Outline Interactions Game Board Tiles and Printing.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Slides by Evan Gallagher Fundamental Data Types 09/09/13.
Introduction to TouchDevelop
XP New Perspectives on Microsoft Office Access 2003 Tutorial 11 1 Microsoft Office Access 2003 Tutorial 11 – Using and Writing Visual Basic for Applications.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Collecting Things Together - Lists 1. We’ve seen that Python can store things in memory and retrieve, using names. Sometime we want to store a bunch of.
5 BASIC CONCEPTS OF ANY PROGRAMMING LANGUAGE Let’s get started …
Summer Computing Workshop. Introduction  Boolean Expressions – In programming, a Boolean expression is an expression that is either true or false. In.
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Creating visual interfaces in python
1 Printing in Python Every program needs to do some output This is usually to the screen (shell window) Later we’ll see graphics windows and external files.
Programming with Microsoft Visual Basic th Edition
CHAPTER 14 Classes, Objects, and Games XNA Game Studio 4.0.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 11 So Many Paths … So Little Time.
Chapter 10 So Many Paths … So Little Time (Multiple-Alternative Selection Structures) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Today's Ninja Challenge: Write Your First Computer Game!
Learning to use a ‘For Loop’ and a ‘Variable’. Learning Objective To use a ‘For’ loop to build shapes within your program Use a variable to detect input.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Scratch Programming Cards
Unit 2 Technology Systems
CST 1101 Problem Solving Using Computers
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.
MOM! Phineas and Ferb are … Aims:
Pixels, Colors and Shapes
UNIT 3 – LESSON 5 Creating Functions.
Have You Got The Angle? Hi boys and Girls! Today, we are going to learn about Angles. Angles are everywhere! And they have different types. At the.
Chapter 4: The Selection Structure
Creating a Baseline Grid
Explain what touch develop is to your students:
Lesson 2: Building Blocks of Programming
I/O in C Lecture 6 Winter Quarter Engineering H192 Winter 2005
File Handling Programming Guides.
Introduction to TouchDevelop
Explain what touch develop is to your students:
Introduction to TouchDevelop
Module 5: Data Cleaning and Building Reports
Objectives After studying this chapter, you should be able to:
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
Areas of the SCRATCH 2 Screen
And and or…and RANDOMNESS
Explain what touch develop is to your students:
Week 6: Time and triggers!
Unit 3: Intro to Programming Snap! Introduction
Using Templates and Library Items
Spreadsheets, Modelling & Databases
Explain what touch develop is to your students:
Explain what touch develop is to your students:
Welcome to the computer!
Game Over Module 4 Lesson 2.
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Asking Questions in BYOB Scratch.
Variables and Constants
Introduction to Computer Science
Presentation transcript:

Learning Objective LO: We’re learning to understand when it is appropriate to use particular data types.

Variables / Constants…. Known as a place holder to store values. Can be shown in a number of data types Constants Constants are a little different to normal variables in that they cannot be modified. To add in a variable / constant using touch develop we click on: When teaching my students I sometimes refer to a variable as a BUCKET. They can imagine how it holds the value and how it can be emptied and used again.

Data Types…. What would you use them for? This are common ones which are used within TouchDevelop. Get your students to see if they can see the ones which are likely to be used the most? What would you use them for?

Only two outcomes – True or False One bit of information Only two outcomes – True or False Used for simple flags to track true or false conditions. Default value is false. Boolean

The board is the 2D engine which lets you create the game. You can move objects around on it according to gravity or friction. You can use the board to time elements. Without the board, you will find it difficult to move characters around your screen. Imagine it as your interface. Without setting up the board, you will not be able to control the appears of your game.

We use Numbers because they help us later on in whatever job we will need our code to do. For instants, if we need to calculate numbers. It isn’t good trying to add text together, the program will give you an error. Number variables allow us to use only numbers whereas strings allow a combination of numbers and letters.

Sometimes it’s not good enough to just calculate things Sometimes it’s not good enough to just calculate things. We might need to name them. It is not possible to put a persons name inside a number variable. It will give us an error message. Strings allow us to use a combination of numbers and characters providing them they have been converted.

This data type is used to specify a date. Within Touch Develop you can call on specific functions such as just the time or the date. You can push buttons such as: When you push these buttons, they store these values within the variable. You can pick either the date or time.

A Sprite is an object or set of objects which performs an action. If you have used scratch before, you will already understand this. Sprites can be programmed to carry out different activities. Most projects have at least one sprite. There are four kinds of sprite that display different kinds of visual content: ellipse, rectangle, text andpicture. They can have the shapes of ellipses or rectangles. They can be drawn as solid figures, or they can take the form of a piece of updatable text, or be created from a picture. There is a fifth kind of sprite known as an anchor sprite. It is invisible and has a special purpose, which is explained below under the headingsprings and anchors. Sprites are associated with particular game boards and are created by methods of the Board type.

Useful Videos Here is some mapping to videos which use some of these data types: Video 1 – Introduces height and width using the board and number data types. Video 2 – Sprite data types introduced. Video 7 – Uses strings in a list. Experiment with the data types and see what you can come up with.