Loading presentation...

Present Remotely

Send the link below via email or IM


Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.


Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Coding Single and Dual Alternative Selection Structures

No description

Harper Miller

on 15 January 2015

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Coding Single and Dual Alternative Selection Structures

If...Then...Else Statement
Visual Basic provides this for coding single-alternative and dual-alternative selection structures. (The statement's syntax is in figure 4-9).
The square brackets in the syntax indicate that the Else portion is optional.
Boldfaced items in a statement's syntax are required.
If...Then...Else Statement (cont.)
Italicized items in a statement' syntax indicate where the programmer must supply information.
In the If...Then...Else statement, the programmer must supply the condition that the computer needs to evaluate before further processing can occur
Coding Single and Dual Alternative Selection Structures
The Condition
The condition
must be a Boolean expression
The condition can contain variables, constants, properties, methods, arithmetic operators, comparison operators, and logical operators
What the Programmer Must Also Provide
The programmer must provide:
The statements to be processed in the true path and (optionally) in the false path
The set of statements contained in each path is referred to as a statement block
Full transcript