SlideShare une entreprise Scribd logo
1  sur  24
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

Contenu connexe

Tendances

Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to FlowchartAngelo Tomboc
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmDHANIK VIKRANT
 
Chapter 2 Representation Of Algorithms 2
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2Li-Anne Serrano
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
 
Algorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesSatveer Mann
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartRabin BK
 
Introduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsYash Gupta
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
Algorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanAlgorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanHaseeb Shalmani
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchartJordan Delacruz
 
flowcharts
flowchartsflowcharts
flowcharts2461998
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and FlowchartsSabik T S
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithmsStudent
 

Tendances (20)

Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to Flowchart
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Chapter 2 Representation Of Algorithms 2
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
Flow charts
Flow chartsFlow charts
Flow charts
 
Algorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodes
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Introduction to Algorithms & flow charts
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow charts
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Algorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanAlgorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb Khan
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
 
algo
algoalgo
algo
 
Flowcharting and Algorithm
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
 
flowcharts
flowchartsflowcharts
flowcharts
 
Penyelesaian masalah
Penyelesaian masalahPenyelesaian masalah
Penyelesaian masalah
 
Algorithm itabq
Algorithm itabqAlgorithm itabq
Algorithm itabq
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
 

Similaire à Flowcharts

Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptcosc242101003
 
Programming flowcharts for C Language
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C LanguageAryan Ajmer
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptReshuReshma8
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowchartsmoazwinner
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfSusieMaestre1
 
Algorithm and flowchart.pptx
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptxMaheShiva
 
final Unit 1-1.pdf
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdfprakashvs7
 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfAmanPratik11
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
ALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfmeychu1
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sitSaurabh846965
 

Similaire à Flowcharts (20)

Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
 
Chap6
Chap6Chap6
Chap6
 
Programming flowcharts for C Language
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C Language
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
 
Algorithm and flowchart.pptx
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
 
final Unit 1-1.pdf
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdf
 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
 
aamir presentation
aamir presentationaamir presentation
aamir presentation
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
Lect 3-4 Zaheer Abbas
Lect 3-4 Zaheer AbbasLect 3-4 Zaheer Abbas
Lect 3-4 Zaheer Abbas
 
Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3
 
Algorithms and Flowchart.ppt
Algorithms and Flowchart.pptAlgorithms and Flowchart.ppt
Algorithms and Flowchart.ppt
 
Cp module 2
Cp module 2Cp module 2
Cp module 2
 
ALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdf
 
Flow chart
Flow chartFlow chart
Flow chart
 
FLOW CHARTS
FLOW CHARTSFLOW CHARTS
FLOW CHARTS
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
 

Dernier

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 

Dernier (20)

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 

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