SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Introduction To Flowcharting
Today’s Topics ,[object Object]
Structures
Sequence
Selection
Repetition,[object Object]
Flowchart Symbols
Flowchart Symbols
Comments or description
Connectors on the same page  1- connection on the same  flowchart portion 2- connection on the different flowchart portion
Connectors on a different page  Page 2 Page 1
The detail of how the function works is put in another flowchart.  This is known as Function-Definition Page 1 Page 2 Start terminal for a Function is different. Do not use “Start” Body of a function is  the same with  normal flowchart At this point,  we only focus on what to do. How to do it,   it comes later. This part is known as Function-Call End terminal  must be a “Return” Function This flowchart calculates the average of three numbers
The main flowcharting structures Sequence Selection Repetition  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.
Sequence In 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 1 process 2 … … process n
Sequence An Example Using Sequence Problem: Write a set of instructions that describe how to make a pot of tea. Pseudocode BEGIN fill a kettle with water boil the water in the kettle put the tea leaves in the pot pour boiling water in the pot END Flowchart
Selection is used in a computer program or algorithm to determine which particular step or set of steps is to be executed Binary Selection In pseudocode, binary selection is expressed in the following ways:    IF condition THEN process 1 ENDIF IF condition THEN process 1 ELSE process 2 ENDIF Binary Selection In flowcharts, binary selection is expressed in the following ways:
SelectionBinary (structure) Binary Selection In pseudocode, binary selection is expressed in the following ways:   IF condition THEN process 1 ENDIF   IF condition THEN process 1 ELSE process 2 ENDIF Binary Selection In 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 by ,[object Object]
False2.  The condition is expressed as a question and the two possible outcomes are indicated by  ,[object Object]
No,[object Object]
SelectionBinary (examples) Examples Using Binary Selection Problem 2: Write a set of instructions to follow when approaching a set of traffic control lights. Binary Selection Flowchart Binary Selection Pseudocode IF the signal is green THEN proceed through the intersection ELSE stop the vehicle ENDIF
SelectionMulti-way (structure) Multi-way Selection In flowcharts, multi-way selection is expressed as: Multi-way Selection In pseudocode, multiple selection is expressed as: CASEWHERE expression evaluates to choice a      :      process a choice b      :      process b       . 		     .       . 		     .       . 		     .     OTHERWISE  :      default process ENDCASE Note: 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 Selection Problem: Write a set of instructions that describes how to: respond to all possible signals at a set of traffic control lights. Multi-way Selection Flowchart Multi-way Selection Pseudocode CASEWHERE signal is red              : stop the vehicle amber         : stop the vehicle green          : proceed through the intersection      OTHERWISE  : proceed with caution ENDCASE
Repetition Repetition allows for a portion of an algorithm or computer program to 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 tested at the beginning and is known as a pre-test loop or at the end of the loop and is known as a post-test loop.
RepetitionPre-test(structure) Repetition: Pre-Test A 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. Repetition In flowcharting pre-test repetition  is expressed as: Repetition In pseudocode, pre-test repetition is expressed as: WHILE condition is true process(es) ENDWHILE
Repetition Post-test(structure) Repetition: Post-Test ,[object Object]
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. Repetition In a flowchart post-test repetition  is expressed as: Repetition In pseudocode, post-test repetition is expressed as: REPEAT process UNTIL condition is true
Repetition Pre-test(example) An Example Using Pre-Test Repetition Problem: Determine a safety procedure for travelling in a carriage on a moving train. Pre-test Repetition Flowchart Pre-test Repetition Pseudocode WHILE the train is moving keep wholly within the carriage ENDWHILE
Repetition Post-test(example) An Example Using Post-Test Repetition Problem: Determine a procedure to beat egg whites until fluffy. Post-test Repetition Flowchart Post-test Repetition Pseudocode REPEAT beat the egg whites UNTIL fluffy
Input: Length <- 5 Width  <- 3 Process: Area = 5 * 3 = 15 Process: Perimeter =        2* (5+3)    = 16 Output Area: 15 Perimeter: 16 Example:

Weitere ähnliche Inhalte

Was ist angesagt?

Microsoft word basics ppt
Microsoft word basics pptMicrosoft word basics ppt
Microsoft word basics pptjdbutler13
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmDHANIK VIKRANT
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
 
Microsoft Word
Microsoft WordMicrosoft Word
Microsoft WordJack Frost
 
Microsoft word ppt presentation
 Microsoft word  ppt presentation Microsoft word  ppt presentation
Microsoft word ppt presentationvethics
 
Introduction to powerpoint
Introduction to powerpointIntroduction to powerpoint
Introduction to powerpointBESOR ACADEMY
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
 
Straight&Cross-over cable connection
Straight&Cross-over cable connectionStraight&Cross-over cable connection
Straight&Cross-over cable connectionHoracio Aceveda
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programmingmshellman
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchartfika sweety
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Parts of m.s word
Parts of m.s wordParts of m.s word
Parts of m.s wordJohn Lloyd
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowchartsnicky_walters
 

Was ist angesagt? (20)

Microsoft word basics ppt
Microsoft word basics pptMicrosoft word basics ppt
Microsoft word basics ppt
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
 
Microsoft Word
Microsoft WordMicrosoft Word
Microsoft Word
 
Microsoft word ppt presentation
 Microsoft word  ppt presentation Microsoft word  ppt presentation
Microsoft word ppt presentation
 
Introduction to powerpoint
Introduction to powerpointIntroduction to powerpoint
Introduction to powerpoint
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
Straight&Cross-over cable connection
Straight&Cross-over cable connectionStraight&Cross-over cable connection
Straight&Cross-over cable connection
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
 
Flowchart
FlowchartFlowchart
Flowchart
 
Rubric
RubricRubric
Rubric
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Parts of m.s word
Parts of m.s wordParts of m.s word
Parts of m.s word
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
Computer maintenance
Computer maintenanceComputer maintenance
Computer maintenance
 
Computer Keyboard
Computer KeyboardComputer Keyboard
Computer Keyboard
 

Ähnlich wie Introduction to flowchart

Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01VincentAcapen1
 
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.pdfKirubelWondwoson1
 
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 programmingpdfssuserf86fba
 
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 STUDENTSAlicia Edwards
 
7-White Box Testing.ppt
7-White Box Testing.ppt7-White Box Testing.ppt
7-White Box Testing.pptHirenderPal
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and TestingDr Sukhpal Singh Gill
 
Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and loopingChaAstillas
 
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 ChandigarhPankaj Thakur
 
Csphtp1 04
Csphtp1 04Csphtp1 04
Csphtp1 04HUST
 

Ähnlich wie Introduction to flowchart (20)

Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01Introductiontoflowchart 110630082600-phpapp01
Introductiontoflowchart 110630082600-phpapp01
 
Lect 3-4 Zaheer Abbas
Lect 3-4 Zaheer AbbasLect 3-4 Zaheer Abbas
Lect 3-4 Zaheer Abbas
 
Ch05
Ch05Ch05
Ch05
 
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
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
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
 
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
 
Algorithm manual
Algorithm manualAlgorithm manual
Algorithm manual
 
03b loops
03b   loops03b   loops
03b loops
 
7-White Box Testing.ppt
7-White Box Testing.ppt7-White Box Testing.ppt
7-White Box Testing.ppt
 
Ch3 repetition
Ch3 repetitionCh3 repetition
Ch3 repetition
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and Testing
 
Loops c++
Loops c++Loops c++
Loops c++
 
C Programming Unit-2
C Programming Unit-2C Programming Unit-2
C Programming Unit-2
 
Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and looping
 
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
 
Csphtp1 04
Csphtp1 04Csphtp1 04
Csphtp1 04
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
White box testing
White box testingWhite box testing
White box testing
 

Mehr von Jordan Delacruz (20)

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

Kürzlich hochgeladen

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Kürzlich hochgeladen (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

Introduction to flowchart

  • 2.
  • 6.
  • 10. Connectors on the same page 1- connection on the same flowchart portion 2- connection on the different flowchart portion
  • 11. Connectors on a different page Page 2 Page 1
  • 12. The detail of how the function works is put in another flowchart. This is known as Function-Definition Page 1 Page 2 Start terminal for a Function is different. Do not use “Start” Body of a function is the same with normal flowchart At this point, we only focus on what to do. How to do it, it comes later. This part is known as Function-Call End terminal must be a “Return” Function This flowchart calculates the average of three numbers
  • 13. The main flowcharting structures Sequence Selection Repetition 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. Sequence In 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 1 process 2 … … process n
  • 18. Sequence An Example Using Sequence Problem: Write a set of instructions that describe how to make a pot of tea. Pseudocode BEGIN fill a kettle with water boil the water in the kettle put the tea leaves in the pot pour boiling water in the pot END Flowchart
  • 19. Selection is used in a computer program or algorithm to determine which particular step or set of steps is to be executed Binary Selection In pseudocode, binary selection is expressed in the following ways: IF condition THEN process 1 ENDIF IF condition THEN process 1 ELSE process 2 ENDIF Binary Selection In flowcharts, binary selection is expressed in the following ways:
  • 20. SelectionBinary (structure) Binary Selection In pseudocode, binary selection is expressed in the following ways: IF condition THEN process 1 ENDIF IF condition THEN process 1 ELSE process 2 ENDIF Binary Selection In flowcharts, binary selection is expressed in the following ways:
  • 21.
  • 22.
  • 23.
  • 24. SelectionBinary (examples) Examples Using Binary Selection Problem 2: Write a set of instructions to follow when approaching a set of traffic control lights. Binary Selection Flowchart Binary Selection Pseudocode IF the signal is green THEN proceed through the intersection ELSE stop the vehicle ENDIF
  • 25. SelectionMulti-way (structure) Multi-way Selection In flowcharts, multi-way selection is expressed as: Multi-way Selection In pseudocode, multiple selection is expressed as: CASEWHERE expression evaluates to choice a : process a choice b : process b . . . . . . OTHERWISE : default process ENDCASE Note: 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 Selection Problem: Write a set of instructions that describes how to: respond to all possible signals at a set of traffic control lights. Multi-way Selection Flowchart Multi-way Selection Pseudocode CASEWHERE signal is red : stop the vehicle amber : stop the vehicle green : proceed through the intersection OTHERWISE : proceed with caution ENDCASE
  • 27. Repetition Repetition allows for a portion of an algorithm or computer program to 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 tested at the beginning and is known as a pre-test loop or at the end of the loop and is known as a post-test loop.
  • 28. RepetitionPre-test(structure) Repetition: Pre-Test A 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. Repetition In flowcharting pre-test repetition is expressed as: Repetition In pseudocode, pre-test repetition is expressed as: WHILE condition is true process(es) ENDWHILE
  • 29.
  • 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. Repetition In a flowchart post-test repetition is expressed as: Repetition In pseudocode, post-test repetition is expressed as: REPEAT process UNTIL condition is true
  • 32. Repetition Pre-test(example) An Example Using Pre-Test Repetition Problem: Determine a safety procedure for travelling in a carriage on a moving train. Pre-test Repetition Flowchart Pre-test Repetition Pseudocode WHILE the train is moving keep wholly within the carriage ENDWHILE
  • 33. Repetition Post-test(example) An Example Using Post-Test Repetition Problem: Determine a procedure to beat egg whites until fluffy. Post-test Repetition Flowchart Post-test Repetition Pseudocode REPEAT beat the egg whites UNTIL fluffy
  • 34. Input: Length <- 5 Width <- 3 Process: Area = 5 * 3 = 15 Process: Perimeter = 2* (5+3) = 16 Output Area: 15 Perimeter: 16 Example:
  • 35. Input: Num <- 10 Enter a Number >> 10 Num = 10 10 > 0 ? => YES Output: “Category A” Example: What is the output of the following flowchart when the input Num= 10 Category A
  • 36. Input: Num <- 0 Enter a Number >> 0 Num = 0 0 > 0 ? => NO Output: “Category B” Output: “Category A” Example: What is the output of the following flowchart when the input is Num= 0 Category B Category A
  • 37. Variables (in memory): Num [ 4 ] Result [ ] Count [ ] Input: Num <- 4 Enter a Number => 4 Count = 4 4 > 0 ? => YES Count = 3 3 > 0 ? => YES Count = 2 2 > 0 ? => YES Count = 1 1 > 0 ? => YES Count = 0 0 > 0 ? => NO Example: What is the output of the following flowchart when the input is Num= 4 Variables (in memory): Num [ 4 ] Result [ 0 ] Count [ 4 ] Variables (in memory): Num [ 4 ] Result [ 7 ] 4 + 3 Count [ 2 ] 3 - 1 Variables (in memory): Num [ 4 ] Result [ 9 ] 7 + 2 Count [ 1 ] 2 - 1 Variables (in memory): Num [ ] Result [ ] Count [ ] Variables (in memory): Num [ 4 ] Result [ 10] 9 + 1 Count [ 0 ] 1 - 1 Variables (in memory): Num [ 4 ] Result [ 4 ] 0 + 4 Count [ 3 ] 4 - 1 Count: 4 Count: 3 Count: 2 Count: 1 Count: 0 Result: 10
  • 38. Example: What is the output of the following flowchart when the input is N = 6 10 5 average N=6 Sum = 10 + 5 + 6 average = 21/3 Output: Average: 7 Page 1 Page 2
  • 40. Quiz What 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.