Concepts of - Algorithm with Flowchart:

Programming

Algorithm:

In order to write computer programming without any logical error, it is recommended programmers prepare a rough writing showing the steps involved in the program. This is called an algorithm. An algorithm presents step-by-step instruction required to solve any problem. These steps can be shown diagrammatical using a flowchart.

Flowchart:

Flowchart is a symbolic or diagrammatic representation of an algorithm. It uses several geometrical figures to represent the operations and arrows to show the direction of flow. Programmers often use it as a program-planning tool to solve a problem. It makes use of symbols which are connected among them to indicate the flow of information and processing. Flowchart are very helpful in writing program and explaining program to others.

Common Symbols in Flowcharts:

flowchart start, stop

Start/Stop (Terminal): Represents the beginning and the end of the flowchart.

flowchart input, output

Input/Output: Represents the values to be given by the user and the results to be displayed.

flowchart processing

Processing: Represents the arithmetic operation to compute a value.

flowchart decision making

Checking/Decision making: Represents the logical checking to decide the flow sequence.

flowchart preparation

Preparation: As the names states, any process step that is a Preparation process flow step, such as a set-up operation.

flowchart connector

Connector: Represents the Continuity of the flowchart in another place / page.

flowchart arrows

Arrows: Represents direction of flow.

Examples of flowcharts:

Example 1:

Draw a flowchart to add two numbers entered by user:

flowchart to add two numbers

Example 2:

Find the largest among three different numbers entered by user:

flowchart to find largest

Example 3:

Find all the roots of a quadratic equation ax2 + bx + c = 0:

flowchart to find largest

Example 3:

Draw a flowchart to find the Fibonacci series till term ≤ 1000:

flowchart-of-fibonacci-sequence

What is New?

We have just updated this website & still working on adding new content & updating existing features.