Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures

Size: px
Start display at page:

Download "Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures"

Transcription

1 Microsoft Visual Basic 2005 CHAPTER 6 Loop Structures

2 Objectives Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand the use of counters and accumulators Understand the use of compound operators Chapter 6: Loop Structures 2

3 Objectives Repeat a process using a For Next loop Repeat a process using a Do loop Avoid infinite loops Prime a loop Validate data Chapter 6: Loop Structures 3

4 Objectives Create a nested loop Select the best type of loop Debug using DataTips at breakpoints Publish a finished application using ClickOnce technology Chapter 6: Loop Structures 4

5 Introduction A fundamental process in a computer program is to repeat a series of instructions either while a condition is true (or not true) or until a condition is true (or not true) The process of repeating a set of instructions while a condition is true or until a condition is true is called looping Another term for looping is iteration Chapter 6: Loop Structures 5

6 MenuStrip Object A menu bar is a strip across the top of a window that contains one or more menu names A menu is a group of commands, or items, presented in a list Chapter 6: Loop Structures 6

7 MenuStrip Object With a Windows Form object open in the Visual Studio window, scroll in the Toolbox until the Menus & Toolbars subcategory is visible. If the subcategory is not open, click the + sign next to the Menus & Toolbars subcategory name. Drag the MenuStrip.NET component from the Menus & Toolbars subcategory in the Toolbox to the Windows Form object Release the mouse button With the MenuStrip object selected, scroll in the Properties window until the (Name) property is visible. Change the MenuStrip object name to mnuhighwayradarcheckpoint Chapter 6: Loop Structures 7

8 MenuStrip Object Click the Type Here box on the menu bar. Type &File to identify the File menu, and then press the ENTER key Click File in the MenuStrip object to select it, scroll in the Properties window to the (Name) property, and then change the name to mnufilemenu To add a menu item to the File menu, click the Type Here box below the File menu name. Type &Clear and then press ENTER to create a new menu item named Clear with C as the hot key On the File menu, click Clear to select it, scroll in the Properties window until the (Name) property is visible, and then change the name to mnuclearitem Chapter 6: Loop Structures 8

9 MenuStrip Object Chapter 6: Loop Structures 9

10 Event Handlers for Menu Items In Design view, double-click the Exit menu item to open the code editing window Using IntelliSense, enter the Close procedure call to close the window and terminate the application Chapter 6: Loop Structures 10

11 Standard Items for a Menu Visual Basic 2005 contains an Action Tag that allows you to create a full standard menu bar commonly provided in Windows programs Action tags provide a way for you to specify a set of actions, called smart actions, for an object as you design a form With a new Windows Form object open, drag the MenuStrip.NET component onto the Windows Form object. Click the Action Tag on the MenuStrip object Click Insert Standard Items on the MenuStrip Tasks menu Click File on the menu bar to view the individual menu items and their associated icons on the File menu Chapter 6: Loop Structures 11

12 Standard Items for a Menu Chapter 6: Loop Structures 12

13 InputBox Function The InputBox function displays a dialog box that consists of a message asking for input, an input area, a title, an OK button, and a Cancel button When the user enters the text and clicks the OK button, the InputBox function returns this text as a string If the user clicks the Cancel button, the function returns a null string ("") Chapter 6: Loop Structures 13

14 InputBox Object Default Value The InputBox object can be assigned a default value Declare the variable globally Default Value assigned to a variable Chapter 6: Loop Structures 14

15 InputBox Object for Highway Radar Checkpoint Application Chapter 6: Loop Structures 15

16 Displaying Data Using the ListBox Object Drag the ListBox object from the Toolbox to the Windows Form object where you want to place the ListBox object. When the pointer is in the correct location, release the left mouse button With the ListBox object selected, scroll in the Properties window to the (Name) property. Name the ListBox object lstradarspeed Chapter 6: Loop Structures 16

17 Displaying Data Using the ListBox Object LST for LIST Chapter 6: Loop Structures End One 17

18 Adding Items During Design Assume the lststores ListBox object already has been placed and named on the Windows Form object. Select the ListBox object on the Windows Form object and then click the Items property in the Properties window Click the ellipsis button in the right column of the Items property Click in the String Collection Editor window. Type the following items to represent popular retail stores, pressing ENTER at the end of each line: Abercrombie & Fitch Aeropostale American Eagle Express Hollister Click the OK button Chapter 6: Loop Structures 18

19 Adding Items During Design Chapter 6: Loop Structures 19

20 SelectedItem Property Chapter 6: Loop Structures 20

21 Accumulators, Counters, and Compound Operators A variable that contains an accumulated value such as the total of all the speeds is called an accumulator A variable that always is incremented by a constant value is called a counter How many vehicle speeds the user has entered Chapter 6: Loop Structures 21

22 Accumulators, Counters, and Compound Operators A compound operator allows you to add, subtract, multiply, divide, use modulus or exponents, or concatenate strings, storing the result in the same variable Chapter 6: Loop Structures 22

23 Accumulators, Counters, and Compound Operators Chapter 6: Loop Structures 23

24 Accumulators, Counters, and Compound Operators Chapter 6: Loop Structures 24

25 Using Loops to Perform Repetitive Tasks In the Highway Radar Checkpoint application, the user enters up to 10 vehicle speeds using the InputBox function The repetitive process of entering 10 vehicle speeds can be coded within a loop to simplify the task with fewer lines of code Each repetition of the loop is called an iteration Chapter 6: Loop Structures 25

26 Repeating a Process Using the For Next Loop You can use a For...Next loop when a section of code is to be executed an exact number of times Figure 6-42 Chapter 6: Loop Structures 26

27 Repeating a Process Using the For Next Loop Figures 6-43 and 6-44 Chapter 6: Loop Structures 27

28 Step Value in a For Next Loop A Step value is the value in a For...Next loop that is added to or subtracted from the beginning value on each iteration of the loop Default step value is 1 Can be positive or negative, contain decumals, or include variables and mathematical expressions Figure 6-45 Chapter 6: Loop Structures 28

29 Entering the For Next Loop Code Figure 6-49 and 6-53 Chapter 6: Loop Structures 29

30 Repeating a Process Using a Do Loop In a Do loop, the body of the loop is executed while or until a condition is true or false The Do While loop executes as long as the condition is true The Do Until loop executes until the condition becomes true A top-controlled loop is tested before the loop is entered Body might not be executed Bottom-controlled loops test the condition at the bottom of the loop, so the body of a bottom-controlled loop is executed at least once Body executes at least once Chapter 6: Loop Structures 30

31 Top-Controlled Do While Loops A top-controlled Do While loop begins with the keywords Do While. Next, the condition is specified The body of the loop contains the instructions that are executed as long as the condition is true A loop that does not end is called an infinite loop Figure 6-56 Chapter 6: Loop Structures 31

32 Top-Controlled Do While Loops Chapter 6: Loop Structures 32

33 Entering a Do Loop Using IntelliSense In the code editing window, enter the intscore variable declaration and then press the ENTER key. Type Do While, a space, and then press CTRL+SPACEBAR to display the IntelliSense list. Type ints to highlight intscore in the list Type < 5 and then press the ENTER key. Press CTRL+SPACEBAR to display the IntelliSense list. Type ints to highlight the intscore variable. Complete the statement by typing += 1 and then pressing the ENTER key. Press the DELETE key to delete the blank line Chapter 6: Loop Structures 33

34 Entering a Do Loop Using IntelliSense Chapter 6: Loop Structures 34

35 Bottom-Controlled Do While Loop A bottom-controlled loop works the same way as the top-controlled Do While loop The body of the loop is executed before the condition is checked the first time, guaranteeing at least one iteration of a loop will be completed Chapter 6: Loop Structures 35

36 Bottom-Controlled Do While Loop Chapter 6: Loop Structures 36

37 Do Until Loops Chapter 6: Loop Structures 37

38 User Input Loops Do loops often are written to end the loop when a certain value is entered by the user, or the user performs a certain action such as clicking the Cancel button in an input box Chapter 6: Loop Structures 38

39 Avoiding Infinite Loops An infinite loop is a loop that never ends Chapter 6: Loop Structures 39

40 Priming the Loop Starting a loop with a preset value in the variable(s) tested in the condition is called priming the loop Chapter 6: Loop Structures 40

41 Validating Data Chapter 6: Loop Structures 41

42 Creating a Nested Loop Any loop can be placed within another loop under the following conditions: Interior loops must be completely contained inside the outer loop Must have a different control variable Chapter 6: Loop Structures 42

43 Selecting the Best Loop Use a Do loop if the number of repetitions is unknown and is based on a condition changing; a For...Next loop is best if the exact number of repetitions is fixed If a loop condition must be tested before the body of the loop is executed, use a top-controlled Do While or Do Until loop. If the instructions within a loop must be executed one time regardless of the status of a condition, use a bottom-controlled Do While or Do Until loop Use the keyword While if you want to continue execution of the loop while the condition is true. Use the keyword Until if you want to continue execution until the condition is true Chapter 6: Loop Structures 43

44 Using a DataTip with Breakpoints Resolving defects in code is called debugging A good way to collect information is to pause the execution of the code where a possible error could occur Breakpoints are stop points placed in the code to tell the Visual Studio 2005 debugger where and when to pause the execution of the application While in break mode, you can examine the values in all variables that are within the scope of execution through the use of DataTips Chapter 6: Loop Structures 44

45 Using a DataTip with Breakpoints With the program open in the code editing window, right-click line 49, which contains the code where you want to set a breakpoint, and then point to Breakpoint on the shortcut menu Click Insert Breakpoint on the submenu To run and test the program with the breakpoint, click the Start Debugging button on the Standard toolbar Click the Enter Speed button. Type 75 as the speed of the first vehicle Click the OK button in the input box Chapter 6: Loop Structures 45

46 Using a DataTip with Breakpoints Point to the variable decvehiclespeed on line 49 You can view the value in any other variable within execution scope by pointing to that variable. To illustrate, point to the variable dectotalofallspeeds on line 49 Continue the program by clicking the Continue button on the Standard toolbar. Notice that the Continue button is the same as the Start Debugging button Point to the dectotalofallspeeds variable Chapter 6: Loop Structures 46

47 Using a DataTip with Breakpoints Chapter 6: Loop Structures 47

48 Using a DataTip with Breakpoints To remove a breakpoint, right-click the statement containing the breakpoint, and then point to Breakpoint on the shortcut menu Click Delete Breakpoint on the Breakpoint submenu Chapter 6: Loop Structures 48

49 Publishing an Application with Click Once Deployment After an application is completely debugged and working properly, you can deploy the project Deploying a project means placing an executable version of the program on your hard disk, on a Web server, or on a network server When programming using Visual Basic 2005, you can create a deployed program by using ClickOnce Deployment The deployed version of the program you create can be installed and executed on any computer that has the.net framework installed Chapter 6: Loop Structures 49

50 Publishing an Application with ClickOnce Deployment With the program open, click Build on the menu bar Click Publish Radar on the Build menu Change the default location from publish\ to a file location. To publish to a USB drive, type the drive letter. In this example, enter e: for a USB drive Click the Next button. If necessary, click the From a CD-ROM or DVDROM radio button Click the Next button. If necessary, click the The application will not check for updates radio button Chapter 6: Loop Structures 50

51 Publishing an Application with ClickOnce Deployment Click the Next button Click the Finish button To view the finished result, minimize the Visual Studio window, and then double-click the My Computer icon on the desktop. Double-click the USB drive icon to view the published installation folder To install the application, double-click the setup file After installation, the program will run. To run the installed application again, click the Start button on the Windows taskbar. Point to All Programs, point to Radar on the All Programs menu, and then click Radar on the Radar submenu Chapter 6: Loop Structures 51

52 Publishing an Application with ClickOnce Deployment Chapter 6: Loop Structures 52

53 Program Design Chapter 6: Loop Structures 53

54 Program Design Chapter 6: Loop Structures 54

55 Event Planning Document Chapter 6: Loop Structures 55

56 Summary Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand the use of counters and accumulators Understand the use of compound operators Chapter 6: Loop Structures 56

57 Summary Repeat a process using a For Next loop Repeat a process using a Do loop Avoid infinite loops Prime a loop Validate data Chapter 6: Loop Structures 57

58 Summary Create a nested loop Select the best type of loop Debug using DataTips at breakpoints Publish a finished application using ClickOnce technology Chapter 6: Loop Structures 58

59 Microsoft Visual Basic 2005 CHAPTER 6 COMPLETE Loop Structures

You will have mastered the material in this chapter when you can:

You will have mastered the material in this chapter when you can: CHAPTER 6 Loop Structures OBJECTIVES You will have mastered the material in this chapter when you can: Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand

More information

Click File on the menu bar to view the individual menu items and their associated icons on the File menu.

Click File on the menu bar to view the individual menu items and their associated icons on the File menu. User Interface Design 387 STEP 3 Click File on the menu bar to view the individual menu items and their associated icons on the File menu. The standard File menu items (New, Open, Save, Save As, Print,

More information

Microsoft Visual Basic 2005 CHAPTER 5. Mobile Applications Using Decision Structures

Microsoft Visual Basic 2005 CHAPTER 5. Mobile Applications Using Decision Structures Microsoft Visual Basic 2005 CHAPTER 5 Mobile Applications Using Decision Structures Objectives Write programs for devices other than a personal computer Understand the use of handheld technology Write

More information

To complete this project, you will need the following folder:

To complete this project, you will need the following folder: = CHAPTER 1 Windows 7 More Skills 12 Use Libraries to Organize Files A library is a collection of files and folders stored in different locations on your computer that can be viewed as a single folder.

More information

Repetition and Loop Statements Chapter 5

Repetition and Loop Statements Chapter 5 Repetition and Loop Statements Chapter 5 1 Chapter Objectives To understand why repetition is an important control structure in programming To learn about loop control variables and the three steps needed

More information

A Tutorial for ECE 175

A Tutorial for ECE 175 Debugging in Microsoft Visual Studio 2010 A Tutorial for ECE 175 1. Introduction Debugging refers to the process of discovering defects (bugs) in software and correcting them. This process is invoked when

More information

Location of menu elements

Location of menu elements E Creating Menus Appendix E C5779 39147 Page 1 07/10/06--JHR In Visual Basic 2005, you use a MenuStrip control to include one or more menus in an application. You instantiate a MenuStrip control using

More information

Microsoft Windows XP. Operating System. Starting Windows XP. You might be asked to enter your username and password

Microsoft Windows XP. Operating System. Starting Windows XP. You might be asked to enter your username and password Microsoft Windows Operating System Starting Windows Windows automatically starts when you turn on your computer You might be asked to enter your username and password The Windows desktop uses a graphical

More information

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills Discovering Computers & Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Objectives Perform basic mouse operations Start Windows and log on to the computer Identify the objects

More information

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Excel Select a template category in the Office.com Templates section. 5. Click the Download button. Microsoft QUICK Excel 2010 Source Getting Started The Excel Window u v w z Creating a New Blank Workbook 2. Select New in the left pane. 3. Select the Blank workbook template in the Available Templates

More information

Chapter 4 Introduction to Control Statements

Chapter 4 Introduction to Control Statements Introduction to Control Statements Fundamentals of Java: AP Computer Science Essentials, 4th Edition 1 Objectives 2 How do you use the increment and decrement operators? What are the standard math methods?

More information

INSTALLING THE PS3 XBOX READY SOFTWARE:

INSTALLING THE PS3 XBOX READY SOFTWARE: INSTALLING THE PS3 XBOX READY SOFTWARE: 1. Insert the Installation CD to CD-ROM drive and execute Ready_Setup.exe NOTE: If it is the first time for the target USB disk using under this software, the software

More information

To complete this activity, you will need the following files:

To complete this activity, you will need the following files: CHAPTER 1 Windows XP More Skills 12 Move Data Between Windows You can open several application windows at the same time; they do not need to be files created by the same program. Having more than one window

More information

Enterprise Edge 2.0 Personal Call Manager User Guide

Enterprise Edge 2.0 Personal Call Manager User Guide Enterprise Edge 2.0 Personal Call Manager User Guide www.nortelnetworks.com 2000 Nortel Networks P0911958 Issue 01 Contents Enterprise Edge Personal Call Manager 9 Using a handsfree telephone with Enterprise

More information

Repetition Structures

Repetition Structures Repetition Structures Chapter 5 Fall 2016, CSUS Introduction to Repetition Structures Chapter 5.1 1 Introduction to Repetition Structures A repetition structure causes a statement or set of statements

More information

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution.

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution. Repetition Structures Introduction to Repetition Structures Chapter 5 Spring 2016, CSUS Chapter 5.1 Introduction to Repetition Structures The Problems with Duplicate Code A repetition structure causes

More information

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35 Contents Modify the Project 30 Introduction to Print the Project Documentation 35 Visual Basic 1 Sample Printout 36 Writing Windows Applications The Form Image 36 The Code 37 with Visual Basic 2 The Form

More information

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server Chapter 3 SQL Server Management Studio In This Chapter c Introduction to SQL Server Management Studio c Using SQL Server Management Studio with the Database Engine c Authoring Activities Using SQL Server

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

Using Common Features of Microsoft Office Explore Microsoft Office Start programs and switch between them. Tutorial 1

Using Common Features of Microsoft Office Explore Microsoft Office Start programs and switch between them. Tutorial 1 Using Common Features of Microsoft Office 2003 Tutorial 1 1 Explore Microsoft Office 2003 Microsoft Office 2003, or Office, is a collection of the most popular Microsoft programs. These programs share

More information

Program and Graphical User Interface Design

Program and Graphical User Interface Design CHAPTER 2 Program and Graphical User Interface Design OBJECTIVES You will have mastered the material in this chapter when you can: Open and close Visual Studio 2010 Create a Visual Basic 2010 Windows Application

More information

Visual Basic Program Coding STEP 2

Visual Basic Program Coding STEP 2 Visual Basic Program Coding 129 STEP 2 Click the Start Debugging button on the Standard toolbar. The program is compiled and saved, and then is run on the computer. When the program runs, the Hotel Room

More information

The NetBeans Debugger: A Brief Tutorial

The NetBeans Debugger: A Brief Tutorial The NetBeans Debugger: A Brief Tutorial Based on a tutorial by Anousha Mesbah from the University of Georgia NetBeans provides a debugging tool that lets you trace the execution of a program step by step.

More information

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#)

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#) Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#) Course Number: 4994A Length: 3 Day(s) Certification Exam There are no exams associated with this

More information

Working with Excel CHAPTER 1

Working with Excel CHAPTER 1 CHAPTER 1 Working with Excel You use Microsoft Excel to create spreadsheets, which are documents that enable you to manipulate numbers and formulas to quickly create powerful mathematical, financial, and

More information

Working with Excel involves two basic tasks: building a spreadsheet and then manipulating the

Working with Excel involves two basic tasks: building a spreadsheet and then manipulating the Working with Excel You use Microsoft Excel to create spreadsheets, which are documents that enable you to manipulate numbers and formulas to create powerful mathematical, financial, and statistical models

More information

3 TUTORIAL. In This Chapter. Figure 1-0. Table 1-0. Listing 1-0.

3 TUTORIAL. In This Chapter. Figure 1-0. Table 1-0. Listing 1-0. 3 TUTORIAL Figure 1-0. Table 1-0. Listing 1-0. In This Chapter This chapter contains the following topics: Overview on page 3-2 Exercise One: Building and Running a C Program on page 3-4 Exercise Two:

More information

Microsoft Windows 7 - Illustrated Unit A: Introducing Windows 7

Microsoft Windows 7 - Illustrated Unit A: Introducing Windows 7 Microsoft Windows 7 - Illustrated Unit A: Introducing Windows 7 Objectives Start Windows and view the desktop Use pointing devices Use the Start button Use the taskbar Work with windows 2 Objectives Use

More information

Lab Android Development Environment

Lab Android Development Environment Lab Android Development Environment Setting up the ADT, Creating, Running and Debugging Your First Application Objectives: Familiarize yourself with the Android Development Environment Important Note:

More information

Easy Windows Working with Disks, Folders, - and Files

Easy Windows Working with Disks, Folders, - and Files Easy Windows 98-3 - Working with Disks, Folders, - and Files Page 1 of 11 Easy Windows 98-3 - Working with Disks, Folders, - and Files Task 1: Opening Folders Folders contain files, programs, or other

More information

BasicScript 2.25 User s Guide. May 29, 1996

BasicScript 2.25 User s Guide. May 29, 1996 BasicScript 2.25 User s Guide May 29, 1996 Information in this document is subject to change without notice. No part of this document may be reproduced or transmitted in any form or by any means, electronic

More information

2 The Stata user interface

2 The Stata user interface 2 The Stata user interface The windows This chapter introduces the core of Stata s interface: its main windows, its toolbar, its menus, and its dialogs. The five main windows are the Review, Results, Command,

More information

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#)

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#) Introduction to Microsoft.NET Framework Programming using VS 2005 (C#) Course Length: 5 Days Course Overview This instructor-led course teaches introductory-level developers who are not familiar with the

More information

Programming Logic - Beginning

Programming Logic - Beginning Programming Logic - Beginning 152-101 Debugging Applications Quick Links & Text References Debugging Concepts Pages Debugging Terminology Pages Debugging in Visual Studio Pages Breakpoints Pages Watches

More information

2 TUTORIAL. Overview. VisualDSP Getting Started Guide 2-1 for SHARC DSPs

2 TUTORIAL. Overview. VisualDSP Getting Started Guide 2-1 for SHARC DSPs 2 TUTORIAL This chapter contains the following topics. Overview on page 2-1 Exercise One: Building and Running a C Program on page 2-3 Exercise Two: Calling an Assembly Routine and Creating an LDF on page

More information

MS Excel VBA Class Goals

MS Excel VBA Class Goals MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 5 Repeating Program Instructions Objectives After studying this chapter, you should be able to: Include the repetition structure in pseudocode

More information

Coding Faster: Getting More Productive with Microsoft Visual

Coding Faster: Getting More Productive with Microsoft Visual Microsoft Coding Faster: Getting More Productive with Microsoft Visual Studio Covers Microsoft Visual Studio 2005, 2008, and 2010 Zain Naboulsi Sara Ford Table of Contents Foreword Introduction xxiii xxvii

More information

Table of Contents WINDOWS 95. What is Windows 95? Features LINC TWO

Table of Contents WINDOWS 95. What is Windows 95? Features LINC TWO Table of Contents What is Windows 95? Windows 95 is a computer-operating system that controls the basic operation of the computer and the programs (also known as applications or software tools) that run

More information

While Loops CHAPTER 5: LOOP STRUCTURES. While Loops. While Loops 2/7/2013

While Loops CHAPTER 5: LOOP STRUCTURES. While Loops. While Loops 2/7/2013 While Loops A loop performs an iteration or repetition A while loop is the simplest form of a loop Occurs when a condition is true CHAPTER 5: LOOP STRUCTURES Introduction to Computer Science Using Ruby

More information

Table of Contents WINDOWS 95

Table of Contents WINDOWS 95 Table of Contents Accessories Active program button Active window Application Back-up Browse Cascade windows Check box Click Clipboard Close button Context menu Control Panel Copy Cursor Cut Default Desktop

More information

MULTIPROG QUICK START GUIDE

MULTIPROG QUICK START GUIDE MULTIPROG QUICK START GUIDE Manual issue date: April 2002 Windows is a trademark of Microsoft Corporation. Copyright 2002 by KW-Software GmbH All rights reserved. KW-Software GmbH Lagesche Straße 32 32657

More information

Learning About Technology. The Desktop (cont'd) The Desktop. Playing Recorded Music

Learning About Technology. The Desktop (cont'd) The Desktop. Playing Recorded Music Chapter 2: What the Digerati Know: Exploring the Human-Computer Interface Fluency with Information Technology Third Edition by Lawrence Snyder Learning About Technology People do not have any innate technological

More information

Loops and Files. Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz

Loops and Files. Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Loops and Files Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Chapter Topics o The Increment and Decrement Operators o The while Loop o Shorthand Assignment Operators o The do-while

More information

Power Point 2000 Level 1

Power Point 2000 Level 1 Introduction Opening PowerPoint, Using the AutoContent Wizard, Window Elements, Working in the Outline and Slide Window Panes, Understanding Different Views, and Saving the Presentation. Contents Introduction

More information

Lecture 7 Tao Wang 1

Lecture 7 Tao Wang 1 Lecture 7 Tao Wang 1 Objectives In this chapter, you will learn about: Interactive loop break and continue do-while for loop Common programming errors Scientists, Third Edition 2 while Loops while statement

More information

with TestComplete 12 Desktop, Web, and Mobile Testing Tutorials

with TestComplete 12 Desktop, Web, and Mobile Testing Tutorials with TestComplete 12 Desktop, Web, and Mobile Testing Tutorials 2 About the Tutorial With TestComplete, you can test applications of three major types: desktop, web and mobile: Desktop applications - these

More information

DataPro Quick Start Guide

DataPro Quick Start Guide DataPro Quick Start Guide Introduction The DataPro application provides the user with the ability to download and analyze data acquired using the ULTRA-LITE PRO range of Auto Meter products. Please see

More information

LECTURE 5 Control Structures Part 2

LECTURE 5 Control Structures Part 2 LECTURE 5 Control Structures Part 2 REPETITION STATEMENTS Repetition statements are called loops, and are used to repeat the same code multiple times in succession. The number of repetitions is based on

More information

James Foxall. Sams Teach Yourself. Visual Basic 2012 *24. Hours. sams. 800 East 96th Street, Indianapolis, Indiana, USA

James Foxall. Sams Teach Yourself. Visual Basic 2012 *24. Hours. sams. 800 East 96th Street, Indianapolis, Indiana, USA James Foxall Sams Teach Yourself Visual Basic 2012 *24 Hours sams 800 East 96th Street, Indianapolis, Indiana, 46240 USA Table of Contents Introduction 1 PART I: The Visual Basic 2012 Environment HOUR

More information

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER? 1 A Quick Tour WHAT S IN THIS CHAPTER? Installing and getting started with Visual Studio 2012 Creating and running your fi rst application Debugging and deploying an application Ever since software has

More information

Zend Studio 3.0. Quick Start Guide

Zend Studio 3.0. Quick Start Guide Zend Studio 3.0 This walks you through the Zend Studio 3.0 major features, helping you to get a general knowledge on the most important capabilities of the application. A more complete Information Center

More information

Windows Me Navigating

Windows Me Navigating LAB PROCEDURE 11 Windows Me Navigating OBJECTIVES 1. Explore the Start menu. 2. Start an application. 3. Multi-task between applications. 4. Moving folders and files around. 5. Use Control Panel settings.

More information

After completing this appendix, you will be able to:

After completing this appendix, you will be able to: 1418835463_AppendixA.qxd 5/22/06 02:31 PM Page 879 A P P E N D I X A A DEBUGGING After completing this appendix, you will be able to: Describe the types of programming errors Trace statement execution

More information

CSE 3. The Desktop. Learning About Technology. Playing Recorded Music. The Desktop (cont'd)

CSE 3. The Desktop. Learning About Technology. Playing Recorded Music. The Desktop (cont'd) CSE 3 Comics Updates U2 puzzle Shortcut(s) of the day Ch 1-2, 16-17 How Computers Work Textbook wrong: -Select / -Select Chapter 2: What the Digerati Know: Exploring the Human-Computer

More information

CSE 3. Learning About Technology. Comics Updates U2 puzzle Shortcut(s) of the day Ch 1-2, How Computers Work Textbook wrong:

CSE 3. Learning About Technology. Comics Updates U2 puzzle Shortcut(s) of the day Ch 1-2, How Computers Work Textbook wrong: CSE 3 Comics Updates U2 puzzle Shortcut(s) of the day Ch 1-2, 16-17 How Computers Work Textbook wrong: -Select / -Select 1-1 2-1 Chapter 2: What the Digerati Know: Exploring the Human-Computer

More information

Libraries. Multi-Touch. Aero Peek. Sema Foundation 10 Classes 2 nd Exam Review ICT Department 5/22/ Lesson - 15

Libraries. Multi-Touch. Aero Peek. Sema Foundation 10 Classes 2 nd Exam Review ICT Department 5/22/ Lesson - 15 10 Classes 2 nd Exam Review Lesson - 15 Introduction Windows 7, previous version of the latest version (Windows 8.1) of Microsoft Windows, was produced for use on personal computers, including home and

More information

Address Bar. Application. The space provided on a web browser that shows the addresses of websites.

Address Bar. Application. The space provided on a web browser that shows the addresses of websites. Address Bar The space provided on a web browser that shows the addresses of websites. Application Computer software designed to help users perform Specific tasks. Back Button A button at the top of the

More information

Computer Science (330)

Computer Science (330) Lesson 1 Anatomy of a Digital Computer Sr. Secondary Course (Syllabus) Computer Science (330) 1.3 Functions and Components of a Computer 1.3.1 How the CPU and Memory work 1.4 Input devices 1.4.1 Keyboard

More information

Microsoft Windows 10. Quick Reference. Watsonia Publishing 47 Greenaway Street Bulleen VIC 3105 Australia

Microsoft Windows 10. Quick Reference. Watsonia Publishing 47 Greenaway Street Bulleen VIC 3105 Australia Watsonia Publishing 47 Greenaway Street Bulleen VIC 3105 Australia www.watsoniapublishing.com info@watsoniapublishing.com Quick Reference Course Code: INF1440 Table of Contents Chapter 1: Starting With

More information

Using the Xcode Debugger

Using the Xcode Debugger g Using the Xcode Debugger J Objectives In this appendix you ll: Set breakpoints and run a program in the debugger. Use the Continue program execution command to continue execution. Use the Auto window

More information

Visual Basic 2010 How to Program by Pearson Education, Inc. All Rights Reserved.

Visual Basic 2010 How to Program by Pearson Education, Inc. All Rights Reserved. Visual Basic 2010 How to Program Before writing a program to solve a problem, you should have a thorough understanding of the problem and a carefully planned approach. When writing a program, it s also

More information

182 Introduction to Microsoft Visual InterDev 6 Chapter 7

182 Introduction to Microsoft Visual InterDev 6 Chapter 7 iw3htp_07.fm Page 182 Thursday, April 13, 2000 12:29 PM 182 Introduction to Microsoft Visual InterDev 6 Chapter 7 7 Introduction to Microsoft Visual InterDev 6 New tab Other tabs for opening existing projects

More information

JScript Reference. Contents

JScript Reference. Contents JScript Reference Contents Exploring the JScript Language JScript Example Altium Designer and Borland Delphi Run Time Libraries Server Processes JScript Source Files PRJSCR, JS and DFM files About JScript

More information

Computer Essentials Session 1 Lesson Plan

Computer Essentials Session 1 Lesson Plan Note: Completing the Mouse Tutorial and Mousercise exercise which are available on the Class Resources webpage constitutes the first part of this lesson. ABOUT PROGRAMS AND OPERATING SYSTEMS Any time a

More information

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.aspx?m=5507&c=618&mo=18917&t=191&sy=2012&bl...

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.aspx?m=5507&c=618&mo=18917&t=191&sy=2012&bl... Page 1 of 13 Units: - All - Teacher: ProgIIIJavaI, CORE Course: ProgIIIJavaI Year: 2012-13 Intro to Java How is data stored by a computer system? What does a compiler do? What are the advantages of using

More information

Introduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4.

Introduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4. Introduction to Visual Basic and Visual C++ Arithmetic Expression Lesson 4 Calculation I154-1-A A @ Peter Lo 2010 1 I154-1-A A @ Peter Lo 2010 2 Arithmetic Expression Using Arithmetic Expression Calculations

More information

Visual Studio.NET. Rex Jaeschke

Visual Studio.NET. Rex Jaeschke Visual Studio.NET Rex Jaeschke Copyright c 2002, 2005 Rex Jaeschke. All rights reserved. Edition: 2.0 (matches V2) Printing: August 6, 2005 All rights reserved. No part of this publication may be reproduced,

More information

Intro to MS Visual C++ Debugging

Intro to MS Visual C++ Debugging Intro to MS Visual C++ Debugging 1 Debugger Definition A program used to control the execution of another program for diagnostic purposes. Debugger Features / Operations Single-Stepping 100011101010101010

More information

Basic Millennium INTRODUCTION

Basic Millennium INTRODUCTION Basic Millennium INTRODUCTION Welcome to the Basic Millennium tutorial. Navigation tools, such as the Continue button, will display as you progress through the presentation, while playback functions are

More information

1.2 - Introduction to the IAR Workbench IDE *

1.2 - Introduction to the IAR Workbench IDE * OpenStax-CNX module: m13621 1 1.2 - Introduction to the IAR Workbench IDE * Naren Anand Based on Introduction to CrossStudio MSP430 IDE by Kileen Cheng This work is produced by OpenStax-CNX and licensed

More information

Lesson 1 Introduction to LabVIEW. TOPICS LabVIEW Environment Front Panel Block Diagram Dataflow Programming LabVIEW Help and Manuals Debugging a VI

Lesson 1 Introduction to LabVIEW. TOPICS LabVIEW Environment Front Panel Block Diagram Dataflow Programming LabVIEW Help and Manuals Debugging a VI Lesson 1 Introduction to LabVIEW TOPICS LabVIEW Environment Front Panel Block Diagram Dataflow Programming LabVIEW Help and Manuals Debugging a VI 1 Virtual Instruments (VIs) Front Panel Controls = Inputs

More information

STUDENT LESSON A12 Iterations

STUDENT LESSON A12 Iterations STUDENT LESSON A12 Iterations Java Curriculum for AP Computer Science, Student Lesson A12 1 STUDENT LESSON A12 Iterations INTRODUCTION: Solving problems on a computer very often requires a repetition of

More information

Unit 2: Using Windows 7 Lesson 9

Unit 2: Using Windows 7 Lesson 9 Unit : Using Windows 7 Lesson 9 Lesson 9 Looking at the Windows Desktop Objectives In this lesson, you will be introduced to the Windows desktop and how to navigate around in Windows. On successful completion,

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Newforma Contact Directory Quick Reference Guide

Newforma Contact Directory Quick Reference Guide Newforma Contact Directory Quick Reference Guide This topic provides a reference for the Newforma Contact Directory. Purpose The Newforma Contact Directory gives users access to the central list of companies

More information

Using the Customize Dialog Box

Using the Customize Dialog Box Toolbar Tools > Customize Using the Customize Dialog Box The Customize tool is used to define custom work environment, toolbar, and tool settings. The Customize dialog box appears when you access the Customize

More information

Creating Web Applications Using ASP.NET 2.0

Creating Web Applications Using ASP.NET 2.0 12 Creating Web Applications Using ASP.NET 2.0 12 Chapter CXXXX 39147 Page 1 07/14/06--JHR After studying Chapter 12, you should be able to: Define the terms used when talking about the Web Create a Web

More information

INTRODUCTION TO C++ PROGRAM CONTROL. Dept. of Electronic Engineering, NCHU. Original slides are from

INTRODUCTION TO C++ PROGRAM CONTROL. Dept. of Electronic Engineering, NCHU. Original slides are from INTRODUCTION TO C++ PROGRAM CONTROL Original slides are from http://sites.google.com/site/progntut/ Dept. of Electronic Engineering, NCHU Outline 2 Repetition Statement for while do.. while break and continue

More information

Telerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide

Telerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide Contents Create your First Test... 3 Standalone Web Test... 3 Standalone WPF Test... 6 Standalone Silverlight Test... 8 Visual Studio Plug-In

More information

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations Part I Integrated Development Environment Chapter 1: A Quick Tour Chapter 2: The Solution Explorer, Toolbox, and Properties Chapter 3: Options and Customizations Chapter 4: Workspace Control Chapter 5:

More information

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Introduction. Key features and lab exercises to familiarize new users to the Visual environment Introduction Key features and lab exercises to familiarize new users to the Visual environment January 1999 CONTENTS KEY FEATURES... 3 Statement Completion Options 3 Auto List Members 3 Auto Type Info

More information

Unit III: Working with Windows and Applications. Chapters 5, 7, & 8

Unit III: Working with Windows and Applications. Chapters 5, 7, & 8 Unit III: Working with Windows and Applications Chapters 5, 7, & 8 Learning Objectives In this unit, you will: Launch programs and navigate the Windows task bar. Perform common windows functions. Customize

More information

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. Looping. ++ is the increment operator.

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. Looping. ++ is the increment operator. Chapter 5: Looping 5.1 The Increment and Decrement Operators Copyright 2009 Pearson Education, Inc. Copyright Publishing as Pearson 2009 Addison-Wesley Pearson Education, Inc. Publishing as Pearson Addison-Wesley

More information

ArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide

ArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide Automation Design Canvas 2.0 Beta Quick-Start Guide Contents Creating and Running Your First Test... 3 Adding Quick Verification Steps... 10 Creating Advanced Test Verifications... 13 Creating a Data Driven

More information

SQL Server 2005: Reporting Services

SQL Server 2005: Reporting Services SQL Server 2005: Reporting Services Table of Contents SQL Server 2005: Reporting Services...3 Lab Setup...4 Exercise 1 Creating a Report Using the Wizard...5 Exercise 2 Creating a List Report...7 Exercise

More information

Introduction to Computers and Applications

Introduction to Computers and Applications A World of Computers Introduction to Computers and Applications What is computer literacy? Knowledge and understanding of computers and their uses Computers are everywhere What Is a Computer? How is a

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening

More information

Basic Computer Operations

Basic Computer Operations Basic Computer Operations Goals By learning terms associated with computers and some basic operations, you'll be ready to make best use of a computer. Contents Computer terms Starting up and shutting down

More information

Version: 01P02B. U3 Map Maker Operational Guide

Version: 01P02B. U3 Map Maker Operational Guide Contents 1. Map Maker Software Overview... 4 1.1 Features... 4 1.2 Remarks... 4 1.3 Supported Devices... 4 2. Installing U3 Map Maker... 5 2.1 System Requirements... 5 2.2 Map Maker Installation... 5 3.

More information

*Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* COMPUTER PROGRAMMING LECTURE 05 LOOPS IMRAN IHSAN

*Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* COMPUTER PROGRAMMING LECTURE 05 LOOPS IMRAN IHSAN PowerPoint Slides adapted from *Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* Copyright 2012 Pearson Education Inc. COMPUTER PROGRAMMING LECTURE 05 LOOPS IMRAN IHSAN

More information

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it.

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it. Page 1 of 5 Working with SQL Server Management Studio SQL Server Management Studio (SSMS) is the client tool you use to both develop T-SQL code and manage SQL Server. The purpose of this section is not

More information

QLARITY FOUNDRY USER GUIDE REVISION 2.61

QLARITY FOUNDRY USER GUIDE REVISION 2.61 QLARITY FOUNDRY USER GUIDE REVISION 2.61 QSI CORPORATION 2212 South West Temple #50 Salt Lake City, Utah 84115-2648 USA M01-005-00 Rev 3 Phone 801-466-8770 Fax 801-466-8792 Email info@qsicorp.com Web www.qsicorp.com

More information

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies 9 Programming Based on Events C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Create applications that use

More information

C-LANGUAGE CURRICULAM

C-LANGUAGE CURRICULAM C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals

More information

NEW CEIBO DEBUGGER. Menus and Commands

NEW CEIBO DEBUGGER. Menus and Commands NEW CEIBO DEBUGGER Menus and Commands Ceibo Debugger Menus and Commands D.1. Introduction CEIBO DEBUGGER is the latest software available from Ceibo and can be used with most of Ceibo emulators. You will

More information

Scripting with CAMMaster and Visual Basic 2008

Scripting with CAMMaster and Visual Basic 2008 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 methods and properties that are exposed by

More information

For ClassPad 300. ClassPad Manager. (ProgramLink) Limited Version. User s Guide. RJA

For ClassPad 300. ClassPad Manager. (ProgramLink) Limited Version. User s Guide.  RJA For ClassPad 300 E ClassPad Manager (ProgramLink) Limited Version User s Guide RJA510188-4 http://world.casio.com/edu_e/ Note Display examples shown in this User s Guide are intended for illustrative purposes

More information

WINDOWS NT BASICS

WINDOWS NT BASICS WINDOWS NT BASICS 9.30.99 Windows NT Basics ABOUT UNIVERSITY TECHNOLOGY TRAINING CENTER The University Technology Training Center (UTTC) provides computer training services with a focus on helping University

More information

Chapter 5: Loops and Files

Chapter 5: Loops and Files Chapter 5: Loops and Files 5.1 The Increment and Decrement Operators The Increment and Decrement Operators ++ is the increment operator. It adds one to a variable. val++; is the same as val = val + 1;

More information