Structured Programming is a method of planning programs that avoids the branching category of control structures.
structured programming can be termed as a technique for organizing and coding computer programs in which a hierarchy of modules is used, each having a single entry and a single exit point, and in which control is passed downward through the structure without unconditional
branches to higher levels of the structure.
Three types of control flow are used:
2.test or selection, and
in other words, Structured programming is a programming
paradigm aimed on improving the clarity, quality, and development time of a computer program
by making extensive use of subroutines, block structures and for and while loops – in
contrast to using simple tests and jumps such as the goto statement which could lead to
“spaghetti code” which is both difficult to follow and to maintain.
It emerged in the 1960s—particularly from work by Böhm and Jacopini and Edsger Dijkstra in 1
PRINCIPLES OF STRUCTURED PROGRAMMING
– Make flow of control as easily understood as
possible. (Emphasis on use of Control Structures).
– Build you program from top-down. Decompose the problem into smaller and smaller pieces.
(Top down development (Modularization))
– Avoid repeating the same code, can fix code in one place.
top-down approach design was based on the following method:
■ To solve a large problem, break the problem into several pieces and work on each piece
■ to solve each piece, treat it as a new problem that can itself be broken down into smaller