What’s Structured Programming?

Print anything with Printful



Structured programming is a logical construct that includes concatenation, selection, and repetition. It eliminates the need for GOTO statements and allows for efficient program functioning. It varies based on program purpose and may include modular programming.

In the world of computer programming, structured programming is a logical construct that allows a program to function efficiently. With this in mind, many programmers consider it one of the disciplines that make up the overall process of procedural programming. One benefit of implementing a structured programming model is the ability to eliminate, or at least reduce, the need to use the GOTO statement.

The essential makeup of any kind of structured programming tends to include three basic elements: concatenation, selection, and repetition. Concatenation has to do with the logical sequence of instructions that form the basis of the order to be executed. Each step in the sequence should logically proceed to the next step without invoking unwanted activity.

The select phase allows the selection of any of several instructions to execute, based on the current state of the program. Typically, select statements will contain keywords that help identify the order as a logical executable, such as “if”, “then”, “endif”, or “switch”.

A third component is repetition. Within this element, a selected statement remains active until the program reaches a point where some other action needs to be performed. A repeat will normally include keywords such as “repeat”, “for” or “do…until”. In essence, the iteration tells the program how long to continue the function before prompting for further instructions.

The exact nature of structured programming will vary depending on the purpose and function of the program. Most modules will start with a single entry point, but may allow for more than one exit point. Some types, sometimes called modular programming, will allow for the creation of subsets or modules within the overall program structure that interact with each other, based on the type of order being executed.




Protect your devices with Threat Protection by NordVPN


Skip to content