Unlock access to all the studying documents.
View Full Document
Chapter 3
IFTHENELSE
Control Structure
© 2008 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.
Marilyn Bohl/Maria Rynn
Tools for Structured and Object-Oriented Design, 7e
Introduction
In a SIMPLE SEQUENCE the steps are carried
out in a sequential manner.
It may be desirable to vary the sequence of
processing steps carried out within a solution
algorithm.
Billing Problem (Flowchart)
Billing Example
Decision symbol
The diamond-shaped symbol.
A choice between two alternative paths.
Pseudocode
Pseudocode
Similar to some high-level programming
languages, but it does not require that we follow
strict rules as we would if actually writing a
program.
Pseudocode—Introduction
IFTHENELSE Control Structure
IFTHENELSE control structure