sábado, 21 de noviembre de 2009

STRUCTURED PROGRAMMING


STRUCTURED PROGRAMMING.


Structured Programming: A technique in which the structure of a program the writing of its parts is made as clearly as possible through the use of three logical structures of control:

Sequence; a sequence of two or more simple operations.

Selection: Conditional Split one or more transactions.

Interaction: Repeating an operation while a condition is met.


These three types of logical structures of control can be combined to produce programs that handle all information processing task.

A structured program cosists of segments, which may be constituted by a few instructions or a page or more coding. Each segment has only one entrance ande one exit these segments, assuming you do not have infinite loops and have never run instructions are called programs themselves. When several programs themselves are combined using the three basic control structures mentioned above, the outcome is also own program.

Structured programming is based on the structure theorem, which states that any proper program (a program with one entrance and one exit only) is equivalent to a program that contains only the logical structures mentioned above.

An important feature is a structured program that can be read sequentially, from beginning to end without losing the continuity of the task that the program meets opposite of what occurs with other programming styles.

This is important because it is much easier to understand fully the work they perform a particular funtion, if all instructions that affect is action are physically close and enclosed by a block. The ease of reading, from beginning to end, is a consequence of using only three control structures and to eliminate diversion instruction control flow, except in very special circumstances such as simulation of a logical structure in language control programming that does not possess.


Creado por Geraldine Avila

No hay comentarios:

Publicar un comentario