What is a flowchart?

What is a flowchart?

A flowchart is a pictorial representation of the order of steps to perform a particular task. In flowcharts, each step is represented in the form of a geometrical shape. Each shape represents a particular use. These shapes are connected using arrows to show the sequence of the flow of steps.

Let us learn the use of each shape in a flowchart:

Rules for drawing flowcharts

The general rules to be followed while drawing a flowchart are as follows:

  • The direction of flow in a flowchart is either from top to bottom or from left to right.
  • Arrowheads are used to indicate the direction of the flow of actions.
  • A flowchart should have only one start and one-stop box. Let us make a flowchart of the steps we followed to calculate the sum of two numbers ’20’ and ’32’ .

Similarly, we can solve many simple and complex problems by making a flowchart. Flowcharts are widely used to write computer programs.

Conditional problem solving

Sometimes, while solving a problem, the computer needs to check some conditions.

This means that the computer will run the program only if the condition is true. We use ‘If…Then…Else’ statement for this purpose. When the condition after ‘If’ is true, the computer will follow the instructions given after ‘Then’ and follow the further steps.

But when the condition given with ‘If’ is false, then the computer will follow the instructions given after ‘Else’ and follow the further steps. This problem solving method is called the conditional problem solving.

Let us understand this concept with the help of a flowchart to find bigger of the two numbers A and B. Start

Looping

In computing, a loop refers to a sequence of instructions that is repeated until a particular condition is satisfied.