SlideShare a Scribd company logo
Flowcharts
Mukesh N.Tekwani
IsmailYusuf College of
Arts, Science and Commerce,
Jogeshwari (East),
Mumbai
tekwani@email.com
Presented at the One DayWorkshop Organized by K.P.B. Hinduja College
of Commerce, University of Mumbai on the Semester-wise splitT.Y.B.Com
and S.Y.B.Com Computer papers on
July 20, 2013
What is a Flowchart?
 What is a flowchart?
◦ Graphical or pictorial representation of an
algorithm or problem solving process
 Flow?
◦ Indicates the flow of logic, or sequence of
steps.
◦ There is a ‘before’ step and an ‘after’ step
◦ Flow control is needed because programs are
not linear or top-to-down
Mukesh N.Tekwani20 July 2013 2
Why flowchart is useful?
 A picture is worth a thousand words
 Help in understanding complicated logic
 Language-independent and so easy to write
program in various languages
 Good tool for documentation
◦ Verbose syntax of certain languages is difficult to
understand; flowchart eliminates the need to know
syntax to understand the logic
Mukesh N.Tekwani20 July 2013 3
What can a Flowchart Represent?
 Sequential statements – assignment,
calculations, input & output
 Branching or Selection Statements – if-then,
if-then-else: using Decision Symbol
 Looping Statements – for, while loops
 Switch-Case statement (successive decision
symbols)
Mukesh N.Tekwani20 July 2013 4
Symbols used in Flowcharts
Mukesh N.Tekwani20 July 2013 5
Guidelines in Drawing a Flowchart
 Logical sequence
 Standard symbols
 Direction of flow  top-to-down
◦ To jump to a step further down, go from right
◦ To jump to a step above the current step, go
from left
Mukesh N.Tekwani20 July 2013 6
Guidelines in Drawing a Flowchart
 Only one flow line should enter a decision
symbol
 More than one flow line may leave a symbol
 Only one flow line used with Stop symbol
 Use connector symbol to breakup a
complex flowchart
 A flowchart must end with the Stop
statement
Mukesh N.Tekwani20 July 2013 7
Flowchart of ‘while’ loop
Mukesh N.Tekwani20 July 2013 8
Flowchart of ‘for’ loop
Mukesh N.Tekwani20 July 2013 9
Flowchart of ‘if’ statement
Mukesh N.Tekwani20 July 2013 10
Flowchart of ‘if-else’ statement
Mukesh N.Tekwani20 July 2013 11
Flowchart of ‘switch-case’ statement
Mukesh N.Tekwani20 July 2013 12
Sum of Two Numbers
Mukesh N.Tekwani20 July 2013 13
START
INPUT X, Y
Is X > Y ?
BIG = X
Yes
PRINT BIG
BIG = Y
STOP
No
L
a
r
g
e
r
O
f
T
w
o
N
u
m
b
e
r
s
Mukesh N.Tekwani20 July 2013 14
F
a
c
t
o
r
i
a
l
o
f
a
N
u
m
b
e
r
Yes
START
Read N
F = 1
M = 1
Is
M = N?
F = F * M
Print F
No
M = M + 1
STOP
Assume:
N  no. whose factorial is
required
Mukesh N.Tekwani20 July 2013 15
MultiplicationTableofanumberinputby
user
Mukesh N.Tekwani20 July 2013 16
Flowchart – Find the Largest of Three Numbers
Mukesh N.Tekwani20 July 2013 17
Limitations of Flowcharts
 Complex – for lengthy algorithms, flowchart
can be very large  difficult to follow
 Time-consuming – drawing complex
flowcharts can be very time-consuming
 Modification – difficult to modify; redraw
entire flowchart
 Update – program update is easier; not so
for flowcharts  redraw flowchart !
Mukesh N.Tekwani20 July 2013 18
Exercise
 Design an algorithm and the corresponding
flowchart for finding the sum of the numbers
2, 4, 6, 8, …, n
 Draw a flowchart to read 100 numbers and
then display the sum
 Draw a flowchart to display all odd numbers
between 0 and 1000
 Draw a flowchart to find the sum of first 10
natural numbers and then display the sum
Mukesh N.Tekwani20 July 2013 19
Suggestions
 Algorithm  Flowchart  Program
 Use programs in C language to develop
questions on Algorithms and Flowcharts
Mukesh N.Tekwani20 July 2013 20
THANK YOU
STOP
Mukesh N.Tekwani20 July 2013 21

More Related Content

What's hot (20)

C language
C languageC language
C language
marar hina
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
Flowchart
FlowchartFlowchart
Flowchart
Gracetyl Baba
 
ppt of flowchart
ppt of flowchartppt of flowchart
ppt of flowchart
140120109032
 
10. switch case
10. switch case10. switch case
10. switch case
Way2itech
 
Control Structures
Control StructuresControl Structures
Control Structures
Ghaffar Khan
 
Algorithms and flow chart
Algorithms and flow chartAlgorithms and flow chart
Algorithms and flow chart
Rochinisathkorala
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
Megha Patel
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
Flow chart
Flow chartFlow chart
Flow chart
Kawsar Ahmed
 
Normalization
NormalizationNormalization
Normalization
meet darji
 
Preprocessor directives in c language
Preprocessor directives in c languagePreprocessor directives in c language
Preprocessor directives in c language
tanmaymodi4
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
fazli khaliq
 
Transaction states and properties
Transaction states and propertiesTransaction states and properties
Transaction states and properties
Chetan Mahawar
 
Programming languages
Programming languagesProgramming languages
Programming languages
www.myassignmenthelp.net
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
baabtra.com - No. 1 supplier of quality freshers
 
Bubble sort
Bubble sortBubble sort
Bubble sort
Manek Ar
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
Deva Singh
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
REHAN IJAZ
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
Angela DeHart
 

More from Mukesh Tekwani (20)

The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
Mukesh Tekwani
 
Circular motion
Circular motionCircular motion
Circular motion
Mukesh Tekwani
 
Gravitation
GravitationGravitation
Gravitation
Mukesh Tekwani
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
Mukesh Tekwani
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion
Mukesh Tekwani
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
Mukesh Tekwani
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
Mukesh Tekwani
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion
Mukesh Tekwani
 
What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
Mukesh Tekwani
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversion
Mukesh Tekwani
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
Mukesh Tekwani
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
Mukesh Tekwani
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surface
Mukesh Tekwani
 
Spherical mirrors
Spherical mirrorsSpherical mirrors
Spherical mirrors
Mukesh Tekwani
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
Mukesh Tekwani
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
Mukesh Tekwani
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
Mukesh Tekwani
 
Cyber Laws
Cyber LawsCyber Laws
Cyber Laws
Mukesh Tekwani
 
XML
XMLXML
XML
Mukesh Tekwani
 
Social media
Social mediaSocial media
Social media
Mukesh Tekwani
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
Mukesh Tekwani
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
Mukesh Tekwani
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion
Mukesh Tekwani
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
Mukesh Tekwani
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
Mukesh Tekwani
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion
Mukesh Tekwani
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversion
Mukesh Tekwani
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
Mukesh Tekwani
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
Mukesh Tekwani
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surface
Mukesh Tekwani
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
Mukesh Tekwani
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
Mukesh Tekwani
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
Mukesh Tekwani
 

Recently uploaded (20)

INDIA QUIZ 2025 By QURU RLAC Delhi University.pptx
INDIA QUIZ 2025 By QURU RLAC Delhi University.pptxINDIA QUIZ 2025 By QURU RLAC Delhi University.pptx
INDIA QUIZ 2025 By QURU RLAC Delhi University.pptx
QURU, RAM LAL ANAND COLLEGE.
 
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
 
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. DabhadeCombinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
 
MUSIC QUIZ | THE QUIZ CLUB OF PSGCAS | 12 MARCH 2025
MUSIC QUIZ | THE QUIZ CLUB OF PSGCAS | 12 MARCH 2025MUSIC QUIZ | THE QUIZ CLUB OF PSGCAS | 12 MARCH 2025
MUSIC QUIZ | THE QUIZ CLUB OF PSGCAS | 12 MARCH 2025
Quiz Club of PSG College of Arts & Science
 
Easier-to-Save.Nest report into workplace saving
Easier-to-Save.Nest report into workplace savingEasier-to-Save.Nest report into workplace saving
Easier-to-Save.Nest report into workplace saving
Henry Tapper
 
NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...
NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...
NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...
Denish Jangid
 
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
 
Information Sources & Resource and Various uses_.pptx
Information Sources & Resource and Various uses_.pptxInformation Sources & Resource and Various uses_.pptx
Information Sources & Resource and Various uses_.pptx
Central University of South Bihar, Gaya, Bihar
 
Using GenAI for Universal Design for Learning
Using GenAI for Universal Design for LearningUsing GenAI for Universal Design for Learning
Using GenAI for Universal Design for Learning
Damian T. Gordon
 
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMCAction of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
jaspervedamvemavarap
 
TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...
TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...
TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...
Nguyen Thanh Tu Collection
 
How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17
Celine George
 
Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...
keshanf79
 
SUPPOSITORIES
SUPPOSITORIESSUPPOSITORIES
SUPPOSITORIES
Shantanu Ranjan
 
How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17
Celine George
 
PATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINES
PATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINESPATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINES
PATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINES
BananaIP Counsels
 
Pushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptx
Pushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptxPushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptx
Pushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
A Biodiction : A Unit of Dr. Divya Sharma
 
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay ChoudharyCode a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
QuantInsti
 
How to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 AccountingHow to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 Accounting
Celine George
 
INDIA QUIZ 2025 By QURU RLAC Delhi University.pptx
INDIA QUIZ 2025 By QURU RLAC Delhi University.pptxINDIA QUIZ 2025 By QURU RLAC Delhi University.pptx
INDIA QUIZ 2025 By QURU RLAC Delhi University.pptx
QURU, RAM LAL ANAND COLLEGE.
 
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
 
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. DabhadeCombinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
 
Easier-to-Save.Nest report into workplace saving
Easier-to-Save.Nest report into workplace savingEasier-to-Save.Nest report into workplace saving
Easier-to-Save.Nest report into workplace saving
Henry Tapper
 
NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...
NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...
NDT test Application & use of Rebound Hammer, Ultra-sonic pulse velocity mete...
Denish Jangid
 
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
 
Using GenAI for Universal Design for Learning
Using GenAI for Universal Design for LearningUsing GenAI for Universal Design for Learning
Using GenAI for Universal Design for Learning
Damian T. Gordon
 
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMCAction of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
jaspervedamvemavarap
 
TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...
TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...
TÀI LIỆU CHUYÊN SÂU LỚP 12 THEO CHƯƠNG TRÌNH MỚI DÙNG CHO CẢ 3 BỘ SÁCH ÔN THI...
Nguyen Thanh Tu Collection
 
How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17
Celine George
 
Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...
keshanf79
 
How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17
Celine George
 
PATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINES
PATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINESPATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINES
PATENTABILITY UNDER THE 2025 CRI DRAFT GUIDELINES
BananaIP Counsels
 
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
A Biodiction : A Unit of Dr. Divya Sharma
 
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay ChoudharyCode a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
QuantInsti
 
How to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 AccountingHow to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 Accounting
Celine George
 

Flowcharts

  • 1. Flowcharts Mukesh N.Tekwani IsmailYusuf College of Arts, Science and Commerce, Jogeshwari (East), Mumbai [email protected] Presented at the One DayWorkshop Organized by K.P.B. Hinduja College of Commerce, University of Mumbai on the Semester-wise splitT.Y.B.Com and S.Y.B.Com Computer papers on July 20, 2013
  • 2. What is a Flowchart?  What is a flowchart? ◦ Graphical or pictorial representation of an algorithm or problem solving process  Flow? ◦ Indicates the flow of logic, or sequence of steps. ◦ There is a ‘before’ step and an ‘after’ step ◦ Flow control is needed because programs are not linear or top-to-down Mukesh N.Tekwani20 July 2013 2
  • 3. Why flowchart is useful?  A picture is worth a thousand words  Help in understanding complicated logic  Language-independent and so easy to write program in various languages  Good tool for documentation ◦ Verbose syntax of certain languages is difficult to understand; flowchart eliminates the need to know syntax to understand the logic Mukesh N.Tekwani20 July 2013 3
  • 4. What can a Flowchart Represent?  Sequential statements – assignment, calculations, input & output  Branching or Selection Statements – if-then, if-then-else: using Decision Symbol  Looping Statements – for, while loops  Switch-Case statement (successive decision symbols) Mukesh N.Tekwani20 July 2013 4
  • 5. Symbols used in Flowcharts Mukesh N.Tekwani20 July 2013 5
  • 6. Guidelines in Drawing a Flowchart  Logical sequence  Standard symbols  Direction of flow  top-to-down ◦ To jump to a step further down, go from right ◦ To jump to a step above the current step, go from left Mukesh N.Tekwani20 July 2013 6
  • 7. Guidelines in Drawing a Flowchart  Only one flow line should enter a decision symbol  More than one flow line may leave a symbol  Only one flow line used with Stop symbol  Use connector symbol to breakup a complex flowchart  A flowchart must end with the Stop statement Mukesh N.Tekwani20 July 2013 7
  • 8. Flowchart of ‘while’ loop Mukesh N.Tekwani20 July 2013 8
  • 9. Flowchart of ‘for’ loop Mukesh N.Tekwani20 July 2013 9
  • 10. Flowchart of ‘if’ statement Mukesh N.Tekwani20 July 2013 10
  • 11. Flowchart of ‘if-else’ statement Mukesh N.Tekwani20 July 2013 11
  • 12. Flowchart of ‘switch-case’ statement Mukesh N.Tekwani20 July 2013 12
  • 13. Sum of Two Numbers Mukesh N.Tekwani20 July 2013 13
  • 14. START INPUT X, Y Is X > Y ? BIG = X Yes PRINT BIG BIG = Y STOP No L a r g e r O f T w o N u m b e r s Mukesh N.Tekwani20 July 2013 14
  • 15. F a c t o r i a l o f a N u m b e r Yes START Read N F = 1 M = 1 Is M = N? F = F * M Print F No M = M + 1 STOP Assume: N  no. whose factorial is required Mukesh N.Tekwani20 July 2013 15
  • 17. Flowchart – Find the Largest of Three Numbers Mukesh N.Tekwani20 July 2013 17
  • 18. Limitations of Flowcharts  Complex – for lengthy algorithms, flowchart can be very large  difficult to follow  Time-consuming – drawing complex flowcharts can be very time-consuming  Modification – difficult to modify; redraw entire flowchart  Update – program update is easier; not so for flowcharts  redraw flowchart ! Mukesh N.Tekwani20 July 2013 18
  • 19. Exercise  Design an algorithm and the corresponding flowchart for finding the sum of the numbers 2, 4, 6, 8, …, n  Draw a flowchart to read 100 numbers and then display the sum  Draw a flowchart to display all odd numbers between 0 and 1000  Draw a flowchart to find the sum of first 10 natural numbers and then display the sum Mukesh N.Tekwani20 July 2013 19
  • 20. Suggestions  Algorithm  Flowchart  Program  Use programs in C language to develop questions on Algorithms and Flowcharts Mukesh N.Tekwani20 July 2013 20