SlideShare a Scribd company logo
6
Most read
12
Most read
15
Most read
FLOW CHARTS
Mrs Parimala G
Assistant Professor,
Department of Computer Science & Engineering
Vignan’s Foundation for Science, Technology and Research
CONTENTS
Overview
Symbols of Flow Charts
Examples
OVERVIEW
 Flowcharts are the graphical representation of a solution to a
particular problem which comes under the
category of Programming Practices and Techniques.
 In simple word flowchart is a graphical representation of
a program.
 Flowcharts are Symbolic diagrams which shows type of
data(numeric, character etc),data flow, control flow and
programming logic.
The first flowchart was created
by Von Neuman in 1945.
Flowcharts are important for planning
and working of a program.
Flowcharts decreases our efforts i.e they
are easy to understand and check the
logics and algorithms.
A FLOWCHART
Shows the logic of an
algorithm.
Emphasizes individual steps
and their interconnections.
E.g: control flow from one
action to the next
ADVANTAGES & DISADVANTAGES
Advantages:
 A good way to communicate the details of a task or
process to others.
 An excellent way of documenting each stage of the
process.
 Acts as a blue print to guide the programmer through
the development.
Disadvantages:
 Some tasks are difficult to represent.
 If an alteration is made the flowchart need to be
redrawn.
S Y M B O L S O F
F L O W C H A R T
1. TERMINAL
This symbol shows the beginning or ending of
a program i.e. first and the last element
of flowchart.
It is single directional i.e. only one flow
line(either incoming line or outgoing line)
can be connected with terminal symbol.
2. INPUT/OUTPUT SYMBOL
A parallelogram is used to represent
input and output operation, it can
have 2 flow lines(in coming & out
going lines).
3. PROCESS SYMBOL
This symbol is used for showing mathematical
calculation, change in data or any type of
processing on data, it can have 2 flow
lines(incoming line or outgoing line).
4.FLOW LINE :
A straight line between two symbols
shows the logical flow of control in
a program is flow line.
5. DECISION SYMBOL
Diamond symbol is used to show or
apply condition , it has single flow line
for input and two flow lines for output
i.e. one for true part and one for false
part.
6. CONNECTOR SYMBOL
Connector symbol (circle) are
used to connect separate
portions of flow chats, it can
have single flow line(either in
coming line or out going line).
TYPES OF FLOWCHARTS
1.Sequential Flowcharts
2.Selective Flowcharts
3.Iterative Flowcharts
EXAMPLES
1. SEQUENTIAL FLOWCHART
As the name suggests, the
control flow and data flow is
sequential in sequential
flowchart.
EXAMPLE 1: ADDITION OF TWO NUMBERS
Algorithm
Step 1: Start
Step 2: take first number(assume as
a)
Step 3:take second number(assume
as b)
Step 4:add to above two
number(assume as c)
Step 5: display the result/output( c )
Step 6: Stop
Flowchart
START
Read 1st number( a)
Read 2nd number( b)
c=add a & b
Display the output( c)
STOP
a= 5
b=7
c=5+7
c=12
EXAMPLE 2:CALCULATE THE INTEREST OF A
BANK DEPOSIT.
Algorithm
Step 1: Start
Step 2: Read amount(amt)
Step 3: Read years(years)
Step 4:Read rate(rate)
Step 5:calculate the interest
(interest=amt*years*rate/100)
Step 6 : print intersest
Step 7: Stop
Flowchart
START
Read amount(amt)
Read years(years)
Read rate(rate)
Interest=(amt*years*rate)/10
0
Stop
Print Interest
2. SELECTIVE FLOWCHARTS
 Selection Logic simply involves a number of
conditions or parameters which decides one
out of several written modules. The structures
which use these type of logic are known
as Conditional Structures.
EXAMPLE 3:FLOWCHART FOR DETERMINING
WHETHER THE ENTERED NUMBER IS EVEN OR
ODD
Algorithm
 Step 1: Start
 Step 2:Take integer variable A.
 Step 3: Perform modulo division 2
on the given value.
 Step 4:if the reminder is = 0, then
 Step 5: entered number is even
 Step 6: else
the entered number is odd.
 Step 7: STOP
Flowchart
Start
Read an input(n)
n%2
==0
n is even n is odd
stop
Yes no
n=6
6%2
n is even
n=15
15%2
n is odd
= 0 ≠ 0
3. RECURSIVE FLOWCHART
 Recursion is the process which comes into existence when
a function calls a copy of itself to work on a smaller
problem.
 Recursion is a programming technique that allows the
programmer to express operations in terms of themselves.
 Simply we can say that a recursion is a “function which
calls itself”.
 But while using recursion, programmers need to be careful
to define an exit condition from the function, otherwise it
will go into an infinite loop.
FLOWCHART FOR FINDING THE SUM OF N
NATURAL NUMBERS
Algorithm
Step 1: Start
Step 2: Read the value of n (let n=5).
Step 3: i = 1 , SUM = 0
Step 4: while if ( i > n )
then goto step 8
Step 5: Sum = Sum + I
Step 6: i = i + 1
Step 7: go to 4
Step 8: Display the value of Sum
Step 9: Stop
Flowchart
start
i=1,sum=0
If
i>n
Sum=sum+i
Print sum
stop
i=i+1
no yes
i=1
i=2
i=3
i=4
i=5
i=6
Take a number
assume n=5
Sum=1 Sum=3
Sum=6 Sum=10
Sum=15
i=6
Sum=15
EXERCISE
What is the flowchart for reading 6
subject marks of a student and to find
the average.
What is the flow chart to find the largest
among three different numbers entered
by the user.
What is the flowchart for finding the
Fibonacci sequence.
24

More Related Content

PDF
Object oriented programming c++
PDF
String operation
PDF
Learning Python with PyCharm EDU
PPTX
Bca ii dfs u-1 introduction to data structure
PPTX
Introduction to Selection control structures in C++
PPTX
PDF
Operators in python
PPTX
Unit 4 plsql
Object oriented programming c++
String operation
Learning Python with PyCharm EDU
Bca ii dfs u-1 introduction to data structure
Introduction to Selection control structures in C++
Operators in python
Unit 4 plsql

What's hot (20)

PPTX
Compilers
PPTX
Introduction to data structure ppt
PPTX
Recursion
PPTX
python conditional statement.pptx
PPT
BINARY TREE REPRESENTATION.ppt
PDF
Strings in Python
PPTX
Procedural programming
PPTX
Chapter 5
PDF
SPL 9 | Scope of Variables in C
PPTX
Introduction to Basics of Python
PPTX
PPTX
Compiler vs interpreter
PPTX
Data Type in C Programming
PDF
Algorithms Lecture 1: Introduction to Algorithms
PPTX
Interface in java
PPTX
PPT
SINGLE-SOURCE SHORTEST PATHS
PPTX
Knapsack problem using greedy approach
PPTX
Variables in C++, data types in c++
PDF
Little o and little omega
Compilers
Introduction to data structure ppt
Recursion
python conditional statement.pptx
BINARY TREE REPRESENTATION.ppt
Strings in Python
Procedural programming
Chapter 5
SPL 9 | Scope of Variables in C
Introduction to Basics of Python
Compiler vs interpreter
Data Type in C Programming
Algorithms Lecture 1: Introduction to Algorithms
Interface in java
SINGLE-SOURCE SHORTEST PATHS
Knapsack problem using greedy approach
Variables in C++, data types in c++
Little o and little omega
Ad

Similar to Flowcharts (20)

PPTX
Presentation on Flow chart in programming language flowchart.pptx
PPTX
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
PPT
Basic Slides on Algorithms and Flowcharts
PPT
Algorithms and Flowchart usages in C laguage
PPT
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
PPT
Lect1-Algorithms-and-Flowchart-ppt (1).ppt
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1 - Algorithms-and-Flowchart-ppt.ppt
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1-Algorithms-and-Flowchart PPT presentation
PPT
Lect1-Detailed description aboutAlgorithms-and-Flowchart.ppt
PPTX
Flowchart and algorithm
PPTX
Pseudo code.pptx
PDF
AlgorithmAndFlowChart.pdf
PPT
Algorithms and Flowchart.ppt
PPT
Algorithms and Flowchart for IGCSE Students
PPT
COMPUTER PROGRAMMING UNIT 1 Lecture 4
PPTX
Algorithms and flowcharts
PDF
algorithms and flow chart overview.pdf
PDF
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Presentation on Flow chart in programming language flowchart.pptx
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
Basic Slides on Algorithms and Flowcharts
Algorithms and Flowchart usages in C laguage
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lect1-Algorithms-and-Flowchart-ppt (1).ppt
Lecture1-Algorithms-and-Flowchart-ppt.ppt
Lect1 - Algorithms-and-Flowchart-ppt.ppt
Lecture1-Algorithms-and-Flowchart-ppt.ppt
Lect1-Algorithms-and-Flowchart PPT presentation
Lect1-Detailed description aboutAlgorithms-and-Flowchart.ppt
Flowchart and algorithm
Pseudo code.pptx
AlgorithmAndFlowChart.pdf
Algorithms and Flowchart.ppt
Algorithms and Flowchart for IGCSE Students
COMPUTER PROGRAMMING UNIT 1 Lecture 4
Algorithms and flowcharts
algorithms and flow chart overview.pdf
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Ad

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
DOCX
573137875-Attendance-Management-System-original
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Well-logging-methods_new................
Digital Logic Computer Design lecture notes
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Foundation to blockchain - A guide to Blockchain Tech
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Mechanical Engineering MATERIALS Selection
Lecture Notes Electrical Wiring System Components
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
573137875-Attendance-Management-System-original
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Arduino robotics embedded978-1-4302-3184-4.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Embodied AI: Ushering in the Next Era of Intelligent Systems
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Well-logging-methods_new................

Flowcharts

  • 1. FLOW CHARTS Mrs Parimala G Assistant Professor, Department of Computer Science & Engineering Vignan’s Foundation for Science, Technology and Research
  • 3. OVERVIEW  Flowcharts are the graphical representation of a solution to a particular problem which comes under the category of Programming Practices and Techniques.  In simple word flowchart is a graphical representation of a program.  Flowcharts are Symbolic diagrams which shows type of data(numeric, character etc),data flow, control flow and programming logic.
  • 4. The first flowchart was created by Von Neuman in 1945. Flowcharts are important for planning and working of a program. Flowcharts decreases our efforts i.e they are easy to understand and check the logics and algorithms.
  • 5. A FLOWCHART Shows the logic of an algorithm. Emphasizes individual steps and their interconnections. E.g: control flow from one action to the next
  • 6. ADVANTAGES & DISADVANTAGES Advantages:  A good way to communicate the details of a task or process to others.  An excellent way of documenting each stage of the process.  Acts as a blue print to guide the programmer through the development. Disadvantages:  Some tasks are difficult to represent.  If an alteration is made the flowchart need to be redrawn.
  • 7. S Y M B O L S O F F L O W C H A R T
  • 8. 1. TERMINAL This symbol shows the beginning or ending of a program i.e. first and the last element of flowchart. It is single directional i.e. only one flow line(either incoming line or outgoing line) can be connected with terminal symbol.
  • 9. 2. INPUT/OUTPUT SYMBOL A parallelogram is used to represent input and output operation, it can have 2 flow lines(in coming & out going lines).
  • 10. 3. PROCESS SYMBOL This symbol is used for showing mathematical calculation, change in data or any type of processing on data, it can have 2 flow lines(incoming line or outgoing line).
  • 11. 4.FLOW LINE : A straight line between two symbols shows the logical flow of control in a program is flow line.
  • 12. 5. DECISION SYMBOL Diamond symbol is used to show or apply condition , it has single flow line for input and two flow lines for output i.e. one for true part and one for false part.
  • 13. 6. CONNECTOR SYMBOL Connector symbol (circle) are used to connect separate portions of flow chats, it can have single flow line(either in coming line or out going line).
  • 14. TYPES OF FLOWCHARTS 1.Sequential Flowcharts 2.Selective Flowcharts 3.Iterative Flowcharts
  • 16. 1. SEQUENTIAL FLOWCHART As the name suggests, the control flow and data flow is sequential in sequential flowchart.
  • 17. EXAMPLE 1: ADDITION OF TWO NUMBERS Algorithm Step 1: Start Step 2: take first number(assume as a) Step 3:take second number(assume as b) Step 4:add to above two number(assume as c) Step 5: display the result/output( c ) Step 6: Stop Flowchart START Read 1st number( a) Read 2nd number( b) c=add a & b Display the output( c) STOP a= 5 b=7 c=5+7 c=12
  • 18. EXAMPLE 2:CALCULATE THE INTEREST OF A BANK DEPOSIT. Algorithm Step 1: Start Step 2: Read amount(amt) Step 3: Read years(years) Step 4:Read rate(rate) Step 5:calculate the interest (interest=amt*years*rate/100) Step 6 : print intersest Step 7: Stop Flowchart START Read amount(amt) Read years(years) Read rate(rate) Interest=(amt*years*rate)/10 0 Stop Print Interest
  • 19. 2. SELECTIVE FLOWCHARTS  Selection Logic simply involves a number of conditions or parameters which decides one out of several written modules. The structures which use these type of logic are known as Conditional Structures.
  • 20. EXAMPLE 3:FLOWCHART FOR DETERMINING WHETHER THE ENTERED NUMBER IS EVEN OR ODD Algorithm  Step 1: Start  Step 2:Take integer variable A.  Step 3: Perform modulo division 2 on the given value.  Step 4:if the reminder is = 0, then  Step 5: entered number is even  Step 6: else the entered number is odd.  Step 7: STOP Flowchart Start Read an input(n) n%2 ==0 n is even n is odd stop Yes no n=6 6%2 n is even n=15 15%2 n is odd = 0 ≠ 0
  • 21. 3. RECURSIVE FLOWCHART  Recursion is the process which comes into existence when a function calls a copy of itself to work on a smaller problem.  Recursion is a programming technique that allows the programmer to express operations in terms of themselves.  Simply we can say that a recursion is a “function which calls itself”.  But while using recursion, programmers need to be careful to define an exit condition from the function, otherwise it will go into an infinite loop.
  • 22. FLOWCHART FOR FINDING THE SUM OF N NATURAL NUMBERS Algorithm Step 1: Start Step 2: Read the value of n (let n=5). Step 3: i = 1 , SUM = 0 Step 4: while if ( i > n ) then goto step 8 Step 5: Sum = Sum + I Step 6: i = i + 1 Step 7: go to 4 Step 8: Display the value of Sum Step 9: Stop Flowchart start i=1,sum=0 If i>n Sum=sum+i Print sum stop i=i+1 no yes i=1 i=2 i=3 i=4 i=5 i=6 Take a number assume n=5 Sum=1 Sum=3 Sum=6 Sum=10 Sum=15 i=6 Sum=15
  • 23. EXERCISE What is the flowchart for reading 6 subject marks of a student and to find the average. What is the flow chart to find the largest among three different numbers entered by the user. What is the flowchart for finding the Fibonacci sequence.
  • 24. 24