Professional Documents
Culture Documents
• Program flowcharts
• Pseudocode
• Data modeling
Structure charts
depict the overall organization of a program, and how the
modules of a program—logically related operations that
perform a well-defined task—are defined and how they
connect to each other hierarchically.
Program flowcharts
use geometric symbols and familiar relational operators to
provide a graphic display of the sequence of steps involved in
a program.
Pseudocode
uses English-like statements in place of the graphic symbols of
the flowchart.
Data modeling:
a technique used to illustrate the data in an application and is
frequently used with object-oriented programming.
• Sequence
• Selection
• Iteration
Sequence
A sequence control structure is simply a series of
procedures that follow one another.
Selection
The selection (if-then-else) control structure involves a choice: if
a certain condition is true, then follow one procedure; else, if
false, follow another.
When more than two possible choices exist, the case control
structure can be used instead.
Statement1
Condition ...
Statement
Statement2
Iteration
loop is an operation that repeats until a certain condition is met.
A looping (iteration) control structure can take two forms.
With the do-while structure, the loop is executed as long as a
condition is true; with the do-until structure, the loop continues until a
certain condition becomes true.
False
...
Condition
Statement
• Be specific
• No infinite loops
• Low-level languages
• High-level languages
• Pascal n Java
– JavaScript
– VBScript
– Perl