A-Level Computing data structures. Objectives Know how the ways data is stored and organised in a computer system Understand how data can be manipulated.

Slides:



Advertisements
Similar presentations
Copyright © 2002 Pearson Education, Inc. Slide 1.
Advertisements

Chapter 10 Introduction to Arrays
Need for Arrays Exercise Read the IDs and the grades for all ICS 101 students. Compute and print the average of the students. Print the grades and IDs.
©Brooks/Cole, 2003 Chapter 11 Data Structures. ©Brooks/Cole, 2003 Understand arrays and their usefulness. Understand records and the difference between.
Lecture - 1 on Data Structures. Prepared by, Jesmin Akhter, Lecturer, IIT,JU Data Type and Data Structure Data type Set of possible values for variables.
An Introduction to Programming with C++ Fifth Edition
Arrays-Part 1. Objectives Declare and initialize a one-dimensional array Store data in a one-dimensional array Display the contents of a one-dimensional.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 8 Arrays.
Arrays.
1 Arrays  Arrays are objects that help us organize large amounts of information  Chapter 8 focuses on: array declaration and use passing arrays and array.
©Brooks/Cole, 2003 Chapter 11 Data Structures. ©Brooks/Cole, 2003 Data Structure Data structure uses collection of related variables that can be accessed.
Two-Dimensional Arrays School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 11, Friday 4/04/2003)
Introduction to Programming with C++ Fourth Edition
An Object-Oriented Approach to Programming Logic and Design Chapter 7 Arrays.
Chapter 9 Introduction to Arrays
Programming Logic and Design Fourth Edition, Comprehensive
Selection Sort Given n numbers to sort: Repeat the following n-1 times:  Mark the first unsorted number  Find the smallest unsorted.
11 Chapter 8 ARRAYS Continued. 22 MULTI-DIMENSIONAL ARRAYS A one-dimensional array is useful for storing/processing a list of values. For example: –The.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 11 - JavaScript: Arrays Outline 11.1 Introduction 11.2 Arrays 11.3 Declaring and Allocating Arrays.
Chapter 9: Advanced Array Concepts
Array Processing Simple Program Design Third Edition A Step-by-Step Approach 7.
Foundation Studies Course M.Montebello Records Foundation Studies Course.
Arrays in C++ Numeric Character. Structured Data Type A structured data type is a type that stores a collection of individual components with one variable.
Chapter 8 Arrays Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Arrays- Part 2 Spring 2013Programming and Data Structure1.
Chapter 7 Array processing. Objectives To introduce arrays and the uses of arrays To develop pseudocode algorithms for common operations on arrays To.
Array Processing.
19/10/20151 Data Structures Arrays. 219/10/2015 Learning Objectives Explain initialising arrays and reading data into arrays. Design and write routine/s.
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 9 Arrays.
COMP102 Lab 081 COMP 102 Programming Fundamentals I Presented by : Timture Choi.
1 © 2002, Cisco Systems, Inc. All rights reserved. Arrays Chapter 7.
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 12 Manipulating Larger Quantities of Data.
Chapter 6: Arrays: Lists and Tables
Lecture Set 12 Sequential Files and Structures Part D - Structures.
Arrays & Vectors Week 5. The simplest form of the multidimensional array is the two-dimensional array. A two- dimensional array is, in essence, a list.
Computer Science: A Structured Programming Approach Using C1 8-7 Two-Dimensional Arrays The arrays we have discussed so far are known as one- dimensional.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
An Introduction to Programming with C++ Fifth Edition Chapter 11 Arrays.
Computer Programming TCP1224 Chapter 11 Arrays. Objectives Using Arrays Declare and initialize a one-dimensional array Manipulate a one-dimensional array.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 8 Arrays.
Addressing Modes Chapter 6 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer,
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 18 – Student Grades Application Introducing.
IN THE NAME OF ALLAH WHO IS THE MOST BENEFICENT AND MOST MERCIFUL.
Copyright 2004 Scott/Jones Publishing Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 8 Arrays.
Group 3: Noah, Tim, Nick, Halie, Ashley. The alternative proposal that we are going to chose is re- doing the track and soccer field with adding lights.
CSCI 3328 Object Oriented Programming in C# Chapter 7: Arrays 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
Computer Science: A Structured Programming Approach Using C1 8-7 Two-Dimensional Arrays The arrays we have discussed so far are known as one- dimensional.
CHAPTER EIGHT ARRAYS © Prepared By: Razif Razali1.
An Introduction to Programming with C++ Sixth Edition Chapter 12 Two-Dimensional Arrays.
Introduction to Arrays. Objectives Distinguish between a simple variable and a subscripted variable. Input, output, and manipulate values stored in a.
Chapter 8: Part 3 Collections and Two-dimensional arrays.
CiS 260: App Dev I. 2 Introduction to Arrays n An array is an object that contains a collection of components (_________) of the same data type. n For.
What is Handling Information?.
CiS 260: App Dev I. 2 Introduction to Arrays n An array is an object that contains a collection of components (_________) of the same data type. n For.
Visual C# 2005 Using Arrays. Visual C# Objectives Declare an array and assign values to array elements Initialize an array Use subscripts to access.
Arrays Declaring arrays Passing arrays to functions Searching arrays with linear search Sorting arrays with insertion sort Multidimensional arrays Programming.
C++ Array 1. C++ provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used.
Arrays (Chapter 5)‏ Definition Applications One-Dimensional –Declaration –Initialization –Use Multidimensional.
SEQUENTIAL AND OBJECT ORIENTED PROGRAMMING Arrays.
© 2004 Pearson Addison-Wesley. All rights reserved7-1 Array review Array of primitives int [] count; count = new int[10]; Array of objects Grade [] cs239;
Lecture #15 ARRAYS By Shahid Naseem (Lecturer). 2 ARRAYS DEFINITION An array is a sequence of objects of same data type. The objects in an array are also.
Chapter 9 Introduction to Arrays Fundamentals of Java.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 19 A Ray of Sunshine.
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
Two-Dimensional Arrays
Microsoft Visual Basic 2005: Reloaded Second Edition
Data Structures [1] CP1 Computing CP1 Data Structures 1.
Chapter 6 - Arrays Outline Multiple-Subscripted Arrays.
Presentation transcript:

A-Level Computing data structures

Objectives Know how the ways data is stored and organised in a computer system Understand how data can be manipulated and referenced in an array Be able to explain the need for each type of data structure

Data Arrays A data structure is a way of organising data so that it can be efficiently processed An array is a type of data structure, and appears as a table or list Used to hold data (e.g. names) of the same type

Data Arrays The data items in an array are called its elements. Each element has a subscript to identify it SubscriptName 0Grant 1Tim 2Jake 3Ben 4Liam

Data Arrays A one-dimensional array is an array where each item is identified by one subscript. Items are identified as: Name[2] = ‘Jake’ If Name[n] = Grant....what is n?

Data Arrays A two-dimensional array is an array where two subscripts are needed to identify each element. JanuaryFebruaryMarch Tim£450£320£520 Grant£430£300£200 Jake£340£285£410 Ben£120£450£400 Liam£250£310£375 Helen£475£300£280 sales[2,1] = £285

Data Arrays D Score Steve45 Mark23 Kelly67 Gary35

Data Arrays D ICTMathsEnglishArt Steve Mark Kelly Gary

Data Arrays D! Year 7 Scores ICTMathsEnglishArt Steve Mark Kelly Gary Year 8 Scores ICTMathsEnglishArt Steve Mark Kelly Gary Year 9 Scores ICTMathsEnglishArt Steve Mark Kelly Gary

Records A record consists of a number of fields A field consists of a single data item and these may be of different types In a program, the field name and data type need to be declared For example a record may consist of four fields....

Records FieldData Type Student idInteger NameString ClassString Exam AverageReal