Flowcharts and Diagrams

Flowcharts are a graphical representation of an algorithm. They are used to represent the flow of control in a program.

The algorithms are:

  • Unambiguous/well-defined: Each step performs a very clear and unambiguous task.
  • Finite: The total number of steps in the algorithm is finite. So, the algorithm will terminate after executing these steps and provide a definite output.

Any structured programming language supports three types of statements (constructs), and these are:

  1. Sequencing: Executing a set of statements in a sequential order
  2. Decision-making: Choosing from many alternative paths
  3. Repetition/Iteration: Executing one or a group of statements in a loop iteratively

Flowcharts are made up of different symbols that represent different elements of the program. The symbols are connected by arrows to show the flow of control.

SymbolPurposeDescription
Arrow symbolFlow LineIndicates the flow of logic by connecting symbols
OvalTerminal(Stop/ Start)Represents the start and end of a flowchart
ParallelogramI/OUsed for input and output operations.
RectangleProcessingUsed for arithmetic operations and data manipulations.
DiamondDecisionUsed for decision making between two or more alternatives
CircleOn-page connectedUsed to join different flowline
Circle Downward PointedOff page connectorUsed to connect the flowchart on a different page
Margined Rectangleredefined Process/ FunctionRepresents a group of statements performing one processing task.

alt text

pow