
Pseudocode
and N-S diagrams
2.1 How
to
write pseudocode
When designing a solution algorithm, a programmer needs to keep in
mind that the set of instructions will eventually be performed by a
computer. That is, if the programmer uses words and phrases in his or
her pseudocode which are in line with basic computer operations, then
the translation from the pseudocode algorithm to a specific
programming language becomes quite simple.
This chapter establishes six basic computer operations and
introduces common words and keywords which are used to represent
these operations in pseudocode. Each operation can be represented as
a straightforward Englis ...