The above algorithm involves a single decision step.
When a flow chart is too large to be made on page and is to be continued on another page, a connector - symbol is used in the form of a small circle. Generally a letter or number is written inside the circle to avoid confusion.
Connector to show the continuity at the beginning of the new page
Connector indicating the end of the first page
PSEUDOCODE
Some programmers prefer to explain the logic of a solution algorithm with a more English - like technique (instead of a graphical flowcharting techniques)
Three basic pseudocode control structure
1) Beginning and he End of the module Start at the Left margin. 2) The action within the modules must be indented. 3) The control structure in a module also must be indented.
MAIN MODULE
CALL INTIALIZTION CALL PROCESS CALL WRAP - UP
END
PROCESS MODULE
DO WHILE NOT EOF CALL READ A RECORD CALL CALCULATTE CALL ACCUMULATE TOTALS CALL PRINT DETAIL LINE ENDDO
RETURN CALCULATE DISCOUNT MODULE
IF DISCOUNT CODE = 0 THEN DISCOUNT = 0 ELSE DISCOUNT = .02 ENDIF
RETURN
|