ch05 - Microsoft Visual Basic 2008: Reloaded Third Edition...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter Five More on the Selection Structure
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Objectives After studying this chapter, you should be able to: Include a nested selection structure in pseudocode and in a flowchart Code an If/ElseIf/Else selection structure Include a Case selection structure in pseudocode and in a flowchart Code a Case selection structure Include radio buttons in an interface Microsoft Visual Basic 2008: Reloaded, Third Edition 2
Background image of page 2
Objectives (continued) Display a message in a message box Prevent the entry of unwanted characters in a text box Microsoft Visual Basic 2008: Reloaded, Third Edition 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual Basic 2008: Reloaded, Third Edition 4 Nested Selection Structures Nested selection structure : a selection structure that is completely contained within another selection structure Primary decision : decision made by the outer selection structure Secondary decision : decision made by the inner selection structure
Background image of page 4
Nested Selection Structures (continued) Microsoft Visual Basic 2008: Reloaded, Third Edition 5 Figure 5-1: Sample run of the Voter Eligibility application
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual Basic 2008: Reloaded, Third Edition 6 Figure 5-2: Pseudocode and code showing the nested selection structure in the true path
Background image of page 6
Microsoft Visual Basic 2008: Reloaded, Third Edition 7 Figure 5-3: Flowchart showing the nested selection structure in the true path
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Microsoft Visual Basic 2008: Reloaded, Third Edition 8 Figure 5-4: Pseudocode and code showing the nested selection structure in the false path
Background image of page 8
Microsoft Visual Basic 2008: Reloaded, Third Edition 9 Figure 5-5: Flowchart showing the nested selection structure in the false path
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The If/ElseIf/Else Selection Structure Example: a procedure to display a message based on a letter grade Microsoft Visual Basic 2008: Reloaded, Third Edition 10
Background image of page 10
The If/ElseIf/Else Selection Structure (continued) Microsoft Visual Basic 2008: Reloaded, Third Edition 11 Figure 5-6: Sample run of the Grade Message application
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The If/ElseIf/Else Selection Structure (continued) Microsoft Visual Basic 2008: Reloaded, Third Edition 12 Figure 5-7: Two versions of the messageButton’s Click event procedure
Background image of page 12
Microsoft Visual Basic 2008: Reloaded, Third Edition 13 Figure 5-7: Two versions of the messageButton’s Click event procedure (continued)
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 37

ch05 - Microsoft Visual Basic 2008: Reloaded Third Edition...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online