ACCS 120 Chapter7
ACCS 120 Chapter7
Chapter 7
ALGORITHMS
Decision
Some problems cannot be solved with only a sequence of
simple instructions. Sometimes we need to test a condition.
If the result of testing is true, we follow a sequence of
instructions: if it is false, we follow a different sequence of
instructions. This is called the decision (selection) construct.
Repetition
15
Algorithm:
An ordered set of unambiguous steps that produces a
result and terminates in a finite time.
Ordered set
27
Unambiguous steps