Flowchart is a graphical representation of an algorithm. it is a way of visually presenting the flow of data, operations performed on data and sequence of these operations.Flowchart is similar to the layout plan of a building. A designer draws the layout plan of the building before constructing it. Similarly, a programmer prefers to design the flowchart before writing the computer program. Flowchart is designed according to the defined rules.
Uses of logic flowchart:-
Flowchart is
used for the following reason:
1. Flowchart is used to represent an
algorithm in simple graphical manner.
2. Flowchart is used to show the step of
an algorithm in an easy way.
3. Flowchart is used to understand the
flow of the program.
4. Flowchart is used to improve the
logic for solving a problem.
5. Programs can be reviewed and debugged
easily.
Flowchart Symbols:-
Flowchart uses simple symbols to show different types of
statements:
1. Input/output
Parallelogram
symbol is used to represent an input or output step. Input statement is used to
get input from the user. The output statement is used to display a message to
the user or to display a value.
2 Process
Rectangle symbol is used to represent a process step. A process may be a complex calculation or simply an assignment statement.
3. Selection
Diamond symbol is used to represent a selection step. A condition is given in the diamond, The flow of control from diamond may do in two directions i.e. One direction if the condition is true and the second direction if the condition is false.
4. Start/End
Oval symbol is used to represent the start or end of the flowchart.
5. Flow Lines
Arrow symbols are used to represent the direction of flow in the flowchart. There are four types of flow lines.
6. Connector
Circle symbol is used to combine different flow lines. it is used when two or more flow symbols come from different and move to one direction.
7. Function Call
Rectangle symbol with double lines on left and right sides is used to call a function. The name of function with parameter is written inside the symbol.
8. Preparation
This symbol is used with for loops to specify start and stop conditions.
if you have any question about This lecture or have any suggestion for us you can comment blow. Thanks
Rectangle symbol with double lines on left and right sides is used to call a function. The name of function with parameter is written inside the symbol.
This symbol is used with for loops to specify start and stop conditions.
0 comments:
Post a Comment
Thanks