Skip to Main Content
Students' Guide to Program Design
book

Students' Guide to Program Design

by Lesley Anne Robertson
May 2014
Intermediate to advanced content levelIntermediate to advanced
188 pages
7h 8m
English
Newnes
Content preview from Students' Guide to Program Design
Students' Guide to
Program
Design
2.2 The Structure Theorem
The Structure Theorem forms the basic framework for structured
programming. It states that it is possible to write any computer
program by using only three basic control structures, viz:
1 sequence
2 selection, and
3 repetition.
These control structures are easily represented in pseudocode and
Nassi-Schneiderman diagrams.
The three basic control structures
1 Sequence
The sequence control structure is defined as the straightforward
execution of one processing step after another. In pseudocode, we
represent this construct as a sequence of pseudocode statements:
Statement a
Statement
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781483141442