To store a single number you would declare one Integer variable. To store three numbers you would need three variables:

Size: px
Start display at page:

Download "To store a single number you would declare one Integer variable. To store three numbers you would need three variables:"

Transcription

1 Part 1 Basic Topics Chapter 10 Arrays What is an array? To store a single number you would declare one Integer variable. To store three numbers you would need three variables: Dim FirstNumber, SecondNumber, ThirdNumber As Integer What about storing hundreds or even thousands of numbers? Clearly things get difficult if not impossible! An array is a data structure that stores as many items as you require using a single variable. All the items must be the same data type. Thus you can store an array of Integers, an array of Strings and so on. The only way to mix the data types is to store records in the array, but this is the subject of the next chapter. You have already used the array data structure, probably without realising it. For example in program 2.1 you used the SelectedIndex property of a list box to identify which item in the list box is the currently selected one. Visual Basic numbers the items from 0. So if you had a list box named lstemployees, Visual Basic.NET stores the 4 th item as lstemployees(3). How to declare an array To declare an array that can store 5 whole numbers you would write the following: Dim Numbers(4) As Integer The storage slots in the array are called subscripts. In figure 10.1 the variable Numbers stores all the data in the array. Numbers(1), for example, refers to the contents of subscript 1, i.e. 78, and Numbers(4) to Numbers(1) Numbers(4) Figure 10.1: An array holding 5 integers Earlier versions of Visual Basic allowed you to start the indexing of an array from values other than 0 but this is not now supported. Static and Dynamic arrays A static array is one whose size is fixed throughout the program. A dynamic array can grow and shrink in size as the program runs. First declare the array without indicating its size by using empty brackets. Then ReDim it with the required size at the point in your code where you want it to change. For example: 112

2 Chapter 10 Arrays Dim Names() As String 'use empty brackets for first declaration 'code to do something unrelated to the array goes here ReDim Names(29) As String 'resize array to store 30 items 'code to add names to the array goes here If we later ReDim the array again to hold twice as many items, its contents will be lost unless we use the keyword Preserve: ReDim Preserve Names(59) As String 'array can now hold 60 items Processing an array Suppose you have declared an array to hold 40 exam marks as follows: Dim ExamMarks(39) As Integer To store an exam mark in the 4 th subscript of the array you could write: Mark = txtexammark.text ExamMarks(3) = Mark Numeric literals, such as 3 in the above example, are not often used to identify a subscript in the array. More often you use a variable. Assuming NumberOfMarks stores how many numbers are in the array, the code below displays the array s contents: For Index = 0 To NumberOfMarks - 1 lstmarks.items.add(exammarks(index)) Next Index PROGRAM 10.1 Array to hold numbers Specification Allow the user to enter up to 5 numbers and store them in an array. Output an appropriate message if the user attempts to store a 6 th number. Allow the user to display the contents of the array at any time, and to enter a number to be searched for in the array. Display the result of this search whether the number is in the array or not. 1. Open a new project and design the form using figure Name the buttons btnaddtoarray, btndisplay and btnfindnumber. Name the text boxes for input and searching txtnumber and txtsearchnumber respectively, name the list box for output lstnumbers, and the label to display the result of the search lbldisplaysearch. 2. Declare the array and an index into the array as global variables. These must be globals because they will be used in two event procedures. Dim Numbers(4) As Integer Dim CurrentIndex As Integer 'currently used subscript of the array 3. In the form s Load event procedure initialise CurrentIndex to -1 because, as step 4 shows, the code to add an item to the array starts by adding 1 to its value. The first time this is done we need it incremented to 0, which is the first subscript in the array. 113

3 Part 1 Basic Topics CurrentIndex = In the Click event for the button to add a number to the array, you need to check if the array is full. If it is not full store the number in Numbers(CurrentIndex), i.e. in the current (free) subscript. Private Sub btnaddtoarray_click(...) Handles btnaddtoarray.click Dim Number As Integer Number = txtnumber.text If CurrentIndex = 4 Then 'array is full (has 5 numbers in it) MsgBox("The array is FULL!") 'array not full CurrentIndex = CurrentIndex + 1 'Move to next free subscript in array Numbers(CurrentIndex) = Number 'and store the number in it txtnumber.text = "" 'Clear text box ready for next number txtnumber.focus 'and place cursor in it Figure 10.2: Program 10.1 Five numbers have been stored and a number searched for 5. Because CurrentIndex also stores how many numbers there are in the array, it can be used to control a For Next loop to display the array s contents. In the Click event of the Display array button, type in: Private Sub btndisplay_click(...) Handles btndisplay.click Dim Index As Integer lstnumbers.items.clear 'Clear contents of list box or current numbers 'in array will be added to list box items For Index = 0 To CurrentIndex 'Display each used subscript in array lstnumbers.items.add(numbers(index)) Next Index 'in the list box 114

4 Chapter 10 Arrays 6. Run the program and check that the storage and display of numbers works. 7. To search the array for the number entered by the user the content of each array subscript must be examined, until either you find what you re looking for, or you reach the last number in the array without finding it. A Boolean value, Found, is initialised to false and switched to True if the number is found. It is used as part of the multiple condition to get out of the loop. The code used here is the standard linear search, and is one that you might find very useful in your project. Private Sub btnfindnumber_click(...) Handles btnfindnumber.click Dim Index As Integer Dim Found As Boolean Dim SearchNumber As Integer Index = 0 Found = False 'searching hasn t started yet so Found should be false SearchNumber = txtsearchnumber.text Do While (Found = False) And (Index <= CurrentIndex)'One repetition of 'the loop processes one number in the array If Numbers(Index) = SearchNumber Then Found = True 'Current subscript does not have number being searched for Index = Index + 1 'so go to the next subscript in the array Loop If Found Then 'i.e. if Found = true lbldisplaysearch.text = "This number IS in the array" lbldisplaysearch.text = "This number is NOT in the array" 8. Run the program and test the search code with a number that is present in the array and then with one that is not. Passing arrays to procedures end of Program 10.1 Some arrays can be very large. Since an actual parameter passed by value makes a copy of the contents of a parameter and passes this to the procedure, this can use up quite a lot of RAM if the array is very large. A parameter passed by reference sends only its RAM address. Whatever the size of the array, this is simply where its storage in RAM starts from and is a very small overhead. Some languages only let you send arrays by reference. Others, like Visual Basic, allow passing by value as well. Suppose you have declared an array to hold 40 people s names as follows: Dim Names(39) As String To pass Names by value to a function FindName, which returns True if a particular name is present, you might write: 115

5 Part 1 Basic Topics Found = FindName(SearchName, Names) 'actual parameter in function call.. Public Function FindName(ByVal WantedName As String, _ ByVal NameArray() As String) As Boolean The actual parameter, Names, has no empty brackets but the the formal parameter it is matched to, NameArray, must have them. PROGRAM 10.2 Program 10.1 with a function to search the array Specification Identical to program 10.1 but use a general procedure to search the array for the required number. In Program 10.1 several lines of code in the Click event for btnfindnumber carried out the search of the array. This task could have been put into a general procedure. If we take the procedure s job as simply reporting whether or not the number is present, and let the event procedure handle displaying the result of the search, then we can use a function with a Boolean return value. 1. Open a new project. Right-click Form1.vb in the Solution Explorer and select Delete. Confirm the deletion. Select File/Add Existing Item. Select Form1.vb from Program 10-1 and click Open. A copy of Form1 will be added to the Solution Explorer. 2. We need to change the code in the Click event for btnfindnumber (step 7 of program 10.1). Since its task is now to call the function to search for the required number and to output an appropriate message, any code which contributes to the searching itself can be removed. This means we can remove the variable Index and the loop. The function is passed the number to search for and the array. Passing the array is actually not necessary since it is a global variable and has scope in the function FindNumber, but it is included here simply to illustrate how to pass an array as a parameter. The new code should look as follows: Private Sub btnfindnumber_click(...) Handles btnfindnumber.click Dim Found As Boolean Dim SearchNumber As Integer SearchNumber = txtsearchnumber.text Found = FindNumber(SearchNumber, Numbers) 'call the function If Found Then 'i.e. if Found = true lbldisplaysearch.text = "This number IS in the array" lbldisplaysearch.text = "This number is NOT in the array" The return value from the function FindNumber is stored in the Boolean Found and this is used to output the message. 3. Write the function s declaration below the code in step 2. Public Function FindNumber(ByVal WantedNumber As Integer, _ ByVal NumberArray() As Integer) As Boolean 116

6 Chapter 10 Arrays Both formal parameters can be passed by value because we do not need to change their contents. Since the function must return whether or not the number is present, the return value is declared, outside the parameter brackets, as Boolean. 4. Complete the code to carry out the search and return a true or false value as shown below. The search code is the same as that in program 10.1, except that the formal parameter, WantedNumber, is used. Dim Index As Integer Dim Found As Boolean Found = False Index = 0 Do While (Found = False) And (Index <= CurrentIndex) If NumberArray(Index) = WantedNumber Then Found = True Index = Index + 1 Loop If Found Then Return True 'function s return value is True or False Return False End Function 5. Run the program and check that the function works when the Find number button is clicked. Two-dimensional arrays end of Program 10.2 All the arrays so far have been one-dimensional. Suppose you wished to store a firm s quarterly sales figures for the decade This requires 4 (quarters) x 10 (years) = 40 pieces of data. You could declare a two-dimensional array to hold this data as follows: Dim SalesFigures(9, 3) As Decimal '10 rows (years), 4 columns (quarters) After running the following code SalesFigures(0, 2) = SalesFigures(8, 3) = the array would look like the matrix shown in figure The years are the rows and the quarters the columns. You can have arrays with more than two dimensions, but it s unlikely you would ever need to use one. Two-dimensional arrays are useful for storing data for some mathematical problems, but in business type problems they are less useful because all their data items must be of the same data type. An array of records (covered in the next chapter) is often a more convenient data structure. 117

7 Part 1 Basic Topics (1990) SalesFigures(0, 2) (1991) 1 (1998) SalesFigures(8, 3) (1999) 9 Figure 10.3: A two-dimensional array Control arrays A control array is a group of controls which are all of the same type. You can have a control array of text boxes, of buttons and so on. You declare a control array as you would an ordinary array. For example to have an array of 3 text boxes, first declare the array and then populate it with the text boxes: Dim TextBoxArray(2) As TextBox txttextboxarray(0) = txtnumber1 txttextboxarray(1) = txtnumber2 txttextboxarray(2) = txtnumber3 If you then wished to display the numbers 10, 20 and 30 in these text boxes you would write: For Index = 1 To 3 TextBoxArray(Index - 1).Text = Index * 10 Next Index PROGRAM 10.3 A control array Specification Represent the 4 tennis courts owned by a small tennis club by numbered labels on a form. They should be coloured green when the program starts. The user should enter a number from 1 to 4 in a text box, and then click a button to change the colour of the corresponding tennis court to red to show that it is in use. Figure 10.4 shows that court 3 is in use. 1. Open a new project. Build the form using figure Name the four tennis court labels lblcourt1 to lblcourt4 and set their Text property to 1 to 4 as appropriate. Set their BackColor property to Green by clicking the small button in this property, selecting the Custom tab and then selecting any green colour. Name the text box txtnumber and the button btnok. 118

8 Chapter 10 Arrays Figure 10.4: Program 10.3 Tennis court 3 is in use 2. The control array will consist of the four tennis court labels. Declare it as a form variable: Dim lblcourts(3) As Label 3. In the form s Load event we need to assign each of the tennis court labels to the control array. lblcourts(0) = lblcourt1 lblcourts(1) = lblcourt2 lblcourts(2) = lblcourt3 lblcourts(3) = lblcourt4 4. In the Click event for the OK button declare the local variables and store the court number. Private Sub btnok_click(...) Handles btnok.click Dim CourtNumber As String Dim Index As Short CourtNumber = txtnumber.text 5. We then need to loop through the control array to find the relevant label and colour it red: For Index = 0 To 3 If lblcourts(index).text = CourtNumber Then lblcourts(index).backcolor = Color.Red Next Index 6. Run the program. Enter a number from 1 to 4 in the text box and click the button. The corresponding court will be coloured red. Shared event handler end of Program 10.3 The code templates provided for every event procedure we have used so far include the keyword Handles. A common one has been a button s Click event: 119

One Dimension Array: Declaring a fixed-array, if array-name is the name of an array

One Dimension Array: Declaring a fixed-array, if array-name is the name of an array Arrays in Visual Basic 6 An array is a collection of simple variables of the same type to which the computer can efficiently assign a list of values. Array variables have the same kinds of names as simple

More information

Company Setup 401k Tab

Company Setup 401k Tab Reference Sheet Company Setup 401k Tab Use this page to define company level 401(k) information, including employee status codes, 401(k) sources, and 401(k) funds. The definitions you create here become

More information

Visual Basic Programming. An Introduction

Visual Basic Programming. An Introduction Visual Basic Programming An Introduction Why Visual Basic? Programming for the Windows User Interface is extremely complicated. Other Graphical User Interfaces (GUI) are no better. Visual Basic provides

More information

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may Chapter 1 Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may work on applications that contain hundreds,

More information

VB.NET Programming Fundamentals

VB.NET Programming Fundamentals Chapter 3 Objectives Programming Fundamentals In this chapter, you will: Learn about the programming language Write a module definition Use variables and data types Compute with Write decision-making statements

More information

EET 310 Programming Tools

EET 310 Programming Tools Introduction EET 310 Programming Tools LabVIEW Part 1 (LabVIEW Environment) LabVIEW (short for Laboratory Virtual Instrumentation Engineering Workbench) is a graphical programming environment from National

More information

Notes on Excel Forecasting Tools. Data Table, Scenario Manager, Goal Seek, & Solver

Notes on Excel Forecasting Tools. Data Table, Scenario Manager, Goal Seek, & Solver Notes on Excel Forecasting Tools Data Table, Scenario Manager, Goal Seek, & Solver 2001-2002 1 Contents Overview...1 Data Table Scenario Manager Goal Seek Solver Examples Data Table...2 Scenario Manager...8

More information

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010.

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010. Hands-On Lab Building a Data-Driven Master/Detail Business Form using Visual Studio 2010 Lab version: 1.0.0 Last updated: 12/10/2010 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING THE APPLICATION S

More information

Quosal Form Designer Training Documentation

Quosal Form Designer Training Documentation Chapter 4 Advanced Form Design Concepts There is a huge amount of customization that can be done with the Report Designer, and basic quote forms only scratch the surface. Learning how to use the advanced

More information

TRANSITION FROM TEACHING VB6 TO VB.NET

TRANSITION FROM TEACHING VB6 TO VB.NET TRANSITION FROM TEACHING VB6 TO VB.NET Azad Ali, Butler County Community College azad.ali@bc3.edu David Wood, Robert Morris University wood@rmu.edu ABSTRACT The upgrade of Microsoft Visual Basic from version

More information

Visual Basic 2010 Essentials

Visual Basic 2010 Essentials Visual Basic 2010 Essentials Visual Basic 2010 Essentials First Edition 2010 Payload Media. This ebook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited.

More information

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9. Working with Tables in Microsoft Word The purpose of this document is to lead you through the steps of creating, editing and deleting tables and parts of tables. This document follows a tutorial format

More information

Excel Reports and Macros

Excel Reports and Macros Excel Reports and Macros Within Microsoft Excel it is possible to create a macro. This is a set of commands that Excel follows to automatically make certain changes to data in a spreadsheet. By adding

More information

Ofgem Carbon Savings Community Obligation (CSCO) Eligibility System

Ofgem Carbon Savings Community Obligation (CSCO) Eligibility System Ofgem Carbon Savings Community Obligation (CSCO) Eligibility System User Guide 2015 Page 1 Table of Contents Carbon Savings Community Obligation... 3 Carbon Savings Community Obligation (CSCO) System...

More information

Excel -- Creating Charts

Excel -- Creating Charts Excel -- Creating Charts The saying goes, A picture is worth a thousand words, and so true. Professional looking charts give visual enhancement to your statistics, fiscal reports or presentation. Excel

More information

Lecture 2 Mathcad Basics

Lecture 2 Mathcad Basics Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority

More information

The VB development environment

The VB development environment 2 The VB development environment This chapter explains: l how to create a VB project; l how to manipulate controls and their properties at design-time; l how to run a program; l how to handle a button-click

More information

Excel & Visual Basic for Applications (VBA)

Excel & Visual Basic for Applications (VBA) Excel & Visual Basic for Applications (VBA) The VBA Programming Environment Recording Macros Working with the Visual Basic Editor (VBE) 1 Why get involved with this programming business? If you can't program,

More information

UNIVERSITY OF CALGARY Information Technologies WEBFORMS DRUPAL 7 WEB CONTENT MANAGEMENT

UNIVERSITY OF CALGARY Information Technologies WEBFORMS DRUPAL 7 WEB CONTENT MANAGEMENT UNIVERSITY OF CALGARY Information Technologies WEBFORMS DRUPAL 7 WEB CONTENT MANAGEMENT Table of Contents Creating a Webform First Steps... 1 Form Components... 2 Component Types.......4 Conditionals...

More information

Using the For Each Statement to 'loop' through the elements of an Array

Using the For Each Statement to 'loop' through the elements of an Array Using the For Each Statement to 'loop' through the elements of an Array This month's article was inspired by a Visual Basic tip I saw recently that touted the advantages of using LBound and Ubound functions

More information

ITS Training Class Charts and PivotTables Using Excel 2007

ITS Training Class Charts and PivotTables Using Excel 2007 When you have a large amount of data and you need to get summary information and graph it, the PivotTable and PivotChart tools in Microsoft Excel will be the answer. The data does not need to be in one

More information

Introduction to Custom GIS Application Development for Windows. By: Brian Marchionni

Introduction to Custom GIS Application Development for Windows. By: Brian Marchionni Introduction to Custom GIS Application Development for Windows By: Brian Marchionni MapWindow GIS Introduction to Custom GIS Application Development for Windows Copyright 2008 Brian Marchionni All Rights

More information

Designing a Graphical User Interface

Designing a Graphical User Interface Designing a Graphical User Interface 1 Designing a Graphical User Interface James Hunter Michigan State University ECE 480 Design Team 6 5 April 2013 Summary The purpose of this application note is to

More information

Styles, Tables of Contents, and Tables of Authorities in Microsoft Word 2010

Styles, Tables of Contents, and Tables of Authorities in Microsoft Word 2010 Styles, Tables of Contents, and Tables of Authorities in Microsoft Word 2010 TABLE OF CONTENTS WHAT IS A STYLE?... 2 VIEWING AVAILABLE STYLES IN THE STYLES GROUP... 2 APPLYING STYLES FROM THE STYLES GROUP...

More information

MICROSOFT ACCESS STEP BY STEP GUIDE

MICROSOFT ACCESS STEP BY STEP GUIDE IGCSE ICT SECTION 11 DATA MANIPULATION MICROSOFT ACCESS STEP BY STEP GUIDE Mark Nicholls ICT Lounge P a g e 1 Contents Task 35 details Page 3 Opening a new Database. Page 4 Importing.csv file into the

More information

FORM FRAMEWORX. SharePoint 2013 App

FORM FRAMEWORX. SharePoint 2013 App FORM FRAMEWORX SharePoint 2013 App Contents 1. To Create New Form Step By Step Guide:... 2 2. To Create New Form using existing Template Step By Step Guide:... 7 3. To Fill a Form Step by Step Guide:...

More information

LabVIEW Day 6: Saving Files and Making Sub vis

LabVIEW Day 6: Saving Files and Making Sub vis LabVIEW Day 6: Saving Files and Making Sub vis Vern Lindberg You have written various vis that do computations, make 1D and 2D arrays, and plot graphs. In practice we also want to save that data. We will

More information

AP Computer Science Java Mr. Clausen Program 9A, 9B

AP Computer Science Java Mr. Clausen Program 9A, 9B AP Computer Science Java Mr. Clausen Program 9A, 9B PROGRAM 9A I m_sort_of_searching (20 points now, 60 points when all parts are finished) The purpose of this project is to set up a program that will

More information

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic

More information

During the process of creating ColorSwitch, you will learn how to do these tasks:

During the process of creating ColorSwitch, you will learn how to do these tasks: GUI Building in NetBeans IDE 3.6 This short tutorial guides you through the process of creating an application called ColorSwitch. You will build a simple program that enables you to switch the color of

More information

ClientAce WPF Project Example

ClientAce WPF Project Example Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

FrontPage 2003: Forms

FrontPage 2003: Forms FrontPage 2003: Forms Using the Form Page Wizard Open up your website. Use File>New Page and choose More Page Templates. In Page Templates>General, choose Front Page Wizard. Click OK. It is helpful if

More information

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction Standard 2: Technology and Society Interaction Technology and Ethics Analyze legal technology issues and formulate solutions and strategies that foster responsible technology usage. 1. Practice responsible

More information

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your

More information

Microsoft Access Database

Microsoft Access Database 1 of 6 08-Jun-2010 12:38 Microsoft Access Database Introduction A Microsoft Access database is primarily a Windows file. It must have a location, also called a path, which indicates how the file can be

More information

MICROSOFT EXCEL STEP BY STEP GUIDE

MICROSOFT EXCEL STEP BY STEP GUIDE IGCSE ICT SECTION 14 DATA ANALYSIS MICROSOFT EXCEL STEP BY STEP GUIDE Mark Nicholls ICT Lounge Data Analysis Self Study Guide Contents Learning Outcomes Page 3 What is a Data Model?... Page 4 Spreadsheet

More information

Integrating Microsoft Word with Other Office Applications

Integrating Microsoft Word with Other Office Applications Integrating Microsoft Word with Other Office Applications The Learning Center Staff Education 257-79226 http://www.mc.uky.edu/learningcenter/ Copyright 2006 Objectives After completing this course, you

More information

Presentations and PowerPoint

Presentations and PowerPoint V-1.1 PART V Presentations and PowerPoint V-1.2 Computer Fundamentals V-1.3 LESSON 1 Creating a Presentation After completing this lesson, you will be able to: Start Microsoft PowerPoint. Explore the PowerPoint

More information

UCINET Quick Start Guide

UCINET Quick Start Guide UCINET Quick Start Guide This guide provides a quick introduction to UCINET. It assumes that the software has been installed with the data in the folder C:\Program Files\Analytic Technologies\Ucinet 6\DataFiles

More information

0 Introduction to Data Analysis Using an Excel Spreadsheet

0 Introduction to Data Analysis Using an Excel Spreadsheet Experiment 0 Introduction to Data Analysis Using an Excel Spreadsheet I. Purpose The purpose of this introductory lab is to teach you a few basic things about how to use an EXCEL 2010 spreadsheet to do

More information

Advanced Microsoft Excel 2010

Advanced Microsoft Excel 2010 Advanced Microsoft Excel 2010 Table of Contents THE PASTE SPECIAL FUNCTION... 2 Paste Special Options... 2 Using the Paste Special Function... 3 ORGANIZING DATA... 4 Multiple-Level Sorting... 4 Subtotaling

More information

Using Pivot Tables in Microsoft Excel 2003

Using Pivot Tables in Microsoft Excel 2003 Using Pivot Tables in Microsoft Excel 2003 Introduction A Pivot Table is the name Excel gives to what is more commonly known as a cross-tabulation table. Such tables can be one, two or three-dimensional

More information

In-Depth Guide Advanced Spreadsheet Techniques

In-Depth Guide Advanced Spreadsheet Techniques In-Depth Guide Advanced Spreadsheet Techniques Learning Objectives By reading and completing the activities in this chapter, you will be able to: Create PivotTables using Microsoft Excel Create scenarios

More information

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

How To Analyze Data In Excel 2003 With A Powerpoint 3.5 Microsoft Excel 2003 Data Analysis Larry F. Vint, Ph.D lvint@niu.edu 815-753-8053 Technical Advisory Group Customer Support Services Northern Illinois University 120 Swen Parson Hall DeKalb, IL 60115 Copyright

More information

Creating and Formatting Charts in Microsoft Excel

Creating and Formatting Charts in Microsoft Excel Creating and Formatting Charts in Microsoft Excel This document provides instructions for creating and formatting charts in Microsoft Excel, which makes creating professional-looking charts easy. The chart

More information

Organizing image files in Lightroom part 2

Organizing image files in Lightroom part 2 Organizing image files in Lightroom part 2 Hopefully, after our last issue, you've spent some time working on your folder structure and now have your images organized to be easy to find. Whether you have

More information

How to Excel with CUFS Part 2 Excel 2010

How to Excel with CUFS Part 2 Excel 2010 How to Excel with CUFS Part 2 Excel 2010 Course Manual Finance Training Contents 1. Working with multiple worksheets 1.1 Inserting new worksheets 3 1.2 Deleting sheets 3 1.3 Moving and copying Excel worksheets

More information

EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE

EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE 1 The primary reports used in the budgeting process, particularly for Financial Review, are the Quarterly Financial Review Reports. These expense and revenue reports

More information

Python Lists and Loops

Python Lists and Loops WEEK THREE Python Lists and Loops You ve made it to Week 3, well done! Most programs need to keep track of a list (or collection) of things (e.g. names) at one time or another, and this week we ll show

More information

Scripting with CAMMaster And Visual Basic.NET

Scripting with CAMMaster And Visual Basic.NET Scripting with CAMMaster And Visual Basic.NET Introduction CAMMaster is a very high performance CAM software program. Most of the functions that you can perform manually can be automated by utilizing the

More information

SPSS (Statistical Package for the Social Sciences)

SPSS (Statistical Package for the Social Sciences) SPSS (Statistical Package for the Social Sciences) What is SPSS? SPSS stands for Statistical Package for the Social Sciences The SPSS home-page is: www.spss.com 2 What can you do with SPSS? Run Frequencies

More information

To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.

To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click. EDIT202 Spreadsheet Lab Assignment Guidelines Getting Started 1. For this lab you will modify a sample spreadsheet file named Starter- Spreadsheet.xls which is available for download from the Spreadsheet

More information

CONTENTM WEBSITE MANAGEMENT SYSTEM. Getting Started Guide

CONTENTM WEBSITE MANAGEMENT SYSTEM. Getting Started Guide CONTENTM WEBSITE MANAGEMENT SYSTEM Getting Started Guide Table of Contents CONTENTM WEBSITE MANAGEMENT SYSTEM... 1 GETTING TO KNOW YOUR SITE...5 PAGE STRUCTURE...5 Templates...5 Menus...5 Content Areas...5

More information

Hands-on Exercise 1: VBA Coding Basics

Hands-on Exercise 1: VBA Coding Basics Hands-on Exercise 1: VBA Coding Basics This exercise introduces the basics of coding in Access VBA. The concepts you will practise in this exercise are essential for successfully completing subsequent

More information

Answers to Review Questions Chapter 7

Answers to Review Questions Chapter 7 Answers to Review Questions Chapter 7 1. The size declarator is used in a definition of an array to indicate the number of elements the array will have. A subscript is used to access a specific element

More information

EDIT202 PowerPoint Lab Assignment Guidelines

EDIT202 PowerPoint Lab Assignment Guidelines EDIT202 PowerPoint Lab Assignment Guidelines 1. Create a folder named LABSEC-CCID-PowerPoint. 2. Download the PowerPoint-Sample.avi video file from the course WebCT/Moodle site and save it into your newly

More information

Microsoft Excel 2007 Level 2

Microsoft Excel 2007 Level 2 Information Technology Services Kennesaw State University Microsoft Excel 2007 Level 2 Copyright 2008 KSU Dept. of Information Technology Services This document may be downloaded, printed or copied for

More information

Call Centre Helper - Forecasting Excel Template

Call Centre Helper - Forecasting Excel Template Call Centre Helper - Forecasting Excel Template This is a monthly forecaster, and to use it you need to have at least 24 months of data available to you. Using the Forecaster Open the spreadsheet and enable

More information

Final Examination Semester 2 / Year 2011

Final Examination Semester 2 / Year 2011 Southern College Kolej Selatan 南 方 学 院 Final Examination Semester 2 / Year 2011 COURSE : VISUAL BASIC.NET COURSE CODE : PROG2024 TIME : 2 1/2 HOURS DEPARTMENT : COMPUTER SCIENCE LECTURER : DR. LEE ZHI

More information

Sample. LabVIEW TM Core 1 Course Manual. Course Software Version 2010 August 2010 Edition Part Number 325290B-01

Sample. LabVIEW TM Core 1 Course Manual. Course Software Version 2010 August 2010 Edition Part Number 325290B-01 LabVIEW TM Core 1 Course Manual Course Software Version 2010 August 2010 Edition Part Number 325290B-01 LabVIEW Core 1 Course Manual Copyright 1993 2010 National Instruments Corporation. All rights reserved.

More information

Statgraphics Getting started

Statgraphics Getting started Statgraphics Getting started The aim of this exercise is to introduce you to some of the basic features of the Statgraphics software. Starting Statgraphics 1. Log in to your PC, using the usual procedure

More information

Summary of important mathematical operations and formulas (from first tutorial):

Summary of important mathematical operations and formulas (from first tutorial): EXCEL Intermediate Tutorial Summary of important mathematical operations and formulas (from first tutorial): Operation Key Addition + Subtraction - Multiplication * Division / Exponential ^ To enter a

More information

Prism 6 Step-by-Step Example Linear Standard Curves Interpolating from a standard curve is a common way of quantifying the concentration of a sample.

Prism 6 Step-by-Step Example Linear Standard Curves Interpolating from a standard curve is a common way of quantifying the concentration of a sample. Prism 6 Step-by-Step Example Linear Standard Curves Interpolating from a standard curve is a common way of quantifying the concentration of a sample. Step 1 is to construct a standard curve that defines

More information

HOUR 3 Creating Our First ASP.NET Web Page

HOUR 3 Creating Our First ASP.NET Web Page HOUR 3 Creating Our First ASP.NET Web Page In the last two hours, we ve spent quite a bit of time talking in very highlevel terms about ASP.NET Web pages and the ASP.NET programming model. We ve looked

More information

User Guide for the Junior Lab Scheduling Software

User Guide for the Junior Lab Scheduling Software User Guide for the Junior Lab Scheduling Software Introduction................................................................. 1 Reserving Time on Experiments.............................................

More information

Appendix K Introduction to Microsoft Visual C++ 6.0

Appendix K Introduction to Microsoft Visual C++ 6.0 Appendix K Introduction to Microsoft Visual C++ 6.0 This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++ integrated development environment (IDE):

More information

Excel Tutorial. Bio 150B Excel Tutorial 1

Excel Tutorial. Bio 150B Excel Tutorial 1 Bio 15B Excel Tutorial 1 Excel Tutorial As part of your laboratory write-ups and reports during this semester you will be required to collect and present data in an appropriate format. To organize and

More information

How to test and debug an ASP.NET application

How to test and debug an ASP.NET application Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult

More information

SafeGuard PrivateCrypto 2.40 help

SafeGuard PrivateCrypto 2.40 help SafeGuard PrivateCrypto 2.40 help Document date: September 2009 Contents 1 Introduction... 2 2 Installation... 4 3 SafeGuard PrivateCrypto User Application... 5 4 SafeGuard PrivateCrypto Explorer extensions...

More information

Creating Reports Using Crystal Reports

Creating Reports Using Crystal Reports Creating Reports Using Crystal Reports Creating Reports Using Crystal Reports Objectives Learn how to create reports for Visual Studio.NET applications. Use the Crystal Reports designer to lay out report

More information

Microsoft Excel 2010 Charts and Graphs

Microsoft Excel 2010 Charts and Graphs Microsoft Excel 2010 Charts and Graphs Email: training@health.ufl.edu Web Page: http://training.health.ufl.edu Microsoft Excel 2010: Charts and Graphs 2.0 hours Topics include data groupings; creating

More information

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459)

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Class Time: 6:00 8:05 p.m. (T,Th) Venue: WSL 5 Web Site: www.pbvusd.net/mis260 Instructor Name: Terrell Tucker Office: BDC 127

More information

Microsoft PowerPoint 2010 Computer Jeopardy Tutorial

Microsoft PowerPoint 2010 Computer Jeopardy Tutorial Microsoft PowerPoint 2010 Computer Jeopardy Tutorial 1. Open up Microsoft PowerPoint 2010. 2. Before you begin, save your file to your H drive. Click File > Save As. Under the header that says Organize

More information

Creating A Drip Campaign

Creating A Drip Campaign Downloading and Uploading the ecards 1. Login to Elevated Network at elevatednetwork.com 2. Click on the My Rancon from Dashboard Creating A Drip Campaign 3. Login to My Rancon and click on Marketing ->

More information

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW LabVIEW Day 1 Basics Vern Lindberg LabVIEW first shipped in 1986, with very basic objects in place. As it has grown (currently to Version 10.0) higher level objects such as Express VIs have entered, additional

More information

WESTMORELAND COUNTY PUBLIC SCHOOLS 2011 2012 Integrated Instructional Pacing Guide and Checklist Computer Math

WESTMORELAND COUNTY PUBLIC SCHOOLS 2011 2012 Integrated Instructional Pacing Guide and Checklist Computer Math Textbook Correlation WESTMORELAND COUNTY PUBLIC SCHOOLS 2011 2012 Integrated Instructional Pacing Guide and Checklist Computer Math Following Directions Unit FIRST QUARTER AND SECOND QUARTER Logic Unit

More information

Excel 2007 Basic knowledge

Excel 2007 Basic knowledge Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft

More information

Composite.Community.Newsletter - User Guide

Composite.Community.Newsletter - User Guide Composite.Community.Newsletter - User Guide Composite 2015-11-09 Composite A/S Nygårdsvej 16 DK-2100 Copenhagen Phone +45 3915 7600 www.composite.net Contents 1 INTRODUCTION... 4 1.1 Who Should Read This

More information

Access Tutorial 1 Creating a Database

Access Tutorial 1 Creating a Database Access Tutorial 1 Creating a Database Microsoft Office 2013 Objectives Session 1.1 Learn basic database concepts and terms Start and exit Access Explore the Microsoft Access window and Backstage view Create

More information

This activity will show you how to draw graphs of algebraic functions in Excel.

This activity will show you how to draw graphs of algebraic functions in Excel. This activity will show you how to draw graphs of algebraic functions in Excel. Open a new Excel workbook. This is Excel in Office 2007. You may not have used this version before but it is very much the

More information

Beginner s Matlab Tutorial

Beginner s Matlab Tutorial Christopher Lum lum@u.washington.edu Introduction Beginner s Matlab Tutorial This document is designed to act as a tutorial for an individual who has had no prior experience with Matlab. For any questions

More information

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

Changing the Display Frequency During Scanning Within an ImageControls 3 Application Changing the Display Frequency During Scanning Within an ImageControls 3 Date November 2008 Applies To Kofax ImageControls 2x, 3x Summary This application note contains example code for changing he display

More information

Moving from C++ to VBA

Moving from C++ to VBA Introduction College of Engineering and Computer Science Mechanical Engineering Department Mechanical Engineering 309 Numerical Analysis of Engineering Systems Fall 2014 Number: 15237 Instructor: Larry

More information

Creating Database Tables in Microsoft SQL Server

Creating Database Tables in Microsoft SQL Server Creating Database Tables in Microsoft SQL Server Microsoft SQL Server is a relational database server that stores and retrieves data for multi-user network-based applications. SQL Server databases are

More information

Analytics Canvas Tutorial: Cleaning Website Referral Traffic Data. N m o d a l S o l u t i o n s I n c. A l l R i g h t s R e s e r v e d

Analytics Canvas Tutorial: Cleaning Website Referral Traffic Data. N m o d a l S o l u t i o n s I n c. A l l R i g h t s R e s e r v e d Cleaning Website Referral Traffic Data Overview Welcome to Analytics Canvas's cleaning referral traffic data tutorial. This is one of a number of detailed tutorials in which we explain how each feature

More information

Access Tutorial 2: Tables

Access Tutorial 2: Tables Access Tutorial 2: Tables 2.1 Introduction: The importance of good table design Tables are where data in a database is stored; consequently, tables form the core of any database application. In addition

More information

Introduction to the Visual Studio.NET IDE

Introduction to the Visual Studio.NET IDE 2 Introduction to the Visual Studio.NET IDE Objectives To be introduced to the Visual Studio.NET Integrated Development Environment (IDE). To become familiar with the types of commands contained in the

More information

Named Memory Slots. Properties. CHAPTER 16 Programming Your App s Memory

Named Memory Slots. Properties. CHAPTER 16 Programming Your App s Memory CHAPTER 16 Programming Your App s Memory Figure 16-1. Just as people need to remember things, so do apps. This chapter examines how you can program an app to remember information. When someone tells you

More information

Computer Skills Microsoft Excel Creating Pie & Column Charts

Computer Skills Microsoft Excel Creating Pie & Column Charts Computer Skills Microsoft Excel Creating Pie & Column Charts In this exercise, we will learn how to display data using a pie chart and a column chart, color-code the charts, and label the charts. Part

More information

Instructions for creating a data entry form in Microsoft Excel

Instructions for creating a data entry form in Microsoft Excel 1 of 5 You have several options when you want to enter data manually in Excel. You can enter data in one cell, in several cells at the same time, or on more than one worksheet (worksheet/spreadsheet: The

More information

Excel 2003 A Beginners Guide

Excel 2003 A Beginners Guide Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on

More information

Microsoft Office PowerPoint 2003. Creating a new presentation from a design template. Creating a new presentation from a design template

Microsoft Office PowerPoint 2003. Creating a new presentation from a design template. Creating a new presentation from a design template Microsoft Office PowerPoint 2003 Tutorial 2 Applying and Modifying Text and Graphic Objects 1 Creating a new presentation from a design template Click File on the menu bar, and then click New Click the

More information

Windows XP Pro: Basics 1

Windows XP Pro: Basics 1 NORTHWEST MISSOURI STATE UNIVERSITY ONLINE USER S GUIDE 2004 Windows XP Pro: Basics 1 Getting on the Northwest Network Getting on the Northwest network is easy with a university-provided PC, which has

More information

Flash Objects. Dynamic Content 1

Flash Objects. Dynamic Content 1 Dynamic Content 1 The WebPlus Gallery tab provides a wide range of predesigned Flash banners that you can add to your site, and customize to suit your needs. In addition, it s very easy to add your own

More information

Creating a Database in Access

Creating a Database in Access Creating a Database in Access Microsoft Access is a database application. A database is collection of records and files organized for a particular purpose. For example, you could use a database to store

More information

Google Sites: Site Creation and Home Page Design

Google Sites: Site Creation and Home Page Design Google Sites: Site Creation and Home Page Design This is the second tutorial in the Google Sites series. You should already have your site set up. You should know its URL and your Google Sites Login and

More information

Excel 2007 A Beginners Guide

Excel 2007 A Beginners Guide Excel 2007 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on

More information

Excel 2003: Ringtones Task

Excel 2003: Ringtones Task Excel 2003: Ringtones Task 1. Open up a blank spreadsheet 2. Save the spreadsheet to your area and call it Ringtones.xls 3. Add the data as shown here, making sure you keep to the cells as shown Make sure

More information

SPSS Manual for Introductory Applied Statistics: A Variable Approach

SPSS Manual for Introductory Applied Statistics: A Variable Approach SPSS Manual for Introductory Applied Statistics: A Variable Approach John Gabrosek Department of Statistics Grand Valley State University Allendale, MI USA August 2013 2 Copyright 2013 John Gabrosek. All

More information

About PivotTable reports

About PivotTable reports Page 1 of 8 Excel Home > PivotTable reports and PivotChart reports > Basics Overview of PivotTable and PivotChart reports Show All Use a PivotTable report to summarize, analyze, explore, and present summary

More information