How to draw the flowchart

How to draw the flowchart

Articles Hits: 84

The flowchart is option of the formalized record of an algorithm or process. Each step of an algorithm in this representation is represented in the form of blocks of various form which are connected among themselves by lines. In the flowchart it is possible to display all stages of the solution of any task, since input of basic data, processing by operators, performance of cyclic and conditional functions, and finishing with operations of a conclusion of the resulting values.

Instruction

1. In the beginning any flowchart put an element of an entrance to the program. It it is designatedis rectangle with the rounded edges, in it write the Start team. It will be the initial point of your flowchart. Draw after an initial figure a straight line for continuation of the flowchart down.

2. As a rule, in the beginning an algorithm input of basic data is made for the solution of an objective. Draw a parallelogram below the line so that it was continuous continuation of the scheme. In a parallelogram write the made action, usually it is operations of data reading from the screen (Read nInp) or other devices. It is important that the names of variables entered by you in this step will be used further in all body of the flowchart.

3. Performance by one or groups of operations, any data processing (change of value or a form of representation) is designated in the form of a rectangle. Draw this figure in the right place of an algorithm by drawing up the flowchart. In a rectangle write down the made actions with variables, for example, operation of giving registers as follows: mOut = 10*nInp b + 5. Further also for continuation of the flowchart draw the line down.

4. An important component of any algorithm and according to the flowchart are conditional and cyclic operators. At these operators one entrance and two and or more alternative an exit. After calculation of the condition set by the operator, further transition is carried out only on one way. Draw an entrance to an element in the form of the line entering the top top of an element.

5. For a task of the operator of a condition draw a rhombus from this line. In a figure specify a condition and draw the lines specifying further transition depending on its performance. The condition is set generally by comparison operations (>, <=). Transition on the line is carried out under a true condition, down back – at false. Specify near output lines of a figure results of a condition (true, false). Non-performance of a condition (false) returns to a certain step above on an algorithm body. Draw lines at right angle from an exit from a condition and to the necessary operator.

6. The cyclic operator is designated by rectangles with slanted corners. And for drawing of this operator two boundary figures are used. The beginning of a cycle is set by a figure with slanted top corners, the end of a cycle – a figure with slanted bottom corners. Specify an operating condition of a cycle in a figure of the beginning of a cycle and between boundary figures draw internal operators of a cycle.

7. In end of the flowchart the conclusion of resultants of data to carriers or to the screen has to be specified. The operator of a conclusion is drawn similar to the operator of input. Represent a parallelogram and in it operation of a conclusion with use of output variables.

8. At the end of the flowchart draw an element terminator – a rectangle with the rounded edges. Write in it the word "End". The flowchart is complete.

Author: «MirrorInfo» Dream Team

Print