Algorithm is a sequence of activities to be processed for getting desired output from a given input. Once an algorithm is designed, a flow chart is used to show the step by step representation of it. A flowchart is a graphical representation of a process in which each step is represented by a symbol. The flowchart always starts/ends with an oval shaped symbol. Whenever any decision is required to be taken based on some condition, then the diamond symbol is used. All operations representing processing, computations are written inside the rectangular shaped symbol.
Some commonly used flowchart symbols are terminal symbol, input/output symbol, processing symbol, decision box and flow lines. The oval shaped symbol is a terminal symbol which is used to represent the beginning and end of a program. A parallelogram symbol is used to represent input of data to a device or output of data from a device. A rectangle shaped is used as a processing symbol. A processing symbol is used to represent processing of data. A diamond shape in a flowchart is a decision box which is used to represent conditional statements. The arrow symbol is used to show the direction of a flowchart and to connect various flowchart symbols.