SlideShare a Scribd company logo
Introduction To Flowcharting
Today’s Topics Flowchart Symbols
Structures
Sequence
Selection
RepetitionFlowchart:Represents an algorithm in graphical symbols
Flowchart Symbols
Flowchart Symbols
Comments or description
Connectors on the same page 1- connection on the same flowchart portion2- connection on the differentflowchart portion
Connectors on a different page Page 2Page 1
The detail of how the function worksis put in another flowchart. This is known as Function-DefinitionPage 1Page 2Start terminal for aFunction is different.Do not use “Start”Body of a function is the same with normal flowchartAt this point, we only focus on whatto do. How to do it,  it comes later.This part is known asFunction-CallEnd terminal must be a “Return”FunctionThis flowchart calculates the average of three numbers
The main flowcharting structuresSequenceSelectionRepetition A flowchart expressing the solution to an involved problem may have:the main program flowchart on one page with subprograms continuing the problem solution on subsequent pages.
Each of the five acceptable structures can be built from the basic elements as shown below.
Each of the five acceptable structures can be built from the basic elements as shown below.
Each of the five acceptable structures can be built from the basic elements as shown below.
SequenceIn a computer program or an algorithm, sequence involves simple steps which are to be executed one after the other. The steps are executed in the same order in which they are written.In a flowchart, sequence is expressed as:In pseudocode, sequence is expressed as:process 1process 2……process n
SequenceAn Example Using SequenceProblem: Write a set of instructions that describe how to make a pot of tea.PseudocodeBEGINfill a kettle with waterboil the water in the kettleput the tea leaves in the potpour boiling water in the potENDFlowchart
Selection is used in a computer program or algorithm to determine which particular step or set of steps is to be executedBinary SelectionIn pseudocode, binary selection is expressed in the following ways:   IF condition THENprocess 1ENDIFIF condition THENprocess 1ELSEprocess 2ENDIFBinary SelectionIn flowcharts, binary selection is expressed in the following ways:
SelectionBinary (structure)Binary SelectionIn pseudocode, binary selection is expressed in the following ways:  IF condition THENprocess 1ENDIF  IF condition THENprocess 1ELSEprocess 2ENDIFBinary SelectionIn flowcharts, binary selection is expressed in the following ways:
SelectionBinary (flowchart structure)Note: In a flowchart it is most important to indicate which path is to be followed when the condition is true, and which path to follow when the condition is false. Without these indications the flowchart is open to more than one interpretation.Note: There are two acceptable ways to represent a decision in all of the structures.Either method is acceptable. For consistency, the method 1 is used throughout this document.The condition is expressed as a statement and the two possible outcomes are indicated byTrue
False2.  The condition is expressed as a question and the two possible outcomes are indicated by Yes
NoSelectionBinary (examples)Selection is used in a computer program or algorithm to determine which particular step or set of steps is to be executed.Examples Using Binary SelectionProblem 1: Write a set of instructions to describe when to answer the phone. Binary SelectionFlowchartBinary SelectionPseudocodeIF the telephone is ringing THENanswer the telephoneENDIF
SelectionBinary (examples)Examples Using Binary SelectionProblem 2: Write a set of instructions to follow when approaching a set of traffic control lights.Binary SelectionFlowchartBinary SelectionPseudocodeIF the signal is green THENproceed through the intersectionELSEstop the vehicleENDIF
SelectionMulti-way (structure)Multi-way SelectionIn flowcharts, multi-way selection is expressed as:Multi-way SelectionIn pseudocode, multiple selection is expressed as:CASEWHERE expression evaluates tochoice a      :      process achoice b      :      process b      . 		     .      . 		     .      . 		     .    OTHERWISE  :      default processENDCASENote: As the flowchart version of the multi-way selection indicates, only one process on each pass is executed as a result of the implementation of the multi-way selection.
SelectionMulti-way (examples)Example Using Multi-way SelectionProblem: Write a set of instructions that describes how to:respond to all possible signals at a set of traffic control lights.Multi-way SelectionFlowchartMulti-way SelectionPseudocodeCASEWHERE signal isred              : stop the vehicleamber         : stop the vehiclegreen          : proceed through the intersection     OTHERWISE  : proceed with cautionENDCASE
RepetitionRepetition allows for a portion of an algorithm or computer programto be done any number of times dependent on some condition being met. An occurrence of repetition is usually known as a loop.An essential feature of repetition is that each loop has a termination condition to stop the repetition, or the obvious outcome is that the loop never completes execution (an infinite loop). The termination condition can be checked or testedat the beginning and is known as a pre-test loop orat the end of the loop and is known as a post-test loop.
RepetitionPre-test(structure)Repetition: Pre-TestA pre-tested loop is so named because the condition has to be met atthe very beginning of the loop or the body of the loop is not executed. This construct is often called a guarded loop. Thebody of the loop is executed repeatedly while the termination condition is true.RepetitionIn flowchartingpre-test repetition is expressed as:RepetitionIn pseudocode, pre-test repetition is expressed as:WHILE condition is trueprocess(es)ENDWHILE
Repetition Post-test(structure)Repetition: Post-TestA post-tested loop executes the body of the loop before testing the termination condition.
This construct is often referred to as an unguarded loop.
The body of the loop is repeatedly executed until the termination condition is true.An important difference between a pre-test and post-test loop is that the statements of a post-test loop are executed at least once even if the condition is originally true, whereas the body of the pre-test loop may never be executed if the termination condition is originally true. A close look at the representations of the two loop types makes this point apparent.RepetitionIn a flowchartpost-test repetition is expressed as:RepetitionIn pseudocode, post-test repetition is expressed as:REPEATprocessUNTIL condition is true
Repetition Pre-test(example)An Example Using Pre-Test RepetitionProblem: Determine a safety procedure for travelling in a carriage on a moving train.Pre-test RepetitionFlowchartPre-test RepetitionPseudocodeWHILE the train is movingkeep wholly within the carriageENDWHILE
Repetition Post-test(example)An Example Using Post-Test RepetitionProblem: Determine a procedure to beat egg whites until fluffy.Post-test RepetitionFlowchartPost-test RepetitionPseudocodeREPEATbeat the egg whitesUNTIL fluffy
Input:Length <- 5Width  <- 3Process:Area = 5 * 3 = 15Process:Perimeter =       2* (5+3)    = 16OutputArea: 15Perimeter: 16Example:
Ad

More Related Content

What's hot (20)

What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
Angela DeHart
 
Flowchart
FlowchartFlowchart
Flowchart
HRdebajit
 
Introduction to basic programming
Introduction to basic programmingIntroduction to basic programming
Introduction to basic programming
Jordan Delacruz
 
Flowchart symbols meaning explained
Flowchart symbols meaning explainedFlowchart symbols meaning explained
Flowchart symbols meaning explained
Eliza Wright
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
classall
 
Introduction to spreadsheets
Introduction to spreadsheetsIntroduction to spreadsheets
Introduction to spreadsheets
Casey Robertson
 
Flowchart
FlowchartFlowchart
Flowchart
Gracetyl Baba
 
software engineering
software engineeringsoftware engineering
software engineering
Azad public school
 
Flowchart
FlowchartFlowchart
Flowchart
Liezle Joy Gargoles
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
Hazel Anne Quirao
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Rabin BK
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
NSU-Biliran Campus
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
Saqib Raza
 
Flow chart
Flow chartFlow chart
Flow chart
Kawsar Ahmed
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm design
Nahid Hasan
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
Surendra Arora
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Sachin Goyani
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
ALI RAZA
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
Samuel Igbanogu
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
Angela DeHart
 
Introduction to basic programming
Introduction to basic programmingIntroduction to basic programming
Introduction to basic programming
Jordan Delacruz
 
Flowchart symbols meaning explained
Flowchart symbols meaning explainedFlowchart symbols meaning explained
Flowchart symbols meaning explained
Eliza Wright
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
classall
 
Introduction to spreadsheets
Introduction to spreadsheetsIntroduction to spreadsheets
Introduction to spreadsheets
Casey Robertson
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
Hazel Anne Quirao
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Rabin BK
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
NSU-Biliran Campus
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
Saqib Raza
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm design
Nahid Hasan
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Sachin Goyani
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
ALI RAZA
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
Samuel Igbanogu
 

Similar to Introduction to flowchart (20)

Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01
VincentAcapen1
 
Lect 3-4 Zaheer Abbas
Lect 3-4 Zaheer AbbasLect 3-4 Zaheer Abbas
Lect 3-4 Zaheer Abbas
Information Technology Center
 
Ch05
Ch05Ch05
Ch05
Arriz San Juan
 
Chapter 3 - Flow of Control Part II.pdf
Chapter 3  - Flow of Control Part II.pdfChapter 3  - Flow of Control Part II.pdf
Chapter 3 - Flow of Control Part II.pdf
KirubelWondwoson1
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
ShaswatSurya
 
Algorithm manual
Algorithm manualAlgorithm manual
Algorithm manual
EfendyMasuli
 
detail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdfdetail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdf
ssuserf86fba
 
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
Algorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTSAlgorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTS
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
Alicia Edwards
 
03b loops
03b   loops03b   loops
03b loops
Manzoor ALam
 
7-White Box Testing.ppt
7-White Box Testing.ppt7-White Box Testing.ppt
7-White Box Testing.ppt
HirenderPal
 
Ch3 repetition
Ch3 repetitionCh3 repetition
Ch3 repetition
Hattori Sidek
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and Testing
Dr Sukhpal Singh Gill
 
Loops c++
Loops c++Loops c++
Loops c++
Shivani Singh
 
Managing input and output operations & Decision making and branching and looping
Managing input and output operations & Decision making and branching and loopingManaging input and output operations & Decision making and branching and looping
Managing input and output operations & Decision making and branching and looping
letheyabala
 
C Programming Unit-2
C Programming Unit-2C Programming Unit-2
C Programming Unit-2
Vikram Nandini
 
Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and looping
ChaAstillas
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR Chandigarh
Pankaj Thakur
 
Csphtp1 04
Csphtp1 04Csphtp1 04
Csphtp1 04
HUST
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
Mohammed Saleh
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
Mohammed Saleh
 
Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01
VincentAcapen1
 
Chapter 3 - Flow of Control Part II.pdf
Chapter 3  - Flow of Control Part II.pdfChapter 3  - Flow of Control Part II.pdf
Chapter 3 - Flow of Control Part II.pdf
KirubelWondwoson1
 
detail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdfdetail of flowchart and algorithm that are used in programmingpdf
detail of flowchart and algorithm that are used in programmingpdf
ssuserf86fba
 
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
Algorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTSAlgorithm   Flowchart Manual ALGORITHM   FLOWCHART MANUAL For STUDENTS
Algorithm Flowchart Manual ALGORITHM FLOWCHART MANUAL For STUDENTS
Alicia Edwards
 
7-White Box Testing.ppt
7-White Box Testing.ppt7-White Box Testing.ppt
7-White Box Testing.ppt
HirenderPal
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and Testing
Dr Sukhpal Singh Gill
 
Managing input and output operations & Decision making and branching and looping
Managing input and output operations & Decision making and branching and loopingManaging input and output operations & Decision making and branching and looping
Managing input and output operations & Decision making and branching and looping
letheyabala
 
Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and looping
ChaAstillas
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR Chandigarh
Pankaj Thakur
 
Csphtp1 04
Csphtp1 04Csphtp1 04
Csphtp1 04
HUST
 
Ad

More from Jordan Delacruz (19)

Novel analysis
Novel analysisNovel analysis
Novel analysis
Jordan Delacruz
 
Motion tween resize
Motion tween resizeMotion tween resize
Motion tween resize
Jordan Delacruz
 
Computer motion tween
Computer motion tweenComputer motion tween
Computer motion tween
Jordan Delacruz
 
Introduction to layers
Introduction to layersIntroduction to layers
Introduction to layers
Jordan Delacruz
 
Graphics
GraphicsGraphics
Graphics
Jordan Delacruz
 
(Sept.14)
(Sept.14)(Sept.14)
(Sept.14)
Jordan Delacruz
 
(Sept.7)
(Sept.7)(Sept.7)
(Sept.7)
Jordan Delacruz
 
(Sept.5)
(Sept.5)(Sept.5)
(Sept.5)
Jordan Delacruz
 
(Sept. 8)
(Sept. 8)(Sept. 8)
(Sept. 8)
Jordan Delacruz
 
(Sept6. )
(Sept6. )(Sept6. )
(Sept6. )
Jordan Delacruz
 
(Sept15.)demo
(Sept15.)demo(Sept15.)demo
(Sept15.)demo
Jordan Delacruz
 
(Aug.31) introduction to macflash
(Aug.31) introduction to macflash(Aug.31) introduction to macflash
(Aug.31) introduction to macflash
Jordan Delacruz
 
(Sept.1) environment
(Sept.1) environment(Sept.1) environment
(Sept.1) environment
Jordan Delacruz
 
Conditional statement ss2
Conditional statement ss2Conditional statement ss2
Conditional statement ss2
Jordan Delacruz
 
Conditional statement ss1
Conditional statement ss1Conditional statement ss1
Conditional statement ss1
Jordan Delacruz
 
Introduction to basic programming repetition
Introduction to basic programming repetitionIntroduction to basic programming repetition
Introduction to basic programming repetition
Jordan Delacruz
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
Jordan Delacruz
 
Arithmetic operator
Arithmetic operatorArithmetic operator
Arithmetic operator
Jordan Delacruz
 
Arithmetic operator
Arithmetic operatorArithmetic operator
Arithmetic operator
Jordan Delacruz
 
Ad

Recently uploaded (20)

Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 

Introduction to flowchart

  • 10. Connectors on the same page 1- connection on the same flowchart portion2- connection on the differentflowchart portion
  • 11. Connectors on a different page Page 2Page 1
  • 12. The detail of how the function worksis put in another flowchart. This is known as Function-DefinitionPage 1Page 2Start terminal for aFunction is different.Do not use “Start”Body of a function is the same with normal flowchartAt this point, we only focus on whatto do. How to do it, it comes later.This part is known asFunction-CallEnd terminal must be a “Return”FunctionThis flowchart calculates the average of three numbers
  • 13. The main flowcharting structuresSequenceSelectionRepetition A flowchart expressing the solution to an involved problem may have:the main program flowchart on one page with subprograms continuing the problem solution on subsequent pages.
  • 14. Each of the five acceptable structures can be built from the basic elements as shown below.
  • 15. Each of the five acceptable structures can be built from the basic elements as shown below.
  • 16. Each of the five acceptable structures can be built from the basic elements as shown below.
  • 17. SequenceIn a computer program or an algorithm, sequence involves simple steps which are to be executed one after the other. The steps are executed in the same order in which they are written.In a flowchart, sequence is expressed as:In pseudocode, sequence is expressed as:process 1process 2……process n
  • 18. SequenceAn Example Using SequenceProblem: Write a set of instructions that describe how to make a pot of tea.PseudocodeBEGINfill a kettle with waterboil the water in the kettleput the tea leaves in the potpour boiling water in the potENDFlowchart
  • 19. Selection is used in a computer program or algorithm to determine which particular step or set of steps is to be executedBinary SelectionIn pseudocode, binary selection is expressed in the following ways: IF condition THENprocess 1ENDIFIF condition THENprocess 1ELSEprocess 2ENDIFBinary SelectionIn flowcharts, binary selection is expressed in the following ways:
  • 20. SelectionBinary (structure)Binary SelectionIn pseudocode, binary selection is expressed in the following ways: IF condition THENprocess 1ENDIF IF condition THENprocess 1ELSEprocess 2ENDIFBinary SelectionIn flowcharts, binary selection is expressed in the following ways:
  • 21. SelectionBinary (flowchart structure)Note: In a flowchart it is most important to indicate which path is to be followed when the condition is true, and which path to follow when the condition is false. Without these indications the flowchart is open to more than one interpretation.Note: There are two acceptable ways to represent a decision in all of the structures.Either method is acceptable. For consistency, the method 1 is used throughout this document.The condition is expressed as a statement and the two possible outcomes are indicated byTrue
  • 22. False2. The condition is expressed as a question and the two possible outcomes are indicated by Yes
  • 23. NoSelectionBinary (examples)Selection is used in a computer program or algorithm to determine which particular step or set of steps is to be executed.Examples Using Binary SelectionProblem 1: Write a set of instructions to describe when to answer the phone. Binary SelectionFlowchartBinary SelectionPseudocodeIF the telephone is ringing THENanswer the telephoneENDIF
  • 24. SelectionBinary (examples)Examples Using Binary SelectionProblem 2: Write a set of instructions to follow when approaching a set of traffic control lights.Binary SelectionFlowchartBinary SelectionPseudocodeIF the signal is green THENproceed through the intersectionELSEstop the vehicleENDIF
  • 25. SelectionMulti-way (structure)Multi-way SelectionIn flowcharts, multi-way selection is expressed as:Multi-way SelectionIn pseudocode, multiple selection is expressed as:CASEWHERE expression evaluates tochoice a : process achoice b : process b . . . . . . OTHERWISE : default processENDCASENote: As the flowchart version of the multi-way selection indicates, only one process on each pass is executed as a result of the implementation of the multi-way selection.
  • 26. SelectionMulti-way (examples)Example Using Multi-way SelectionProblem: Write a set of instructions that describes how to:respond to all possible signals at a set of traffic control lights.Multi-way SelectionFlowchartMulti-way SelectionPseudocodeCASEWHERE signal isred : stop the vehicleamber : stop the vehiclegreen : proceed through the intersection OTHERWISE : proceed with cautionENDCASE
  • 27. RepetitionRepetition allows for a portion of an algorithm or computer programto be done any number of times dependent on some condition being met. An occurrence of repetition is usually known as a loop.An essential feature of repetition is that each loop has a termination condition to stop the repetition, or the obvious outcome is that the loop never completes execution (an infinite loop). The termination condition can be checked or testedat the beginning and is known as a pre-test loop orat the end of the loop and is known as a post-test loop.
  • 28. RepetitionPre-test(structure)Repetition: Pre-TestA pre-tested loop is so named because the condition has to be met atthe very beginning of the loop or the body of the loop is not executed. This construct is often called a guarded loop. Thebody of the loop is executed repeatedly while the termination condition is true.RepetitionIn flowchartingpre-test repetition is expressed as:RepetitionIn pseudocode, pre-test repetition is expressed as:WHILE condition is trueprocess(es)ENDWHILE
  • 29. Repetition Post-test(structure)Repetition: Post-TestA post-tested loop executes the body of the loop before testing the termination condition.
  • 30. This construct is often referred to as an unguarded loop.
  • 31. The body of the loop is repeatedly executed until the termination condition is true.An important difference between a pre-test and post-test loop is that the statements of a post-test loop are executed at least once even if the condition is originally true, whereas the body of the pre-test loop may never be executed if the termination condition is originally true. A close look at the representations of the two loop types makes this point apparent.RepetitionIn a flowchartpost-test repetition is expressed as:RepetitionIn pseudocode, post-test repetition is expressed as:REPEATprocessUNTIL condition is true
  • 32. Repetition Pre-test(example)An Example Using Pre-Test RepetitionProblem: Determine a safety procedure for travelling in a carriage on a moving train.Pre-test RepetitionFlowchartPre-test RepetitionPseudocodeWHILE the train is movingkeep wholly within the carriageENDWHILE
  • 33. Repetition Post-test(example)An Example Using Post-Test RepetitionProblem: Determine a procedure to beat egg whites until fluffy.Post-test RepetitionFlowchartPost-test RepetitionPseudocodeREPEATbeat the egg whitesUNTIL fluffy
  • 34. Input:Length <- 5Width <- 3Process:Area = 5 * 3 = 15Process:Perimeter = 2* (5+3) = 16OutputArea: 15Perimeter: 16Example:
  • 35. Input:Num <- 10Enter a Number >> 10Num = 1010 > 0 ? => YESOutput:“Category A”Example: What is the output of the following flowchart when the input Num= 10Category A
  • 36. Input:Num <- 0Enter a Number >> 0Num = 00 > 0 ? => NOOutput:“Category B”Output:“Category A”Example: What is the output of the following flowchart when the input is Num= 0Category BCategory A
  • 37. Variables (in memory):Num [ 4 ]Result [ ]Count [ ]Input:Num <- 4Enter a Number => 4Count = 44 > 0 ? => YESCount = 33 > 0 ? => YESCount = 22 > 0 ? => YESCount = 11 > 0 ? => YESCount = 00 > 0 ? => NOExample: What is the output of the following flowchart when the input is Num= 4Variables (in memory):Num [ 4 ]Result [ 0 ]Count [ 4 ]Variables (in memory):Num [ 4 ]Result [ 7 ] 4 + 3Count [ 2 ] 3 - 1Variables (in memory):Num [ 4 ]Result [ 9 ] 7 + 2Count [ 1 ] 2 - 1Variables (in memory):Num [ ]Result [ ]Count [ ]Variables (in memory):Num [ 4 ]Result [ 10] 9 + 1Count [ 0 ] 1 - 1Variables (in memory):Num [ 4 ]Result [ 4 ] 0 + 4Count [ 3 ] 4 - 1Count: 4Count: 3Count: 2Count: 1Count: 0Result: 10
  • 38. Example: What is the output of the following flowchart when the input is N = 6105averageN=6Sum = 10 + 5 + 6average = 21/3Output:Average: 7Page 1Page 2
  • 40. QuizWhat is a flowchart?It is used to connect remote flowchart portion on the same page. One flow line enters and one flow line exits.3-5. Control Structures of Flowchart.