This preview shows page 1. Sign up to view the full content.
Unformatted text preview: programs
2. As flowcharts
3. As pseudocodes
4. As decision tables When an algorithm is represented in the form of a programming language, it becomes a
program. Thus any program is an algorithm although the reverse is not true.
Besides represented as programs, algorithms are often represented as flowcharts,
pseudocodes and decision tables. These are the commonly used tools used by
programmers for program planning which can often be of immense help in developing an
effective and correct algorithm for a program before it is coded into a programming
language. These program planning tools are described below. Programmers generally
select one of these tools
What is a Flowchart?
A flowchart is a pictorial representation of an algorithm. It is the layout, in a visual, twodimensional format, of the plan to be followed when the corresponding algorithm is
converted into a program by writing it in a programming language. It acts like a roadmap
for a programmer and guides him/her on how to go from the starting point to the final
point while converting the algorithm into a computer program.
A flowchart is often used by programmers "as a program planning tool for organizing a
sequence of steps necessary to solve a problem by a computer. It uses boxes of different
shapes to denote different types of instructions. The actual instructions are written within
these boxes using clear and concise statements. These boxes are connected by solid lines
having arrow marks to indicate the flow of operation, that is, the exact sequence in which
the instructions are to be executed. The process of drawing a flowchart for an algorithm is
often referred to as flowcharting.
Why Use Flowcharts?
Normally, an algorithm is first represented in the form of a flowchart and the flowchart is
then expressed in some programming language to prepare a computer program. The main
advantage of this two step approach in program writing is that while drawing a flowchart,
a programmer is not concerned with the details of the elements o...
View Full Document
This document was uploaded on 04/07/2014.
- Spring '14