Learning Intention I will learn how to use an array to store data in a program.

Slides:



Advertisements
Similar presentations
U SING V ARIABLES IN V ISUAL B ASIC Intermediate 2 Software Development.
Advertisements

Object-Oriented Programming (OOP). Implementing an OOD in Java Each class is stored in a separate file. All files must be stored in the same package.
C LANGUAGE UNIT 3. UNIT 3 Arrays Arrays – The concept of array – Defining arrays – Initializing arrays.
Request Dispatching for Cheap Energy Prices in Cloud Data Centers
SpringerLink Training Kit
Luminosity measurements at Hadron Colliders
Choosing a Dental Plan Student Name
Virtual Environments and Computer Graphics
Chương 1: CÁC PHƯƠNG THỨC GIAO DỊCH TRÊN THỊ TRƯỜNG THẾ GIỚI
THỰC TIỄN KINH DOANH TRONG CỘNG ĐỒNG KINH TẾ ASEAN –
Điều trị chống huyết khối trong tai biến mạch máu não
Electronics for Pedestrians – Passive Components –
Parameterization of Tabulated BRDFs Ian Mallett (me), Cem Yuksel
L-Systems and Affine Transformations
Bayesian Confidence Limits and Intervals
实习总结 (Internship Summary)
Front End Electronics for SOI Monolithic Pixel Sensor
Face Recognition Monday, February 1, 2016.
Theoretical Results on Neutrinos
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Fuel cell development program for electric vehicle
Optomechanics with atoms
داده کاوی سئوالات نمونه
Inter-system biases estimation in multi-GNSS relative positioning with GPS and Galileo Cecile Deprez and Rene Warnant University of Liege, Belgium  
Wissenschaftliche Aussprache zur Dissertation
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Particle acceleration during the gamma-ray flares of the Crab Nebular
Interpretations of the Derivative Gottfried Wilhelm Leibniz
Advisor: Chiuyuan Chen Student: Shao-Chun Lin
Widow Rockfish Assessment
SiW-ECAL Beam Test 2015 Kick-Off meeting
Chapter 6 并发:死锁和饥饿 Operating Systems: Internals and Design Principles
You NEED your book!!! Frequency Distribution
Fairness-oriented Scheduling Support for Multicore Systems
The ABCD matrix for parabolic reflectors and its application to astigmatism free four-mirror cavities.
Measure Twice and Cut Once: Robust Dynamic Voltage Scaling for FPGAs
Online Learning: An Introduction
Quantum-classical transition in optical twin beams and experimental applications to quantum metrology Ivano Ruo-Berchera Frascati.
The Toroidal Sporadic Source: Understanding Temporal Variations
FW 3.4: More Circle Practice
Decision Procedures Christoph M. Wintersteiger 9/11/2017 3:14 PM
Online Social Networks and Media
NV centers in diamond: from quantum coherence to nanoscale MRI
Howard Wiseman1 and Geoff Pryde1
פרויקט מסכם לתואר בוגר במדעים (B.Sc.) במתמטיקה שימושית
doc.: IEEE <doc#>
Progress on Beam Loading Studies
Solar Astronomy with LOFAR - First Steps
Topic 5: Sequences and Series
Plan for Day 4 Skip ahead to Lesson 5, about Mechanism Construction
PROGRAMMING ARRAYS.
Data Types and Structures
Learning Intention I will learn about the iterative software development process with a focus on the Design stage.
Starter Question In your jotter write the pseudocode to take in two numbers, add them together then display the answer. Declare variables RECEIVE firstNumber.
VISUAL BASIC.
Don’t Leave Home Without them
STL - Algorithms.
Learning Intention I will learn about evaluating a program.
Learning Intention I will learn about programming using selection (making choices) with one condition.
No Yes START Do you live in Scotland? Take umbrella See last Flowchart
Learning Intention I will learn about concatenation and arithmetic operators.
Multi-Dimensional Arrays
To understand what arrays are and how to use them
Learning Intention I will learn about selection with multiple conditions.
Learning Intention I will learn about the different types of programming errors.
Just Basic Lessons Mr. Kalmes.
Learning Intention I will learn about the standard algorithm for input validation.
Arrays & Loops.
Arrays & Loops.
Presentation transcript:

Learning Intention I will learn how to use an array to store data in a program.

Analysis Design Implementation Testing Documentation Evaluation

How would you store the names of all pupils in the class in a program? …

Array An array is a data structure (a list of data items). All the items have the same data type. e.g. in VB to store 20 names in an array: Dim names(20) As String

Array Each item in an array is called an element. Each element is identified by the variable name and an index (number) which identifies the position of the element in the array.

Think of Excel What is the value in A3? What is the value in B5?

Excel (modified) What is the value in names(7)? What is the value in ages(10)? names ages

SQA Reference Language for Array With data (so can work out the data type): e.g. DECLARE someVals INITIALLY [4, 6, 1] Without data (so must state data type): DECLARE newVals AS ARRAY OF STRING INITIALLY []

SQA Reference Language for Array 1. DECLARE allCosts INITIALLY [ 7, 3, 5, 7, 9 ] 2. SET total TO 0 3. FOR index FROM 1 TO 4 DO 4. SET total TO total + allCosts(index) 5. END FOR 6. SEND total TO DISPLAY

SQA Reference Language for Array 1. DECLARE allCosts INITIALLY [3, 5, 2] 2. SET total TO 0 3. FOR EACH cost FROM allCosts DO 4. SET total TO total + cost 5. END FOR EACH 6. SEND total TO DISPLAY

Array in VB

Programming Tasks Complete the programming tasks on pages 76-79 Extension Task Set 7

Success Criteria I can use arrays to store data.