Chapter Nine Arrays. Sixth Edition
|
|
- Charlotte Gardner
- 5 years ago
- Views:
Transcription
1 Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Nine Arrays
2 Objectives After studying this chapter, you should be able to: Declare and initialize one-dimensional and twodimensional arrays Store and access data in an array Determine the number of array elements and the highest subscript Traverse an array Code a loop using the For Each Next statement Compute the total and average of an array s contents 2
3 Objectives (cont'd.) Find the highest value in an array Associate a list box with a one-dimensional array Use a one-dimensional array as an accumulator or a counter Sort a one-dimensional array Search an array 3
4 Arrays Simple variable (or scalar variable): a variable that is unrelated to any other variable in memory Array A group of variables with the same name and data type that are related in some way Used to temporarily store related data in memory Increases the efficiency of a program Commonly used arrays: One-dimensional Two-dimensional 4
5 One-Dimensional Arrays One-dimensional array Can be viewed as a column of variables Each variable in the array has the same name and data type Subscript A unique number that identifies each variable in a onedimensional array Starts at 0 for first element in the array Use array name and subscript to refer to each individual variable in the array 5
6 One-Dimensional Arrays (cont d.) Element An individual variable in the array When an array is declared: Must specify the data type, name, and highest subscript to be used First element has a subscript of 0 The array will contain one element more than the highest subscript because subscripts start at 0 6
7 One-Dimensional Arrays (cont'd.) Figure 9-1: Illustration of the one-dimensional scientists array 7
8 One-Dimensional Arrays (cont'd.) Declaring a One-Dimensional Array Figure 9-2: How to declare a one-dimensional array 8
9 One-Dimensional Arrays (cont'd.) Populating the array Assigning initial values to an array List the values in a comma-separated list enclosed in curly braces ({}) After declaration, can use an assignment statement to store a value in an array element Figure 9-3: Illustration of the tvseries and rates arrays 9
10 One-Dimensional Arrays (cont'd.) Storing Data in a One-Dimensional Array Figure 9-4: How to store data in a one-dimensional array 10
11 One-Dimensional Arrays (cont'd.) Determining the Number of Elements in an Array Length property Indicates number of elements Figure 9-5: How to determine the number of elements in an array 11
12 One-Dimensional Arrays (cont'd.) Determining the Highest Subscript in a One- Dimensional Array GetUpperBound method Returns the highest subscript Figure 9-6: How to determine the highest subscript in a one-dimensional array 12
13 One-Dimensional Arrays (cont'd.) Traversing a One-Dimensional Array Look at each array element, one by one, from beginning to end of the array Use a loop to traverse an array 13 Figure 9-7: How to traverse a one-dimensional array
14 The For Each Next Statement For Each Next statement Used to code a loop that processes each element Creates a variable used to represent each Data type of the element must match the data type of the group 14 Figure 9-8 How to use the For Each Next statement
15 The For Each Next Statement (cont'd.) Calculating the Total and Average Values Figure 9-9: Problem specification, code, and sample run for the Popcorn Factory application (continues) 15
16 The For Each Next Statement (cont'd.) Figure 9-9: Problem specification, code, and sample run for the Popcorn Factory application 16
17 Finding the Highest Value Figure 9-10: Problem specification, code, and sample run another version of the Popcorn Factory application 17
18 Arrays and Collections Programmers associate the values in an array with the items in a list box Items in a list box belong to the Items collection and collections and arrays have several things in common Each is a group of individual objects treated as one unit Each individual object in the group is identified by a unique number (index or subscript) 18
19 Arrays and Collections (cont'd.) Figure 9-11: Problem specification, code, and sample run for the Presidents Vice Presidents application 19
20 Accumulator and Counter Arrays One-dimensional arrays are often used to either accumulate or count related values These arrays are commonly referred to as: accumulator arrays counter arrays 20
21 Accumulator and Counter Arrays (cont'd.) Figure 9-12 Problem specification, code, and sample run for the Allen School application (continues) 21
22 Accumulator and Counter Arrays(cont'd.) Figure 9-12 Problem specification, code, and sample run for the Allen School application 22
23 Sorting a One-Dimensional Array Sorting: arranging data in a specific order Ascending: first element is smallest, last element is largest Descending: first element is largest, last element is smallest Array.Sort method: used to sort elements in a one-dimensional array in ascending order Array.Reverse method: used after Array.Sort method to change to descending order 23
24 Sorting a One-Dimensional Array (cont'd.) 24 Figure 9-13: How to use the Array.Sort and Array.Reverse methods
25 Two-Dimensional Arrays Two-dimensional array Resembles a table with rows and columns Each element is identified by a unique combination of two subscripts: (row, column) Subscripts are zero-relative Refer to an element using the name followed by the (row, column) pair in parentheses Figure 9-14: Names of some of the elements in the songs array 25
26 Two-Dimensional Arrays (cont'd.) Two-dimensional array are declared with highest row subscript and highest column subscript (zero-relative) Number of rows = highest row subscript + 1 Number of columns = highest column subscript + 1 Can specify initial values for array elements If no initial values are declared, array elements are automatically initialized 26
27 Two-Dimensional Arrays (cont'd.) Figure 9-15: How to declare a twodimensional array 27
28 Two-Dimensional Arrays (cont'd.) Figure 9-16: How to store data in a two-dimensional array 28
29 Two-Dimensional Arrays (cont'd.) Figure 9-17: How to determine the highest subscripts in a two-dimensional array 29
30 Two-Dimensional Arrays (cont'd.) Traversing a Two-Dimensional Array Use two loops Outer loop: tracks the row subscript Nested loop: tracks the column subscript Can also use a For Each Next loop 30
31 Two-Dimensional Arrays (cont'd.) Figure 9-18: How to traverse a twodimensional array 31
32 Two-Dimensional Arrays (cont'd.) Totaling the Values Stored in a Two-Dimensional Array Figure 9-19: Problem specification, code, and sample run for the Tyler Motors application (continues) 32
33 Two-Dimensional Arrays (cont'd.) Totaling the Values Stored in a Two-Dimensional Array Figure 9-19: Problem specification, code, and sample run for the Tyler Motors application (continues) 33
34 Two-Dimensional Arrays (cont'd.) 34 Figure 9-19: Problem specification, code, and sample run for the Tyler Motors application
35 Two-Dimensional Arrays (cont'd.) Searching a Two-Dimensional Array Figure 9-20: Problem specification, code, and sample run for the O Reilly Studios application (continues) 35
36 Two-Dimensional Arrays (cont'd.) 36 Figure 9-20: Problem specification, code, and sample run for the O Reilly Studios application
37 Programming Tutorial 1 Figure 9-21: TOE chart and MainForm for the Lottery Game application Figure 9-22: Pseudocode for the getbutton_click procedure Figure 9-24: Sample run of the Lottery Game application 37
38 Programming Tutorial 2 Figure 9-26: Membership fees, TOE chart, and MainForm for the Jenkins Gym application Figure 9-27: Sample run of the Jenkins Gym application 38
39 Programming Example Figure 9-29: TOE Chart 39 Figure 9-30: MainForm and tab order
40 Summary Programmers use arrays to temporarily store related data in the internal memory of the computer All of the elements in an array have the same name and data type When declaring a one-dimensional array, you provide either the highest subscript or the initial values Each element in a one-dimensional array is identified by a unique subscript that appears in parentheses after the array s name 40
41 Summary (cont'd.) You refer to an element in a one-dimensional array using the array s name followed by the element s subscript, which is enclosed in parentheses Examples of statements that you can use to change the data stored in an array include assignment statements and statements that contain the TryParse method A one-dimensional array s Length property contains an integer that represents the number of elements in the array 41
42 Summary (cont'd.) A one-dimensional array s GetUpperBound method returns an integer that represents the highest subscript in the array You use a loop to traverse a one-dimensional array You can associate the items in a list box with the elements in an array You can use the elements in an array as accumulators or counters 42
43 Summary (cont'd.) The Array.Sort method sorts the elements in a one-dimensional array in ascending order The Array.Reverse method reverses the order of the elements in a one-dimensional array A two-dimensional array resembles a table in that the elements are in rows and columns When declaring a two-dimensional array, you provide either the highest row and column subscripts or the initial values 43
44 Summary (cont'd.) The number of rows in a two-dimensional array is one number more than its highest row subscript You can determine the number of elements in a twodimensional array by multiplying the number of its rows by the number of its columns. You can also use the array s Length property Each element in a two-dimensional array is identified by row and column subscripts 44
45 Summary You can use a two-dimensional array s GetUpperBound method to determine the highest row subscript and column subscript in the array You can traverse a two-dimensional array using either two loops (coded with the For Next or Do Loop statements) or one loop (coded with the For Each Next statement) 45
Chapter Ten String Manipulation and Menus
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Ten String Manipulation and Menus Objectives After studying this chapter, you should be able to: Determine the number of characters in a string
More informationChapter 12 Two-Dimensional Arrays
Chapter 12 Two-Dimensional Arrays Objectives Declare and initialize a two-dimensional array Enter data into a two-dimensional array Display the contents of a two-dimensional array Sum the values in a two-dimensional
More informationMicrosoft Visual Basic 2015: Reloaded
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Three Memory Locations and Calculations Objectives After studying this chapter, you should be able to: Declare variables and named constants
More informationMicrosoft Visual Basic 2015: Reloaded
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Seven More on the Repetition Structure Objectives After studying this chapter, you should be able to: Code a counter-controlled loop Nest repetition
More informationMicrosoft Visual Basic 2015: Reloaded
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Five More on the Selection Structure Objectives After studying this chapter, you should be able to: Determine whether a solution requires a nested
More informationChapter 8 Arrays and Strings. Objectives. Objectives (cont d.) Introduction. Arrays 12/23/2016. In this chapter, you will:
Chapter 8 Arrays and Strings Objectives In this chapter, you will: Learn about arrays Declare and manipulate data into arrays Learn about array index out of bounds Learn about the restrictions on array
More informationLecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays)
Lecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays) In this lecture, you will: Learn about arrays Explore how to declare and manipulate data into arrays Understand the meaning of
More informationChapter 8. Arrays and More Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of
Chapter 8 Arrays and More Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Introduction Arrays are like groups of variables that allow you to store sets of similar data
More informationChapter 6: Using Arrays
Chapter 6: Using Arrays Declaring an Array and Assigning Values to Array Array Elements A list of data items that all have the same data type and the same name Each item is distinguished from the others
More informationObjectives. Chapter 8 Arrays and Strings. Objectives (cont d.) Introduction 12/14/2014. In this chapter, you will:
Objectives Chapter 8 Arrays and Strings In this chapter, you will: Learn about arrays Declare and manipulate data into arrays Learn about array index out of bounds Learn about the restrictions on array
More informationArrays. Defining arrays, declaration and initialization of arrays. Designed by Parul Khurana, LIECA.
Arrays Defining arrays, declaration and initialization of arrays Introduction Many applications require the processing of multiple data items that have common characteristics (e.g., a set of numerical
More informationClass C{ int a; } what variables below are objects : a. C c; b. String str; c. Scanner scanner; d. int num; e. float f;
Class C{ int a; } what variables below are objects : a. C c; b. String str; c. Scanner scanner; d. int num; e. float f; Starting Out with Java: From Control Structures Through Objects Sixth Edition Chapter
More informationChapter 9 Introduction to Arrays. Fundamentals of Java
Chapter 9 Introduction to Arrays Objectives Write programs that handle collections of similar items. Declare array variables and instantiate array objects. Manipulate arrays with loops, including the enhanced
More informationC++ Programming. Arrays and Vectors. Chapter 6. Objectives. Chiou. This chapter introduces the important topic of data structures collections
C++ Programming Chapter 6 Arrays and Vectors Yih-Peng Chiou Room 617, BL Building (02) 3366-3603 3603 ypchiou@cc.ee.ntu.edu.tw Photonic Modeling and Design Lab. Graduate Institute of Photonics and Optoelectronics
More informationArrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming
Arrays: Higher Dimensional Arrays CS0007: Introduction to Computer Programming Review If the == operator has two array variable operands, what is being compared? The reference variables held in the variables.
More informationSubject: Computer Science
Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program
More informationArrays. Chapter 7 Part 3 Multi-Dimensional Arrays
Arrays Chapter 7 Part 3 Multi-Dimensional Arrays Chapter 7: Arrays Slide # 1 Agenda Array Dimensions Multi-dimensional arrays Basics Printing elements Chapter 7: Arrays Slide # 2 First Some Video Tutorials
More informationSKILL AREA 306: DEVELOP AND IMPLEMENT COMPUTER PROGRAMS
Add your company slogan SKILL AREA 306: DEVELOP AND IMPLEMENT COMPUTER PROGRAMS Computer Programming (YPG) LOGO 306.1 Review Selected Programming Environment 306.1.1 Explain the concept of reserve words,
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations Objectives After studying this chapter, you should be able to: Declare variables and named
More informationData Structures: Cell Arrays and Structures. Chapter 8. Linguaggio Programmazione Matlab-Simulink (2017/2018)
Data Structures: Cell Arrays and Structures Chapter 8 Linguaggio Programmazione Matlab-Simulink (2017/2018) Cell Arrays A cell array is a type of data structure that can store different types of values
More informationFlag Quiz Application
T U T O R I A L 17 Objectives In this tutorial, you will learn to: Create and initialize arrays. Store information in an array. Refer to individual elements of an array. Sort arrays. Use ComboBoxes to
More informationC How to Program, 7/e by Pearson Education, Inc. All Rights Reserved.
C How to Program, 7/e This chapter serves as an introduction to data structures. Arrays are data structures consisting of related data items of the same type. In Chapter 10, we discuss C s notion of
More informationUnit 3 Fill Series, Functions, Sorting
Unit 3 Fill Series, Functions, Sorting Fill enter repetitive values or formulas in an indicated direction Using the Fill command is much faster than using copy and paste you can do entire operation in
More informationUnit 3 Functions Review, Fill Series, Sorting, Merge & Center
Unit 3 Functions Review, Fill Series, Sorting, Merge & Center Function built-in formula that performs simple or complex calculations automatically names a function instead of using operators (+, -, *,
More informationCreating Two-dimensional Arrays
ANY TYPE CAN BE USED as the base type of an array. You can have an array of ints, an array of Strings, an array of Objects, and so on. In particular, since an array type is a first-class Java type, you
More informationV2 3/5/2012. Programming in C. Introduction to Arrays. 111 Ch 07 A 1. Introduction to Arrays
Programming in C 1 Introduction to Arrays A collection of variable data Same name Same type Contiguous block of memory Can manipulate or use Individual variables or List as one entity 2 Celsius temperatures:
More informationArrays. Chapter 7 (Done right after 4 arrays and loops go together, especially for loops)
Arrays Chapter 7 (Done right after 4 arrays and loops go together, especially for loops) Object Quick Primer A large subset of Java s features are for OOP Object- Oriented Programming We ll get to that
More informationAn Introduction to Programming with C++ Sixth Edition. Chapter 7 The Repetition Structure
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure Objectives Differentiate between a pretest loop and a posttest loop Include a pretest loop in pseudocode Include
More informationSorting Pearson Education, Inc. All rights reserved.
1 19 Sorting 2 19.1 Introduction (Cont.) Sorting data Place data in order Typically ascending or descending Based on one or more sort keys Algorithms Insertion sort Selection sort Merge sort More efficient,
More informationTutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts Microsoft Excel 2013 Enhanced Objectives Explore a structured range of data Freeze rows and columns Plan and create an Excel table Rename
More informationAP Computer Science Lists The Array type
AP Computer Science Lists There are two types of Lists in Java that are commonly used: Arrays and ArrayLists. Both types of list structures allow a user to store ordered collections of data, but there
More informationChapter 7 : Arrays (pp )
Page 1 of 45 Printer Friendly Version User Name: Stephen Castleberry email Id: scastleberry@rivercityscience.org Book: A First Book of C++ 2007 Cengage Learning Inc. All rights reserved. No part of this
More informationArray Basics: Outline
Array Basics: Outline More Arrays (Savitch, Chapter 7) TOPICS Array Basics Arrays in Classes and Methods Programming with Arrays Searching and Sorting Arrays Multi-Dimensional Arrays Static Variables and
More informationArrays and Strings. Arash Rafiey. September 12, 2017
September 12, 2017 Arrays Array is a collection of variables with the same data type. Arrays Array is a collection of variables with the same data type. Instead of declaring individual variables, such
More informationBITG 1233: Array (Part 1) LECTURE 8 (Sem 2, 17/18)
BITG 1233: Array (Part 1) LECTURE 8 (Sem 2, 17/18) 1 LEARNING OUTCOMES At the end of this lecture, you should be able to: 1. Describe the fundamentals of arrays 2. Describe the types of array: One Dimensional
More informationINDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI
INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI 2017-2018 Worksheet No. 1 Topic : Getting Started With C++ 1. Write a program to generate the following output: Year Profit% 2011 18 2012 27 2013 32
More informationReg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING
wss Reg. No. : Question Paper Code : 37007 B.E./B.Tech. DEGREE EXAMINATION, JANUARY 2014. First Semester Civil Engineering GE 6151 COMPUTER PROGRAMMING (Common to all branches) (Regulation 2013) Time :
More informationChapter Two Creating a User Interface
Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Two Creating a User Interface Objectives After studying this chapter, you should be able to: Plan an application using a TOE chart Use a text
More informationOverview: Programming Concepts. Programming Concepts. Names, Values, And Variables
Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Fluency with Information Technology Third Edition by Lawrence Snyder Overview: Programming Concepts Programming: Act of formulating
More informationOverview: Programming Concepts. Programming Concepts. Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript
Chapter 18: Get With the Program: Fundamental Concepts Expressed in JavaScript Fluency with Information Technology Third Edition by Lawrence Snyder Overview: Programming Concepts Programming: Act of formulating
More informationHigh Institute of Computer Science & Information Technology Term : 1 st. El-Shorouk Academy Acad. Year : 2013 / Year : 2 nd
El-Shorouk Academy Acad. Year : 2013 / 2014 High Institute of Computer Science & Information Technology Term : 1 st Year : 2 nd Computer Science Department Object Oriented Programming Section (1) Arrays
More informationeschoolplus+ Cognos Query Studio Training Guide Version 2.4
+ Training Guide Version 2.4 May 2015 Arkansas Public School Computer Network This page was intentionally left blank Page 2 of 68 Table of Contents... 5 Accessing... 5 Working in Query Studio... 8 Query
More informationTOPICS TO COVER:-- Array declaration and use.
ARRAYS in JAVA TOPICS TO COVER:-- Array declaration and use. One-Dimensional Arrays. Passing arrays and array elements as parameters Arrays of objects Searching an array Sorting elements in an array ARRAYS
More informationLesson 06 Arrays. MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL
Lesson 06 Arrays MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL Array An array is a group of variables (called elements or components) containing
More informationFor loops, nested loops and scopes. Jordi Cortadella Department of Computer Science
For loops, nested loops and scopes Jordi Cortadella Department of Computer Science Outline For loops Scopes Nested loops Introduction to Programming Dept. CS, UPC 2 Calculate x y Algorithm: repeated multiplication
More informationNew Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts
New Perspectives on Microsoft Excel 2016 Module 5: Working with Excel Tables, PivotTables, and PivotCharts Objectives, Part 1 Explore a structured range of data Freeze rows and columns Plan and create
More informationProcedural Programming
Universität Duisburg-Essen PRACTICAL TRAINING TO THE LECTURE Procedural Programming Session Five: Arrays Name: First Name: Tutor: Matriculation-Number: Group-Number: Date: Prof. Dr.Ing. Axel Hunger Dipl.-Ing.
More informationReview of Important Topics in CS1600. Functions Arrays C-strings
Review of Important Topics in CS1600 Functions Arrays C-strings Array Basics Arrays An array is used to process a collection of data of the same type Examples: A list of names A list of temperatures Why
More informationAny Integer Can Be Written as a Fraction
All fractions have three parts: a numerator, a denominator, and a division symbol. In the simple fraction, the numerator and the denominator are integers. Eample 1: Find the numerator, denominator, and
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More informationOutline. For loops, nested loops and scopes. Calculate x y. For loops. Scopes. Nested loops. Algorithm: repeated multiplication x x x x
Outline For loops, nested loops and scopes For loops Scopes Jordi Cortadella Department of Computer Science Nested loops Calculate x y Algorithm: repeated multiplication x x x x y times y x i p=x i 4 3
More informationGrouping and Sorting
1 Content... 2 2 Introduction... 2 3 Grouping data... 3 4 How to create reports with grouped data... 5 4.1 Simple Group Example... 5 4.2 Group example with Group Name Field... 8 4.3 Group example with
More informationSearching, Sorting. Arizona State University 1
Searching, Sorting CSE100 Principles of Programming with C++, Fall 2018 (based off Chapter 9 slides by Pearson) Ryan Dougherty Arizona State University http://www.public.asu.edu/~redoughe/ Arizona State
More informationC++ PROGRAMMING SKILLS Part 4: Arrays
C++ PROGRAMMING SKILLS Part 4: Arrays Outline Introduction to Arrays Declaring and Initializing Arrays Examples Using Arrays Sorting Arrays: Bubble Sort Passing Arrays to Functions Computing Mean, Median
More informationJME Language Reference Manual
JME Language Reference Manual 1 Introduction JME (pronounced jay+me) is a lightweight language that allows programmers to easily perform statistic computations on tabular data as part of data analysis.
More informationProgramming Logic and Design Sixth Edition
Objectives Programming Logic and Design Sixth Edition Chapter 6 Arrays In this chapter, you will learn about: Arrays and how they occupy computer memory Manipulating an array to replace nested decisions
More informationAdvanced Computer Programming
Hazırlayan Yard. Doç. Dr. Mehmet Fidan ARRAYS A group of data with same type stored under one variable. It is assumed that elements in that group are ordered in series. In C# language arrays are has System.Array
More informationLecture Outline. Rainfall Solution Attempt 1. Motivation for arrays. Introducing the Array. Motivation
Lecture Outline IMS1906 Programming in VB.NET Week 7 Lecture 1 & 2 Introduction to Arrays Arrays Part 1 and II Angela Carbone Monash University School of Information Management and Systems Defining Arrays
More informationName: Class: Date: Access Module 2
1. To create a new query in Design view, click CREATE on the ribbon to display the CREATE tab and then click the button to create a new query. a. Query b. Design View c. Query Design d. Select Query ANSWER:
More informationIntroduction to Computer Science Midterm 3 Fall, Points
Introduction to Computer Science Fall, 2001 100 Points Notes 1. Tear off this sheet and use it to keep your answers covered at all times. 2. Turn the exam over and write your name next to the staple. Do
More informationLISTS WITH PYTHON. José M. Garrido Department of Computer Science. May College of Computing and Software Engineering Kennesaw State University
LISTS WITH PYTHON José M. Garrido Department of Computer Science May 2015 College of Computing and Software Engineering Kennesaw State University c 2015, J. M. Garrido Lists with Python 2 Lists with Python
More informationSchool of Computer Science CPS109 Course Notes Set 7 Alexander Ferworn Updated Fall 15 CPS109 Course Notes 7
CPS109 Course Notes 7 Alexander Ferworn Unrelated Facts Worth Remembering The most successful people in any business are usually the most interesting. Don t confuse extensive documentation of a situation
More informationCOMP284 Scripting Languages Lecture 3: Perl (Part 2) Handouts
COMP284 Scripting Languages Lecture 3: Perl (Part 2) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool
More informationUser Guide of UNCTAD Global Database on Creative Economy
User Guide of UNCTAD Global Database on Creative Economy Introduction to UNCTAD Global Database on Creative Economy This user guide introduces UNCTAD Global Database on Creative Economy and provides basic
More informationMicrosoft Excel 2010
Microsoft Excel 2010 omar 2013-2014 First Semester 1. Exploring and Setting Up Your Excel Environment Microsoft Excel 2010 2013-2014 The Ribbon contains multiple tabs, each with several groups of commands.
More informationArrays. Storing Multiple Values
Arrays Storing Multiple Values Motels If you have a room in a motel and they give you room 5, which room is it? 1 2 3 4 5 6 Hotels If you have room 1541 in the Deluxe Ritz Hilton, which floor would you
More informationInstructor: Eng.Omar Al-Nahal
Faculty of Engineering & Information Technology Software Engineering Department Computer Science [2] Lab 6: Introduction in arrays Declaring and Creating Arrays Multidimensional Arrays Instructor: Eng.Omar
More informationUnit 3 Decision making, Looping and Arrays
Unit 3 Decision making, Looping and Arrays Decision Making During programming, we have a number of situations where we may have to change the order of execution of statements based on certain conditions.
More informationKingdom of Saudi Arabia Princes Nora bint Abdul Rahman University College of Computer Since and Information System CS242 ARRAYS
Kingdom of Saudi Arabia Princes Nora bint Abdul Rahman University College of Computer Since and Information System CS242 1 ARRAYS Arrays 2 Arrays Structures of related data items Static entity (same size
More informationChapter 5. Repetition. Contents. Introduction. Three Types of Program Control. Two Types of Repetition. Three Syntax Structures for Looping in C++
Repetition Contents 1 Repetition 1.1 Introduction 1.2 Three Types of Program Control Chapter 5 Introduction 1.3 Two Types of Repetition 1.4 Three Structures for Looping in C++ 1.5 The while Control Structure
More informationProgramming for Electrical and Computer Engineers. Pointers and Arrays
Programming for Electrical and Computer Engineers Pointers and Arrays Dr. D. J. Jackson Lecture 12-1 Introduction C allows us to perform arithmetic addition and subtraction on pointers to array elements.
More informationChapter 7: Arrays and the ArrayList Class
Chapter 7: Arrays and the ArrayList Class Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 7 discusses the following main topics: Introduction
More informationM i c r o s o f t E x c e l A d v a n c e d. Microsoft Excel 2010 Advanced
Microsoft Excel 2010 Advanced 0 Working with Rows, Columns, Formulas and Charts Formulas A formula is an equation that performs a calculation. Like a calculator, Excel can execute formulas that add, subtract,
More informationUNIT 2 UNDERSTANDING ARRAYS AND LISTS IN C#
UNIT 2 UNDERSTANDING ARRAYS AND LISTS IN C# UNIT 2 UNDERSTANDING ARRAYS AND LISTS IN C#... 1 USING ARRAYS IN C#... 2 THE CONCEPT OF AN ARRAY... 2 IMPORTANT DETAILS ABOUT ARRAYS IN C#... 2 SEVERAL EXAMPLES
More informationMultiple-Subscripted Arrays
Arrays in C can have multiple subscripts. A common use of multiple-subscripted arrays (also called multidimensional arrays) is to represent tables of values consisting of information arranged in rows and
More informationLab 09: Advanced SQL
CIS395 - BMCC - Spring 2018 04/25/2018 Lab 09: Advanced SQL A - Use Simple Loops with EXIT Conditions In this exercise, you use the EXIT condition to terminate a simple loop, and a special variable, v_counter,
More informationSQL - Tables. SQL - Create a SQL Table. SQL Create Table Query:
SQL - Tables Data is stored inside SQL tables which are contained within SQL databases. A single database can house hundreds of tables, each playing its own unique role in th+e database schema. While database
More informationCSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York
CSc 10200! Introduction to Computing Lecture 2-3 Edgardo Molina Fall 2013 City College of New York 1 C++ for Engineers and Scientists Third Edition Chapter 2 Problem Solving Using C++ 2 Objectives In this
More informationMicrosoft Visual Basic 2005: Reloaded
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program Objectives After studying this chapter, you should be able to: Include the selection structure in pseudocode
More informationArrays. Theoretical Part. Contents. Keywords. Programming with Java module 3
Programming with Java module 3 Arrays Theoretical Part Contents 1 Module Overview 3 1.1 One-dimensional arrays.......................... 3 1.2 Declaring arrays............................... 3 1.3 Generating
More informationPrinciples of Programming. Chapter 6: Arrays
Chapter 6: Arrays In this chapter, you will learn about Introduction to Array Array declaration Array initialization Assigning values to array elements Reading values from array elements Simple Searching
More informationThis page intentionally left blank
This page intentionally left blank Starting Out With Visual Basic: International Edition Table of Contents Cover Contents Preface Chapter 1 Introduction to Programming and Visual Basic 1.1 Computer Systems:
More informationTransform data - Compute Variables
Transform data - Compute Variables Contents TRANSFORM DATA - COMPUTE VARIABLES... 1 Recode Variables... 3 Transform data - Compute Variables With MAXQDA Stats you can perform calculations on a selected
More informationAccess Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information
Tutorial A database is a computerized record keeping system used to collect, store, analyze and report electronic information for a variety of purposes. Microsoft Access is a database. There are three
More informationAn array is a collection of data that holds fixed number of values of same type. It is also known as a set. An array is a data type.
Data Structures Introduction An array is a collection of data that holds fixed number of values of same type. It is also known as a set. An array is a data type. Representation of a large number of homogeneous
More informationProgramming Language 2 (PL2)
Programming Language 2 (PL2) 337.1.1 - Explain rules for constructing various variable types of language 337.1.2 Identify the use of arithmetical and logical operators 337.1.3 Explain the rules of language
More informationBITG 1113: Array (Part 1) LECTURE 8
BITG 1113: Array (Part 1) LECTURE 8 1 1 LEARNING OUTCOMES At the end of this lecture, you should be able to: 1. Describe the fundamentals of arrays 2. Describe the types of array: One Dimensional (1 D)
More informationLoops / Repetition Statements
Loops / Repetition Statements Repetition statements allow us to execute a statement multiple times Often they are referred to as loops C has three kinds of repetition statements: the while loop the for
More informationLecture 3 Tao Wang 1
Lecture 3 Tao Wang 1 Objectives In this chapter, you will learn about: Arithmetic operations Variables and declaration statements Program input using the cin object Common programming errors C++ for Engineers
More informationBurrows & Langford Chapter 10 page 1 Learning Programming Using VISUAL BASIC.NET
Burrows & Langford Chapter 10 page 1 CHAPTER 10 WORKING WITH ARRAYS AND COLLECTIONS Imagine a mail-order company that sells products to customers from all 50 states in the United States. This company is
More informationOne-dimensional Array
One-dimensional Array ELEC 206 Prof. Siripong Potisuk 1 Defining 1-D Array Also known as a vector A list of numbers arranged in a row row vector or a column column vector A scalar variable is a one-element
More informationData Structures. Chapter 04. 3/10/2016 Md. Golam Moazzam, Dept. of CSE, JU
Data Structures Chapter 04 1 Linear Array A linear array is a list of finite number N of homogeneous data elements such that: The elements of the array are referenced respectively by an index set consisting
More informationQuery Studio Training Guide Cognos 8 February 2010 DRAFT. Arkansas Public School Computer Network 101 East Capitol, Suite 101 Little Rock, AR 72201
Query Studio Training Guide Cognos 8 February 2010 DRAFT Arkansas Public School Computer Network 101 East Capitol, Suite 101 Little Rock, AR 72201 2 Table of Contents Accessing Cognos Query Studio... 5
More informationFormulas and Functions
Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.
More informationAccess Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information
Tutorial A database is a computerized record keeping system used to collect, store, analyze and report electronic information for a variety of purposes. Microsoft Access is a database. There are three
More informationCS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG
CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 8: SEP. 29TH INSTRUCTOR: JIAYIN WANG 1 Notice Prepare the Weekly Quiz The weekly quiz is for the knowledge we learned in the previous week (both the
More informationBubble sort is so named because the numbers are said to bubble into their correct positions! Bubble Sort
Sorting Sorting is the process of placing elements from a collection in some kind of order. For example, a list of words could be sorted alphabetically or by length. A list of cities could be sorted by
More informationIntroduction To Programming. Chapter 5: Arrays and More
Introduction To Programming Chapter 5: Arrays and More Introduction Arrays are like groups of variables that allow you to store sets of similar data A single dimension array is useful for storing and working
More informationArrays (Deitel chapter 7)
Arrays (Deitel chapter 7) Plan Arrays Declaring and Creating Arrays Examples Using Arrays References and Reference Parameters Passing Arrays to Methods Sorting Arrays Searching Arrays: Linear Search and
More informationMicrosoft Visual Basic 2012: Reloaded
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter Five More on the Selection Structure Objectives After studying this chapter, you should be able to: Determine whether a solution requires a nested
More information