You are on page 1of 5

FLOWCHARTS

An Introduction and Refresher


ALGORITHMS AND FLOWCHARTING
• An algorithm is a set of instructions that if followed in sequence will
lead to a solution for the problem. An algorithm must: have a set of
numbered steps, precise, unambiguous and have instructions that
pass the flow of control from one process to another. It must
eventually terminate.
• Flowcharts are one of the ways that can be used to represent
algorithms. It is a pictorial way of representing an algorithm using a
set of standard symbols. Flowcharts are drawn from top to bottom,
left to right.
FLOWCHARTING SYMBOLS
SAMPLE STRUCTURE
START
• Develop a flowchart that will
accept a person's name and
age. Enter Name,
age
• Check the person's age.
• If age is > 21 then print out Yes Age No
>21
that the person can vote,
Output
else print out you cannot can
Output
cannot
vote. vote vote
• End the program.
End
Complete the following
• Develop a flowchart from the following Algorithm that inputs two
numbers, adds the number and outputs the result.
• Begin
• Input num1
• Input num2
• Store num1 + num2 to sum
• Output sum
• End

You might also like