Algorithm and Flowchart
Algorithm and Flowchart
ALGORITHM
1. START
2. Read X, Y, Z
3. Compute Sum (S) as X + Y + Z
4. Compute Average (A) as S / 3
5. Compute Product (P) as X * Y * Z
6. END
SYMBOL 1
Terminator: An oval flow chart shape indicates the start or end of the
process, usually containing the word “Start” or “End”.
TERMINATO
R
SYMBOL 2
INPUT/
OUTPUT
SYMBOL 3
PROCESS
SYMBOL 4
DECISIO
N
SYMBOL 5
• Delay: used to indicate a delay or wait in the process for input from
some other process.
DELAY
SYMBOL 7
Algorithm
1. Read A, B
2. If A is less than B
BIG=B
SMALL = A
3. Else
BIG=A
SMALL = B
4. Write (Display) BIG, SMALL
FIND THE LARGEST NUMBER BETWEEN A, B AND C
ALGORITHM TO FIND ROOTS OF A QUADRATIC
EQUATION
Sum of 5
numbers
Print Hello World 10
times
Draw a flowchart to log in to facebook
account
• Note!
As there are many ways to solve a given
problem so there are many ways to
draw a flowchart.
ADVANTAGES OF USING FLOWCHARTS
• Communication: Flowcharts are better way of communicating the logic of a system to all
concerned.
• Effective analysis: With the help of flowchart, problem can be analysed in more effective way.
• Proper documentation: Program flowcharts serve as a good program documentation, which
is needed for various purposes.
• Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and
program development phase.
• Proper Debugging: The flowchart helps in debugging process.
• Efficient Program Maintenance: The maintenance of operating program becomes easy
with the help of flowchart. It helps the programmer to put efforts more efficiently on that part.
LIMITATIONS OF USING FLOWCHARTS
• Complex logic: Sometimes, the program logic is quite complicated. In that case,
flowchart becomes complex and clumsy.
• Alterations and Modifications: If alterations are required the flowchart may require
re-drawing completely.
RAPTOR TOOL TO DRAW FLOWCHARTS
• https://raptorflowchart.en.softonic.com/
PRACTICE A FLOWCHART HERE
• https://www.dyclassroom.com/flowchart/exercise-2
FOR RAPTOR TUTORIAL
GOTO HELP GENERAL HELP
OR JUST PRESS F1
HERE CLICK ON RAPTOR TUTORIAL AND STUDY HOW TO CREATE A
FLOWCHART
THANK YOU