Guidance Structure
The Sequential or Sequential structure is the basic structure of an algorithm consisting of one or more instructions, each of which each instruction is done in sequence according to the writing of the algorithm. The result of this structured algorithm is determined by its instruction sequence. if there is an instruction change, then the result may also change. The algorithmic instructions in this runtunan structure will be done all and nothing is ignored. Basically, all programs are built on the structure of the algorithm.
Notice the instructions above, at first the processor executes the statement 1, statement 2 is executed after statement 1, and statement 3 is executed after statement 3 in sequence.
Example of a Runtunan Structure
Calculates the area of the rectangle
START
Declared integer (p, l, broad)
Input (p, l)
Area = p * l
Output (area)
STOP
Flow chart
An example of calculating the area of a rectangle above one of the example algorithms with the structure of the sequence, the initial program asks for inputs p and l, then the broad processing program = p * l, and the latter instruction is that the program gives a broad output result.
So many of my posts this time, may be useful for all buddies.