Microsoft Visual Basic 2005: Reloaded

Size: px
Start display at page:

Download "Microsoft Visual Basic 2005: Reloaded"

Transcription

1 Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 5 Repeating Program Instructions

2 Objectives After studying this chapter, you should be able to: Include the repetition structure in pseudocode and in a flowchart Write a For...Next statement Calculate a periodic payment using the Financial.Pmt method Include a list box and a combo box in an interface Write a Do...Loop statement Microsoft Visual Basic 2005: Reloaded, Second Edition 2

3 Objectives (continued) Initialize and update counters and accumulators Display a dialog box using the InputBox function Create a multiline text box that cannot be edited Animate a control by moving it across a form Have the computer sound a beep Microsoft Visual Basic 2005: Reloaded, Second Edition 3

4 The Repetition Structure Repetition structure (or loop): a structure that repeatedly processes one or more program instructions until a condition is met Pretest loop The condition is evaluated before the instructions within the loop are processed The instructions may be processed 0 or more times Posttest loop The condition is evaluated after the instructions within the loop are processed The instructions are always processed at least once Microsoft Visual Basic 2005: Reloaded, Second Edition 4

5 The Repetition Structure (continued) Repetition statements in Visual Basic For...Next Do...Loop For Each...Next Microsoft Visual Basic 2005: Reloaded, Second Edition 5

6 The For...Next Statement For...Next statement Processes a set of instructions a known number of times Is a pretest loop Microsoft Visual Basic 2005: Reloaded, Second Edition 6

7 The For...Next Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 7

8 The For...Next Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 8

9 The For...Next Statement (continued) Startvalue, endvalue, and stepvalue items Control the number of times the loop is processed Must evaluate to numeric values Can be positive or negative A negative stepvalue causes the loop counter to count down Flowchart symbol for the For...Next loop is a hexagon Microsoft Visual Basic 2005: Reloaded, Second Edition 9

10 The For...Next Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 10

11 The For...Next Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 11

12 The For...Next Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 12

13 The For...Next Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 13

14 The Financial.Pmt Method Financial.Pmt method Calculates a periodic payment on a loan or investment Returns the periodic payment as a Double type value Rate and number of periods arguments must be expressed in the same units (monthly, annual, etc.) Also calculates the amount that must be saved each period to accumulate a specific sum Microsoft Visual Basic 2005: Reloaded, Second Edition 14

15 The Financial.Pmt Method (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 15

16 The Financial.Pmt Method (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 16

17 The Monthly Payment Calculator Application Microsoft Visual Basic 2005: Reloaded, Second Edition 17

18 The Monthly Payment Calculator Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 18

19 Selecting the Existing Text in a Text Box Windows standard: highlight the existing text when a text box receives the focus SelectAll method: selects all text in a text box Enter event: occurs when the text box receives the focus Microsoft Visual Basic 2005: Reloaded, Second Edition 19

20 Selecting the Existing Text in a Text Box (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 20

21 Selecting the Existing Text in a Text Box (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 21

22 Selecting the Existing Text in a Text Box (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 22

23 Coding a Control s TextChanged Event Procedure TextChanged event Occurs when a change is made in a control s Text property Change may be made by user or the program Microsoft Visual Basic 2005: Reloaded, Second Edition 23

24 Coding a Control s TextChanged Event Procedure (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 24

25 Coding a Control s TextChanged Event Procedure (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 25

26 Using a List Box in an Interface ListBox tool: creates a ListBox control ListBox control: displays a list of choices from which the user can select 0 or more choices SelectionMode property: controls the number of choices a user can select None: user can scroll but not select anything One: user can select one item MultiSimple and MultiExtended: user can select multiple items Microsoft Visual Basic 2005: Reloaded, Second Edition 26

27 Using a List Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 27

28 Adding Items to a List Box Items collection: a collection of the items in a list box Collection: a group of one or more individual objects treated as one unit Index: A unique number that identifies an item in a collection Is zero-relative: the first item has index of 0 Add method: adds an item to the list box s Items collection Microsoft Visual Basic 2005: Reloaded, Second Edition 28

29 Adding Items to a List Box (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 29

30 Adding Items to a List Box (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 30

31 Adding Items to a List Box (continued) Sorted property: Determines if the list box items are sorted Sort order is dictionary order Microsoft Visual Basic 2005: Reloaded, Second Edition 31

32 Adding Items to a List Box (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 32

33 The SelectedItem and SelectedIndex SelectedItem property: Properties Contains the value of the selected item in the list If nothing is selected, it contains the empty string SelectedIndex property: Contains the index of the selected item in the list If nothing is selected, it contains the value -1 Default list box item: the item that is selected by default when the interface first appears Microsoft Visual Basic 2005: Reloaded, Second Edition 33

34 The SelectedItem and SelectedIndex Properties (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 34

35 The SelectedItem and SelectedIndex Properties (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 35

36 The SelectedValueChanged and SelectedIndexChanged Events SelectedValueChanged and SelectedIndexChanged events: occur when a user selects an item in a list box Microsoft Visual Basic 2005: Reloaded, Second Edition 36

37 The SelectedValueChanged and SelectedIndexChanged Events (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 37

38 Modifying the Monthly Payment Calculator Application Microsoft Visual Basic 2005: Reloaded, Second Edition 38

39 Modifying the Monthly Payment Calculator Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 39

40 Modifying the Monthly Payment Calculator Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 40

41 Using a Combo Box in an Interface ComboBox tool: creates a combo box control ComboBox control: Similar to a list box May contain a text field that allows the user to type an entry that is not on the list List portion may be hidden Three styles of combo boxes: Simple DropDown DropDownList Microsoft Visual Basic 2005: Reloaded, Second Edition 41

42 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 42

43 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 43

44 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 44

45 Using a Combo Box in an Interface (continued) SelectedItem property: contains the value of the selected item in the list Text property: contains the value that appears in the text portion of the control (item selected or typed in) Microsoft Visual Basic 2005: Reloaded, Second Edition 45

46 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 46

47 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 47

48 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 48

49 Using a Combo Box in an Interface (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 49

50 The Do...Loop Statement Do...Loop statement: codes both a pretest or a posttest loop Use While or Until to code the condition for the loop Repetition symbol in a flowchart is the diamond Microsoft Visual Basic 2005: Reloaded, Second Edition 50

51 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 51

52 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 52

53 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 53

54 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 54

55 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 55

56 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 56

57 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 57

58 The Do...Loop Statement (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 58

59 Using Counters and Accumulators Counter: a numeric variable used for counting Accumulator: a numeric variable used for accumulating Initializing: assigning a beginning value to a variable Updating (or incrementing): adding a number to the value of a variable Counters are always incremented by a constant value, usually 1 Microsoft Visual Basic 2005: Reloaded, Second Edition 59

60 The InputBox Function InputBox function: displays a predefined dialog box Contains a text message, an OK button, a Cancel button, and an input area Function: a predefined procedure that performs a specific task and returns a value InputBox function returns: The user s entry if the user clicks the OK button An empty string if the user clicks the Cancel button or the Close button on the title bar Microsoft Visual Basic 2005: Reloaded, Second Edition 60

61 The InputBox Function (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 61

62 The InputBox Function (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 62

63 The Sales Express Application Microsoft Visual Basic 2005: Reloaded, Second Edition 63

64 The Sales Express Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 64

65 The Sales Express Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 65

66 The Sales Express Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 66

67 The Sales Express Application (continued) Microsoft Visual Basic 2005: Reloaded, Second Edition 67

68 Programming Tutorial Microsoft Visual Basic 2005: Reloaded, Second Edition 68

69 Programming Example Microsoft Visual Basic 2005: Reloaded, Second Edition 69

70 Summary Repetition structure (or loop): repeatedly processes a set of instructions Pretest loop tests the condition before the instructions are processed Posttest loop tests the condition after the instructions are processed For...Next statement: a pretest loop that will process the instructions a fixed number of times Financial.Pmt method: calculates a periodic payment on a loan or investment Microsoft Visual Basic 2005: Reloaded, Second Edition 70

71 Summary (continued) SelectAll method: highlights text in a text box TextChanged Event: occurs when a control s text changes List box s Items collection: adds an item to the list SelectedItem property of a list box: contains the value of the selected item in the list SelectedIndex property of a list box: contains the index position of the selected item in the list Microsoft Visual Basic 2005: Reloaded, Second Edition 71

72 Summary (continued) Combo box: similar to a list box but may not expose the list items until clicked Three styles of combo boxes: Simple, DropDown, and DropDownList Do...Loop statement: codes a pretest or posttest loop Use a While or Until condition in a Do...Loop Flowchart symbol for repetition is a diamond Microsoft Visual Basic 2005: Reloaded, Second Edition 72

73 Summary (continued) Counter and accumulators: variables that calculate subtotals, totals, and averages InputBox function: allows user input Console.Beep method: plays the sound of a beep through the computer s console speakers Microsoft Visual Basic 2005: Reloaded, Second Edition 73

Programming Language 2 (PL2)

Programming Language 2 (PL2) Programming Language 2 (PL2) 337.3.1 Illustrate the logical flow of program in sequence, selection and iteration structure 337.3.2 Apply selection and repetitive structure Repetition structure (or loop):

More information

Microsoft Visual Basic 2015: Reloaded

Microsoft Visual Basic 2015: Reloaded Microsoft Visual Basic 2015: Reloaded Sixth Edition Chapter Seven More on the Repetition Structure Objectives After studying this chapter, you should be able to: Code a counter-controlled loop Nest repetition

More information

Copyright 2014 Pearson Education, Inc. Chapter 5. Lists and Loops. Copyright 2014 Pearson Education, Inc.

Copyright 2014 Pearson Education, Inc. Chapter 5. Lists and Loops. Copyright 2014 Pearson Education, Inc. Chapter 5 Lists and Loops Topics 5.1 Input Boxes 5.2 List Boxes 5.3 Introduction to Loops: The Do While Loop 5.4 The Do Until and For Next Loops 5.5 Nested Loops 5.6 Multicolumn List Boxes, Checked List

More information

Chapter 2B: Lists and Loops

Chapter 2B: Lists and Loops Chapter 2B: Lists and Loops Introduction This chapter introduces: Input boxes List and combo boxes Loops Random numbers The ToolTip control Section 2B.1 Input Boxes Input boxes provide a simple way to

More information

Chapter 5. Lists and Loops Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 5. Lists and Loops Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 5 Lists and Loops Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Introduction This chapter introduces: Input boxes List and combo boxes Loops Random numbers The

More information

An Introduction to Programming with C++ Sixth Edition. Chapter 7 The Repetition Structure

An Introduction to Programming with C++ Sixth Edition. Chapter 7 The Repetition Structure An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure Objectives Differentiate between a pretest loop and a posttest loop Include a pretest loop in pseudocode Include

More information

An Introduction to Programming with C++ Sixth Edition. Chapter 8 More on the Repetition Structure

An Introduction to Programming with C++ Sixth Edition. Chapter 8 More on the Repetition Structure An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure Objectives Include a posttest loop in pseudocode Include a posttest loop in a flowchart Code a posttest

More information

Final Examination Semester 2 / Year 2010

Final Examination Semester 2 / Year 2010 Southern College Kolej Selatan 南方学院 Final Examination Semester 2 / Year 2010 COURSE : VISUAL BASIC.NET COURSE CODE : PROG2024 TIME : 2 1/2 HOURS DEPARTMENT : COMPUTER SCIENCE LECTURER : LIM PEI GEOK Student

More information

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

Repetition Structures

Repetition Structures Repetition Structures There are three main structures used in programming: sequential, decision and repetition structures. Sequential structures follow one line of code after another. Decision structures

More information

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures Microsoft Visual Basic 2005 CHAPTER 6 Loop Structures Objectives Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand the use of counters and accumulators Understand

More information

Philadelphia University Faculty of Information Technology. Visual Programming

Philadelphia University Faculty of Information Technology. Visual Programming Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji Work Sheet 1 Form, Buttons and labels Properties Changing properties

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

Chapter 7. Lists, Loops, and Printing The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 7. Lists, Loops, and Printing The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 7 Lists, Loops, and Printing McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Create and use list boxes and combo boxes Differentiate among the available

More information

Excel 2007 Intermediate Table of Contents

Excel 2007 Intermediate Table of Contents Table of Contents Working with Data... 1 Subtotals... 1 Removing Subtotals... 2 Grouping Columns or Rows... 2 Ungrouping Data... 3 AutoCalculate Customize Status Bar... 3 Format as Table Filters and Sorting...

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

A Beginner s Guide to Programming Logic, Introductory. Chapter 5 Looping

A Beginner s Guide to Programming Logic, Introductory. Chapter 5 Looping A Beginner s Guide to Programming Logic, Introductory Chapter 5 Looping Objectives In this chapter, you will learn about: The advantages of looping Using a loop control variable Nested loops Avoiding common

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

Chapter 7. Lists, Loops, and Printing. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Chapter 7. Lists, Loops, and Printing. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 7 Lists, Loops, and Printing McGraw-Hill Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Objectives (1 of 2) Create and use list boxes and combo boxes. Differentiate among

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

used for US Census; Holes were made to represent information to be tabulated were punched in cards; Successful

used for US Census; Holes were made to represent information to be tabulated were punched in cards; Successful Essential Standard: 1.00 Understand ethics, security and the history of computer programming Indicator 1.01 Understand the evolution of computers and computer programming languages Indicator 1.02 Understand

More information

Working with Data and Charts

Working with Data and Charts PART 9 Working with Data and Charts In Excel, a formula calculates a value based on the values in other cells of the workbook. Excel displays the result of a formula in a cell as a numeric value. A function

More information

REPETITION CONTROL STRUCTURE LOGO

REPETITION CONTROL STRUCTURE LOGO CSC 128: FUNDAMENTALS OF COMPUTER PROBLEM SOLVING REPETITION CONTROL STRUCTURE 1 Contents 1 Introduction 2 for loop 3 while loop 4 do while loop 2 Introduction It is used when a statement or a block of

More information

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions Microsoft Office Excel 2003 Tutorial 2 Working With Formulas and Functions 1 Use Excel s functions You can easily calculate the sum of a large number of cells by using a function. A function is a predefined,

More information

Insert Subtotals in Excel and Link Data to a Word Document

Insert Subtotals in Excel and Link Data to a Word Document CHAPTER 1 Integrated Projects More Skills 11 Insert Subtotals in Excel and Link Data to a Word Document In Excel, summary statistics such as totals and averages can be calculated for groups of data by

More information

Unit 7. Lesson 7.1. Loop. For Next Statements. Introduction. Loop

Unit 7. Lesson 7.1. Loop. For Next Statements. Introduction. Loop Loop Unit 7 Loop Introduction So far we have seen that each instruction is executed once and once only. Some time we may require that a group of instructions be executed repeatedly, until some logical

More information

Unit 3 Additional controls and Menus of Windows

Unit 3 Additional controls and Menus of Windows Working with other controls of toolbox: DateTime Picker If you want to enable users to select a date and time, and to display that date and time in the specified format, use the DateTimePicker control.

More information

Excel Intermediate. Click in the name column of our Range of Data. (Do not highlight the column) Click on the Data Tab in the Ribbon

Excel Intermediate. Click in the name column of our Range of Data. (Do not highlight the column) Click on the Data Tab in the Ribbon Custom Sorting and Subtotaling Excel Intermediate Excel allows us to sort data whether it is alphabetic or numeric. Simply clicking within a column or row of data will begin the process. Click in the name

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

More information

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.aspx?m=5516&c=619&mo=18921&t=192&sy=2012&bl...

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.aspx?m=5516&c=619&mo=18921&t=192&sy=2012&bl... Page 1 of 8 Units: - All - Teacher: ProgIIVisualBasicII, CORE Course: ProgIIVisualBasicII Year: 2012-13 Program Flow with Looping Structures When should you use the Do...Loop statement? What is meant by

More information

Microsoft Excel 2016 LEVEL 2

Microsoft Excel 2016 LEVEL 2 TECH TUTOR ONE-ON-ONE COMPUTER HELP COMPUTER CLASSES Microsoft Excel 2016 LEVEL 2 kcls.org/techtutor Microsoft Excel 2016 Level 2 Manual Rev 11/2017 instruction@kcls.org Microsoft Excel 2016 Level 2 Welcome

More information

DateTimePicker Control

DateTimePicker Control Controls Part 2 DateTimePicker Control Used for representing Date/Time information and take it as input from user. Date information is automatically created. Prevents wrong date and time input. Fundamental

More information

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes Unit 12 Electronic Spreadsheets - Microsoft Excel Desired Outcomes Student understands Excel workbooks and worksheets Student can navigate in an Excel workbook and worksheet Student can use toolbars and

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

Chapter 6 Repetition. 6.1 Do Loops 6.2 For...Next Loops 6.3 List Boxes and Loops

Chapter 6 Repetition. 6.1 Do Loops 6.2 For...Next Loops 6.3 List Boxes and Loops Chapter 6 Repetition 6.1 Do Loops 6.2 For...Next Loops 6.3 List Boxes and Loops 1 6.1 Do Loops Pretest Form of a Do Loop Posttest Form of a Do Loop 2 Do Loops A loop is one of the most important structures

More information

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,

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

Increment and the While. Class 15

Increment and the While. Class 15 Increment and the While Class 15 Increment and Decrement Operators Increment and Decrement Increase or decrease a value by one, respectively. the most common operation in all of programming is to increment

More information

Unit 1: Understanding Production Systems

Unit 1: Understanding Production Systems Unit 1: Understanding Production Systems Section 1.1: The ACT-R Production System ACT-R is a production system theory that tries to explain human cognition by developing a model of the knowledge structures

More information

Excel. Tutorial 1 Getting Started with Excel. Tutorial 2 Formatting a Workbook. Tutorial 3 Working with Formulas and Functions COMPREHENSIVE

Excel. Tutorial 1 Getting Started with Excel. Tutorial 2 Formatting a Workbook. Tutorial 3 Working with Formulas and Functions COMPREHENSIVE Excel Tutorial 1 Getting Started with Excel Tutorial 2 Formatting a Workbook Tutorial 3 Working with Formulas and Functions COMPREHENSIVE Excel Tutorial 1 Getting Started with Excel COMPREHENSIVE Objectives

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

This page intentionally left blank

This page intentionally left blank This page intentionally left blank Starting Out With Visual Basic: International Edition Table of Contents Cover Contents Preface Chapter 1 Introduction to Programming and Visual Basic 1.1 Computer Systems:

More information

B.V Patel Institute of BMC & IT, UTU

B.V Patel Institute of BMC & IT, UTU Corse Code and Corse Name: 030010401-GUI Programming Unit 1. Introduction to.net Framework Short Questions 1. What is.net Framework? 2. What is VB.NET? 3. Which are the main components of.net Framework?

More information

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 2 TEXT FORMATTING

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 2 TEXT FORMATTING CHAPTER 2 TEXT FORMATTING 1. Explain how to create a Bulleted and Numbered List in Star Office Writer? One way to create a list of points or topics in a document is to create a bulleted list. A bullet

More information

PROBLEM SOLVING WITH LOOPS. Chapter 7

PROBLEM SOLVING WITH LOOPS. Chapter 7 PROBLEM SOLVING WITH LOOPS Chapter 7 Concept of Repetition Structure Logic It is a computer task, that is used for Repeating a series of instructions many times. Ex. The Process of calculating the Total

More information

EXCEL 2003 DISCLAIMER:

EXCEL 2003 DISCLAIMER: EXCEL 2003 DISCLAIMER: This reference guide is meant for experienced Microsoft Excel users. It provides a list of quick tips and shortcuts for familiar features. This guide does NOT replace training or

More information

ECE 122. Engineering Problem Solving with Java

ECE 122. Engineering Problem Solving with Java ECE 122 Engineering Problem Solving with Java Lecture 10 For Loops and Arrays Outline Problem: How can I perform the same operations a fixed number of times? Considering for loops Performs same operations

More information

Tutorial 2. Review CIS143

Tutorial 2. Review CIS143 Tutorial 2 CIS143 Review Identify Components of an Excel worksheet Navigate a Worksheet Navigate Between Worksheets Plan a Worksheet Enter Data into a Worksheet Change the Size of a Row or Column Insert

More information

Introduction to Excel 2013 Part 2

Introduction to Excel 2013 Part 2 Introduction to Excel 2013 Part 2 Open a file Select File from the Menu bar, select Open from the drop down menu, navigate to the place where the file was stored, double-left click on the file name. Modify

More information

Islamic University of Gaza Computer Engineering Dept. C++ Programming. For Industrial And Electrical Engineering By Instructor: Ruba A.

Islamic University of Gaza Computer Engineering Dept. C++ Programming. For Industrial And Electrical Engineering By Instructor: Ruba A. Islamic University of Gaza Computer Engineering Dept. C++ Programming For Industrial And Electrical Engineering By Instructor: Ruba A. Salamh Chapter Four: Loops 2 Chapter Goals To implement while, for

More information

The Parts of a Function:

The Parts of a Function: The Parts of a Function: Each function has a specific order, called syntax, which must be strictly followed for the function to work correctly. Syntax Order: 1. All functions begin with the = sign. 2.

More information

Simply Visual Basic 2010

Simply Visual Basic 2010 INTERNATIONAL EDITION Simply Visual Basic 2010 An App-Driven Approach FOURTH EDITION Paul Deitel Harvey Deitel Abbey Deitel Deitel Series Page How To Program Series Android How to Program C++ How to Program,

More information

FOCUS ON: DATABASE MANAGEMENT

FOCUS ON: DATABASE MANAGEMENT EXCEL 2002 (XP) FOCUS ON: DATABASE MANAGEMENT December 16, 2005 ABOUT GLOBAL KNOWLEDGE, INC. Global Knowledge, Inc., the world s largest independent provider of integrated IT education solutions, is dedicated

More information

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. The Increment and Decrement Operators

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. The Increment and Decrement Operators Chapter 5: 5.1 Looping The Increment and Decrement Operators The Increment and Decrement Operators The Increment and Decrement Operators ++ is the increment operator. It adds one to a variable. val++;

More information

M i c r o s o f t E x c e l A d v a n c e d P a r t 3-4. Microsoft Excel Advanced 3-4

M i c r o s o f t E x c e l A d v a n c e d P a r t 3-4. Microsoft Excel Advanced 3-4 Microsoft Excel 2010 Advanced 3-4 0 Absolute references There may be times when you do not want a cell reference to change when copying or filling cells. You can use an absolute reference to keep a row

More information

Empower and invest in yourself WORKBOOK MICROSOFT EXCEL INTERMEDIATE

Empower and invest in yourself WORKBOOK MICROSOFT EXCEL INTERMEDIATE Empower and invest in yourself WORKBOOK MICROSOFT EXCEL INTERMEDIATE 2 Workbook Microsoft Excel Intermediate onlineacademy.co.za MODULE 01 CUSTOMISING THE EXCEL ENVIRONMENT Customising the Excel environment

More information

Chapter 5: Prefix vs. Postfix 8/19/2018. The Increment and Decrement Operators. Increment and Decrement Operators in Program 5-1

Chapter 5: Prefix vs. Postfix 8/19/2018. The Increment and Decrement Operators. Increment and Decrement Operators in Program 5-1 Chapter 5: Loops and Files The Increment and Decrement Operators ++ is the increment operator. It adds one to a variable. val++; is the same as val = val + 1; ++ can be used before (prefix) or after (postfix)

More information

Excel Tips. Contents. By Dick Evans

Excel Tips. Contents. By Dick Evans Excel Tips By Dick Evans Contents Pasting Data into an Excel Worksheet... 2 Divide by Zero Errors... 2 Creating a Dropdown List... 2 Using the Built In Dropdown List... 3 Entering Data with Forms... 4

More information

Page 1 of 14 Version A Midterm Review 1. The sign means greater than. > =

More information

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

Repeating Instructions. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies 6 Repeating Instructions C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Learn why programs use loops Write

More information

EVALUATION ONLY. In this lesson, you will use advanced. Functions EXCEL 2013 CASE STUDY: ANALYZING A FUNDRAISING CAMPAIGN LEARNING OBJECTIVES

EVALUATION ONLY. In this lesson, you will use advanced. Functions EXCEL 2013 CASE STUDY: ANALYZING A FUNDRAISING CAMPAIGN LEARNING OBJECTIVES EXCEL 2013 3Applying Advanced Functions In this lesson, you will use advanced functions and what-if analyses to facilitate decision making. Complex worksheets for decision making often require advanced

More information

Creating and using reports

Creating and using reports L E S S O N 6 Creating and using reports Lesson objectives To present data from your tables, you will need to generate reports. To create and use reports, you will: a b Create a standard report with data

More information

Excel Shortcuts Increasing YOUR Productivity

Excel Shortcuts Increasing YOUR Productivity Excel Shortcuts Increasing YOUR Productivity CompuHELP Division of Tommy Harrington Enterprises, Inc. tommy@tommyharrington.com https://www.facebook.com/tommyharringtonextremeexcel Excel Shortcuts Increasing

More information

Excel Tutorial 4: Analyzing and Charting Financial Data

Excel Tutorial 4: Analyzing and Charting Financial Data Excel Tutorial 4: Analyzing and Charting Financial Data Microsoft Office 2013 Objectives Use the PMT function to calculate a loan payment Create an embedded pie chart Apply styles to a chart Add data labels

More information

1. Managing Information in Table

1. Managing Information in Table 1. Managing Information in Table Spreadsheets are great for making lists (such as phone lists, client lists). The researchers discovered that not only was list management the number one spreadsheet activity,

More information

Instructions for the Monthly Trial and Final Payroll Verification

Instructions for the Monthly Trial and Final Payroll Verification 1. You will create a pivot table from the Monthly Payroll Master worksheet. In the Monthly Payroll Master worksheet select the cell A1 and then do CTRL + A to highlight all the data in the worksheet. Then

More information

Service Line Export and Pivot Table Report (Windows Excel 2010)

Service Line Export and Pivot Table Report (Windows Excel 2010) Service Line Export and Pivot Table Report (Windows Excel 2010) In this tutorial, we will take the Service Lines of the Active Students only and only the most recent record to take a snapshot look at approximate

More information

Lesson 1: Creating and formatting an Answers analysis

Lesson 1: Creating and formatting an Answers analysis Lesson 1: Creating and formatting an Answers analysis Answers is the ad-hoc query environment in the OBIEE suite. It is in Answers that you create and format analyses to help analyze business results.

More information

VPAT for VMware vcloud Networking and Security 5.1

VPAT for VMware vcloud Networking and Security 5.1 VMware, Inc. 3401 Hillview Avenue Palo Alto, CA 94304 (877) 486-9273 main (650) 427-5001 fax www.vmware.com VPAT for VMware vcloud Networking and Security 5.1 December 17, 2012 Since the VPAT must be comprehensive,

More information

DAY 7: EXCEL CHAPTER 5. Divya Ganesan February 5, 2013

DAY 7: EXCEL CHAPTER 5. Divya Ganesan February 5, 2013 DAY 7: EXCEL CHAPTER 5 Divya Ganesan divya.ganesan@mail.wvu.edu February 5, 2013 1 FREEZING ROWS AND COLUMNS Freezing keeps rows and columns visible during scrolling Click View tab in Ribbon Click on Freeze

More information

Lab 5: Repetition Structures This lab accompanies Chapter 5 of Starting Out with Programming Logic & Design.

Lab 5: Repetition Structures This lab accompanies Chapter 5 of Starting Out with Programming Logic & Design. Starting Out with Programming Logic and Design 1 Lab 5: Repetition Structures This lab accompanies Chapter 5 of Starting Out with Programming Logic & Design. Name: Lab 5.1 Repetition Structures Pseudocode:

More information

Java Programming: Guided Learning with Early Objects Chapter 5 Control Structures II: Repetition

Java Programming: Guided Learning with Early Objects Chapter 5 Control Structures II: Repetition Java Programming: Guided Learning with Early Objects Chapter 5 Control Structures II: Repetition Learn about repetition (looping) control structures Explore how to construct and use: o Counter-controlled

More information

INSERT SUBTOTALS Database Exercise Sort the Data Department Department Data Tab Sort and Filter Group

INSERT SUBTOTALS Database Exercise Sort the Data Department Department Data Tab Sort and Filter Group INSERT SUBTOTALS Subtotals are used to summarize data in a range of data. This command offers many kinds of summary information, including counts, sums, averages, minimums, and maximums. When this feature

More information

Excel Intermediate

Excel Intermediate Excel 2013 - Intermediate (103-124) Advanced Functions Quick Links Range Names Pages EX394 EX407 Data Validation Pages EX410 EX419 VLOOKUP Pages EX176 EX179 EX489 EX500 IF Pages EX172 EX176 EX466 EX489

More information

Excel Working with Formulas and Functions. Using Relative References. Engineering Staff College of India

Excel Working with Formulas and Functions. Using Relative References. Engineering Staff College of India Excel Working with Formulas and Functions Using Relative References Using Absolute References Using Mixed References Entering Relative, Absolute, and Mixed References To enter a relative reference, type

More information

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets-

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets- Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji 2018 Work Sheet 1 Hello World! 1. Create a New Project, Name

More information

Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West

Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West Chapter 10 Managing Numbers and Text Using Excel 1 Objectives Examine the Excel window and tools Enter and format

More information

Microsoft Word - Templates

Microsoft Word - Templates Microsoft Word - Templates Templates & Styles. Microsoft Word come will a large amount of predefined templates designed for you to use, it is also possible to download additional templates from web sites

More information

Indicate the answer choice that best completes the statement or answers the question. Enter the appropriate word(s) to complete the statement.

Indicate the answer choice that best completes the statement or answers the question. Enter the appropriate word(s) to complete the statement. 1. C#, C++, C, and Java use the symbol as the logical OR operator. a. $ b. % c. ^ d. 2. errors are relatively easy to locate and correct because the compiler or interpreter you use highlights every error.

More information

Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5-1

Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5-1 Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5-1 Chapter 6 : (Control Structure- Repetition) Using Decrement or Increment While Loop Do-While Loop FOR Loop Nested Loop

More information

Flag Quiz Application

Flag Quiz Application T U T O R I A L 17 Objectives In this tutorial, you will learn to: Create and initialize arrays. Store information in an array. Refer to individual elements of an array. Sort arrays. Use ComboBoxes to

More information

Dealing with Event Viewer

Dealing with Event Viewer Dealing with Event Viewer Event Viewer is a troubleshooting tool in Microsoft Windows 2000.This how-to article will describe how to use Event Viewer. Event Viewer displays detailed information about system

More information

Using Numbers, Formulas, and Functions

Using Numbers, Formulas, and Functions UNIT FOUR: Using Numbers, Formulas, and Functions T o p i c s : Using the Sort function Create a one-input data table Hide columns Resize columns Calculate with formulas Explore functions I. Using the

More information

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development Information Technology MS Office Excel 2007 Users Guide EXCEL 2007 Using Excel for Data Query & Management IT Training & Development (818) 677-1700 Training@csun.edu TABLE OF CONTENTS Introduction... 1

More information

SmartView. User Guide - Analysis. Version 2.0

SmartView. User Guide - Analysis. Version 2.0 SmartView User Guide - Analysis Version 2.0 Table of Contents Page i Table of Contents Table Of Contents I Introduction 1 Dashboard Layouts 2 Dashboard Mode 2 Story Mode 3 Dashboard Controls 4 Dashboards

More information

Loops. Repeat after me

Loops. Repeat after me Loops Repeat after me 1 Loops A loop is a control structure in which a statement or set of statements execute repeatedly How many times the statements repeat is determined by the value of a control variable,

More information

IC3-2. IC3 Key Applications Exam Exam.

IC3-2. IC3 Key Applications Exam Exam. Certiport IC3-2 IC3 Key Applications Exam Exam TYPE: DEMO http://www.examskey.com/ic3-2.html Examskey Certiport IC3-2 exam demo product is here for you to test the quality of the product. This Certiport

More information

Fundamentals of Programming Session 13

Fundamentals of Programming Session 13 Fundamentals of Programming Session 13 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2014 These slides have been created using Deitel s slides Sharif University of Technology Outlines

More information

TABLE OF CONTENTS. TECHNICAL SUPPORT APPENDIX Appendix A Formulas And Cell Links Appendix B Version 1.1 Formula Revisions...

TABLE OF CONTENTS. TECHNICAL SUPPORT APPENDIX Appendix A Formulas And Cell Links Appendix B Version 1.1 Formula Revisions... SPARC S INSTRUCTIONS For Version 1.1 UNITED STATES DEPARTMENT OF AGRICULTURE Forest Service By Todd Rivas December 29, 1999 TABLE OF CONTENTS WHAT IS SPARC S?... 1 Definition And History... 1 Features...

More information

Computer Programming I - Unit 5 Lecture page 1 of 14

Computer Programming I - Unit 5 Lecture page 1 of 14 page 1 of 14 I. The while Statement while, for, do Loops Note: Loop - a control structure that causes a sequence of statement(s) to be executed repeatedly. The while statement is one of three looping statements

More information

Introduction. Headers and Footers. Word 2010 Working with Headers and Footers. To Insert a Header or Footer: Page 1

Introduction. Headers and Footers. Word 2010 Working with Headers and Footers. To Insert a Header or Footer: Page 1 Word 2010 Working with Headers and Footers Introduction Page 1 You can make your document look professional and polished by utilizing the header and footer sections. The header is a section of the document

More information

SNS COLLEGE OF ENGINEERING

SNS COLLEGE OF ENGINEERING SNS COLLEGE OF ENGINEERING DEPARTMENT OF CSE Presented By Thillaiarasu.N SCRAMBLE 2 Solution 3 What is Pseudocode? 4 Consists of: Short Readable Formally styled English language Used for: Explaining the

More information

Chapter 6 Repetition

Chapter 6 Repetition hapter 6 Repetition Section 6.1 o Loops 1. What is wrong with the following o loop? im index As Integer = 1 o While index 9 lstbox.items.add("hello") index += 1 Loop (A) he test variable should not

More information

The Domino Designer QuickStart Tutorial

The Domino Designer QuickStart Tutorial The Domino Designer QuickStart Tutorial 1. Welcome The Domino Designer QuickStart Tutorial You've installed Domino Designer, you've taken the Designer Guided Tour, and maybe you've even read some of the

More information

Chapter 5 : Repetition (pp )

Chapter 5 : Repetition (pp ) Page 1 of 41 Printer Friendly Version User Name: Stephen Castleberry email Id: scastleberry@rivercityscience.org Book: A First Book of C++ 2007 Cengage Learning Inc. All rights reserved. No part of this

More information

Universal Function. How to build an Universal Function with beas Usability Extension. Beas Tutorial. Boyum Solutions IT A/S

Universal Function. How to build an Universal Function with beas Usability Extension. Beas Tutorial. Boyum Solutions IT A/S Universal Function How to build an Universal Function with beas Usability Extension Boyum Solutions IT A/S Beas Tutorial TABLE OF CONTENTS 1. INTRODUCTION... 3 2. PROCESS... 3 2.1. Header... 5 2.2. Detailed...

More information

Low Vision Technology

Low Vision Technology Low Vision Technology Student Name: Directions: 1. If this assessment is appropriate for this student, use it for planning programming and reporting student performance at least four times. 2. Date the

More information