The Flowchart Structures Flashcards
How many flowchart structures are there?
4 Flowchart Structures
Name the 4 Flowchart Structures
- Sequence Structure
- Decision Structure
- Repetition Structure
- Case Structure
A flowchart structure that a series of action is performed in a sequence.
Sequence Structure
A flowchart structure that represents part of the program that repeats. Also known as a loop.
Repetition Structure
A flowchart structure that one of TWO possible actions is taken, depending on a condition.
Decision Structure
A flowchart structure that one of SEVERAL possible actions is taken, depending on a condition.
Case Structure
What action are you going to do to stop the infinite loop created by a repetition structure?
By Controlling the Repetition Structure
How can this flowchart be modified so its no longer an infinite loop?
By adding an action within the repetition that changes the value of the variable.
The condition is tested BEFORE any actions are performed.
Pre-Test Repetition Structure
The condition is tested AFTER the actions are performed.
Post-Test Repetition Structure
Structures that are commonly combined to create more complex algorithms.
Combining Structures