Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 16 I’m on the Inside; You’re on the Outside.

Slides:



Advertisements
Similar presentations
Chapter 6: The Repetition Structure
Advertisements

Programming with Microsoft Visual Basic 2008 Fourth Edition
Programming with Microsoft Visual Basic th Edition
Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
Programming Logic and Design Eighth Edition
CHAPTER 5: Repetition Control Structure. Objectives  To develop algorithms that use DOWHILE and REPEAT.. UNTIL structures  Introduce a pseudocode for.
Microsoft Visual Basic: Reloaded Chapter Six Repeating Program Instructions.
Objectives In this chapter, you will learn about:
Repeating Actions While and For Loops
Excel and VBA Creating an Excel Application
VB Chapters 11 & 12 Security panel app chpt 12. Textbox Properties In the Interest Calculator we have a few new properties Multi-line property set to.
Repeating Program Instructions Chapter Microsoft Visual Basic.NET: Reloaded 1.
REPETITION STRUCTURES. Topics Introduction to Repetition Structures The while Loop: a Condition- Controlled Loop The for Loop: a Count-Controlled Loop.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Six Repeating Program Instructions.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Interest Calculator Application Introducing the For...Next Repetition Statements.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Chapter 10 Creating Pop-Up Windows, Adding Scrolling Messages, and Validating Forms HTML5 & CSS 7 th Edition.
Clearly Visual Basic: Programming with Visual Basic 2008
Chapter 12: How Long Can This Go On?
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Seven More on the Repetition Structure.
Chapter 4: The Selection Structure
For Loops (ProjFor1, ProjFor2, ProjFor3, ProjFor4, textbox, textbox1) Please use speaker notes for additional information!
Programming Logic and Design Fifth Edition, Comprehensive
Chapter Ten Structures and Sequential Access Files Programming with Microsoft Visual Basic th Edition.
Programming Logic and Design Sixth Edition Chapter 5 Looping.
Chapter 5: Control Structures: Iteration Visual Basic.NET Programming: From Problem Analysis to Program Design.
ISAT 252 Visual Basic Repetition. Assignment Should have read Chapter 5 ( ) on loops Do tutorial 5-4.
Controlling Execution Programming Right from the Start with Visual Basic.NET 1/e 8.
Chapter 6: The Repetition Structure
Tutorial 6 The Repetition Structure
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter Six The Do Loop and List Boxes.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
An Object-Oriented Approach to Programming Logic and Design Fourth Edition Chapter 4 Looping.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Class Average Application Introducing the Do...Loop While and Do...Loop Until.
Pseudocode Algorithms Using Sequence, Selection, and Repetition Simple Program Design Third Edition A Step-by-Step Approach 6.
Programming with Microsoft Visual Basic th Edition
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Chapter Four The Selection Structure Programming with Microsoft Visual Basic th Edition.
Chapter 15 I’m on the Inside; You’re on the Outside (Nested Loops) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 5 Repetition.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 5 Repetition Structures.
CSC 1010 Programming for All Lecture 4 Loops Some material based on material from Marty Stepp, Instructor, University of Washington.
For…Next Loops, Checked List Boxes, and Combo Boxes Chapter 5.
Visual Basic.NET BASICS Lesson 11 List Boxes, For Next Loops, and Label Settings.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 13 How Long Can This Go On?
Chapter 13 Do It, Then Ask Permission (Posttest Loops) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 14 Do It, Then Ask Permission.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
 2003 Prentice Hall, Inc. All rights reserved. 1 Outline 11.1 Test-Driving the Interest Calculator Application 11.2 Essentials of Counter-Controlled Repetition.
An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure.
Chapter 4: Do-It-Yourself Designing (Designing Interfaces)
Microsoft Visual Basic 2008: Reloaded Third Edition
Chapter 8: More on the Repetition Structure
Clearly Visual Basic: Programming with Visual Basic nd Edition
Topics Introduction to Repetition Structures
CHAPTER 5A Loop Structure
Topics Introduction to Repetition Structures
Repeating Program Instructions
Microsoft Visual Basic 2005: Reloaded Second Edition
Chapter 6: Repetition Structures
Chapter 5: Repetition Structures
Objectives After studying this chapter, you should be able to:
CIS 16 Application Development Programming with Visual Basic
Chapter 8: More on the Repetition Structure
Topics Introduction to Repetition Structures
Presentation transcript:

Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 16 I’m on the Inside; You’re on the Outside

Clearly Visual Basic: Programming with Visual Basic 2008 Objectives Nest repetition structures Utilize a text box’s Multiline, ReadOnly, and ScrollBars properties 2

Clearly Visual Basic: Programming with Visual Basic 2008 One Loop within Another Loop Repetition structures can be nested Programmer –Determines whether a problem’s solution requires a nested repetition structure Figure 16-1 –Shows problem specification and algorithm from Chapter 13 3

Clearly Visual Basic: Programming with Visual Basic

5

Clock Application Clock –Uses nested repetition structures to keep track of the time –The minute hand Controlled by the inner (nested) loop The hour hand is controlled by the outer loop Figure 16-3 –Shows logic used by a clock’s hour and minute hands Figure 16-4 –Shows interface for the Clock application 6

Clearly Visual Basic: Programming with Visual Basic

8

Revisiting the Monthly Payment Calculator Application Figure 16-6 –Shows the output, processing, input items, and algorithm for the Monthly Payment Calculator application –Application calculates and displays: Monthly payments on a loan –Payments are calculated using: Principal and term entered by the user, along with a loop that varies the annual interest rates from 4% through 7% 9

Clearly Visual Basic: Programming with Visual Basic

Clearly Visual Basic: Programming with Visual Basic

Clearly Visual Basic: Programming with Visual Basic 2008 Revisiting the Monthly Payment Calculator Application (continued) ScrollBars property –Indicates whether any scroll bars appear on the text box Multiline property –Specifies whether the text can span more than one line in the control Setting the text box’s ReadOnly property to True –Prevents the user from editing the contents of a text box 12

Clearly Visual Basic: Programming with Visual Basic

Clearly Visual Basic: Programming with Visual Basic 2008 But I Want To Do It a Different Way Use two Do…Loop statements or one For…Next statement and one Do…Loop statement 14

Clearly Visual Basic: Programming with Visual Basic 2008 Summary Repetition structures can be nested For a nested repetition structure to work correctly: –It must be contained entirely within the outer repetition structure When a text box’s Multiline property is set to True: –It can accept multiple lines of text 15

Summary (continued) A text box’s ScrollBars property –Determines whether scroll bars appear on the control Setting the text box’s ReadOnly property to True –Prevents the user from editing the contents of a text box Clearly Visual Basic: Programming with Visual Basic