Introduction of Structured Programming Concepts

1509 Words7 Pages
Ikwuetoghu Martins


Structured Programming is a method of planning programs that avoids the branching category of control structures.

structured programming: 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: sequential, test or selection, and iteration.

Software engineering is a discipline that is concerned with the construction of robust and reliable computer programs. Just as civil engineers will use tried and tested methods
…show more content…
The choice is decided by asking some sort of question. The answer determines the path (or which lines of code) will be executed. Example is the if then else structure.

Iteration – Also known as repetition, it allows some code (one or too many lines) to be executed (or repeated) several times. The code might not be executed at all (repeat it zero times), executed a fixed number of times or executed indefinitely until some condition has been met. Also known as looping. Example is making use of the while structure.

Branching – A control structure that allows the flow of execution to jump to a different part of the program. This makes use of the GOTO Structure which structured programming aims to eliminate this.

Code Reusability

Reuse is the practice of using existing code…again.

Having considered the Top-down design, there is also the bottom-up design. In bottom-up design, the approach is to start “at the bottom”, with problems that have already been solved and for which a reusable software component might exist. From this position, the software engineer works upwards towards a solution to the overall problem.

It is important in this approach that the reusable components are as “modular” as possible.

A module is a component of a larger system that interacts with the rest of the system in a simple and well-defined manner.

It is difficult to reuse work done for other
Open Document