1 / 53

Microsoft Visual Basic 2008: Reloaded Third Edition

Microsoft Visual Basic 2008: Reloaded, Third Edition. 2. Objectives. After studying this chapter, you should be able to:Include the selection structure in pseudocode and in a flowchartWrite an If

nile
Download Presentation

Microsoft Visual Basic 2008: Reloaded Third Edition

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Microsoft Visual Basic 2008: Reloaded Third Edition Chapter Four Making Decisions in a Program

    2. Microsoft Visual Basic 2008: Reloaded, Third Edition 2 Objectives After studying this chapter, you should be able to: Include the selection structure in pseudocode and in a flowchart Write an IfThenElse statement Write code that uses comparison operators and logical operators Create a variable having block scope Concatenate strings

    3. Microsoft Visual Basic 2008: Reloaded, Third Edition 3 Objectives (continued) Use the ControlChars.NewLine constant Change the case of a string Generate random numbers

    4. Microsoft Visual Basic 2008: Reloaded, Third Edition 4 The Selection Structure Selection structure (or decision structure): Used to select a path to take based on the outcome of a decision or comparison Condition: The decision to be made Results in a Boolean (True or False) answer Four forms of selection structure: If If/Else If/ElseIf/Else Case

    5. Microsoft Visual Basic 2008: Reloaded, Third Edition 5 The Selection Structure (continued)

More Related