SlideShare ist ein Scribd-Unternehmen logo
1 von 42
Flow Charts
Flow Charts
•A diagrammatic representation that illustrates the
sequence of operations to be performed to get the solution
of a problem.
• Generally drawn in the early stages of formulating
computer solutions.
• Facilitate communication between programmers and
business people.
• Play a vital role in the programming of a problem and are
quite helpful in understanding the logic of complicated and
lengthy problems.
• Once the flowchart is drawn, it becomes easy to write the
program in any high level language.
• Must for the better documentation of a complex program.
Flow Charts
A flow chart can be used to:

• Define and analyse processes.
• Build a step-by-step picture of the process
  for analysis, discussion, or communication.
• Define, standardise or find areas for
  improvement in a process.
Flow Charts
Symbols for drawing a flowchart:




         Start or End of the program
Flow Charts
Symbols for drawing a flowchart:




Computational Steps or Processing Function
 of a program
Flow Charts
Symbols for drawing a flowchart:




           Input or output operation
Flow Charts
Symbols for drawing a flowchart:




       Decision Making and Branching
Flow Charts
Symbols for drawing a flowchart:




Connector or joining of two parts of program
Flow Charts
Symbols for drawing a flowchart:




                Magnetic Tape
Flow Charts
Symbols for drawing a flowchart:




                Magnetic Disk
Flow Charts
Symbols for drawing a flowchart:




              Off-page connector
Flow Charts
Symbols for drawing a flowchart:




                  Flow lines
Flow Charts
Symbols for drawing a flowchart:




             Annotation (foot note)
Flow Charts
Symbols for drawing a flowchart:




                    Display
Flow Charts
Guidelines in flowcharting -
• In drawing a proper flowchart, all necessary
   requirements should be listed out in logical order.
• The flowchart should be clear, neat and easy to
   follow. There should not be any room for
   ambiguity in understanding the flowchart.
• The usual direction of the flow of a procedure or
   system is from left to right or top to bottom.
Flow Charts
…Guidelines in flowcharting -
• Only one flow line should come out from a
  process symbol.



                  OR
Flow Charts
…Guidelines in flowcharting -
• Only one flow line should enter a decision
  symbol, but two or three flow lines, one for
  each possible answer, should leave the
  decision symbol.
Flow Charts

…Guidelines in flowcharting –
 Only one flow line is used in conjunction
 with terminal symbol.
Flow Charts

…Guidelines in flowcharting –
 Write within standard symbols briefly. As
 necessary, you can use the annotation
 symbol to describe data or computational
 steps more clearly.

                  This is confidential data
Flow Charts

…Guidelines in flowcharting –

•   In case of complex flowchart, it is better to use
    connector symbols to reduce the number of flow
    lines. Avoid the intersection of flow lines.
•   Ensure that the flowchart has a logical start and
    finish.
•   It is useful to test the validity of the flowchart by
    passing through it with a simple test data.
Flow Charts
Advantages Of Using Flowcharts :

•   Effective communication
•   Effective analysis
•   Proper documentation
•   Efficient Coding
•   Proper Debugging
•   Efficient Program Maintenance
Flow Charts
Limitations of using Flowcharts :

• Complex logic: Sometimes, the program
  logic is quite complicated.
• Alterations and Modifications:
  Alterations may require re-drawing
  completely.
• Reproduction: As the flowchart symbols
  cannot be typed, reproduction of flowchart
  becomes a problem.
Flow Charts


Example 1.

Draw a flowchart to find the sum of first 50 natural numbers.
Flow Charts

Example 2
 Draw a flowchart to find the largest of three
 numbers A,B and C.
Flow Charts

Example 3
 Draw a flowchart for computing factorial of a
 given number
Assignment
Fill in the blanks-
2. A program flowchart indicates the_________ to be performed and
     the __________ in which they occur.
3. A program flowchart is generally read from _____________ to
     ________________
4. Flowcharting symbols are connected together by means of
     ___________________
5. A decision symbol may be used in determining the ____________ or
     ___________ of two data items.
6. __________ are used to join remote portions of a flowchart
7. ____________ connectors are used when a flowchart ends on one
     page and begins again on other page
8. A ________ symbol is used at the beginning and end of a flowchart.
9. The flowchart is one of the best ways of ________ a program..
10. To construct a flowchart, one must adhere to prescribed symbols
     provided by the __________ .
11. The program uses a ____________ to aid it in drawing flowchart
     symbols.
Answers

•   Operations, sequence
•   Top, down
•   Flow line
•   Equality, inequality
•   connectors
•   Off -page
•   Terminal
•   documenting
•   ANSI (American National Standards Institute)
•   Flowcharting template
Structured English
Structured English
•   Structured English is a tool used to represent
    process logic.
•   Syntax rules are not very strict & an English
    statement is used to specify an action.
•   The main aim is to allow easy readability, which
    helps in documentation.

Two building blocks of Structured English:
6. Structured logic or instructions organized into
   nested or grouped procedures
7. Simple English statements such as add, multiply,
   move
Structured English
Four conventions to follow when using Structured
   English:

•   Express all logic in terms of sequential structures,
    decision structures, or iterations.
•   Use upper case for keywords such as: IF, THEN,
    ELSE, DO, DO WHILE, DO UNTIL, PERFORM
•   Indent blocks of statements to show their
    hierarchy (nesting) clearly.
•   When words or phrases have been defined,
    underline those words or phrases to indicate that
    they have a specialised, reserved meaning.
The Flow of Structured English




 Plain       Structured             Pseudocode    Programs
English        English



User                      Analyst                Programmer
…Structured English

The conventions are used in writing structured
   English:
• Imperative Sentences: Store the data in
   database.
• Arithmetic & Relational Operations :
   Common symbols of mathematics are used
   in structured English such as- + for add, - for
   subtraction etc. and =, >=, != etc. are used
   for relational operations.
…Structured English
3. Decision Structures: If Then Else, Select
    Case
4. Repetion: Loops

   There are various forms in which structured
   english can be implemented to solve the
   problem. e.g. Algorithm, Flowchart,
   pseudocode.
…Structured English
Writing Structured English
       Repetition              Conditions

                       IF … THEN …
DO
                               statements …
  statements …           ELSE
UNTIL end-condition            statements …
                       END IF
           or                       or
                      SELECT
                        CASE 1 (conditions)
DO WHILE
                              statements …
  statements …          CASE 2 …
END DO                        statements …
                       END SELECT
Pseudocode
Pseudocode


• An outline of a program, written in a
  form that can easily be converted into
  real programming statements.
• Pseudocode cannot be compiled nor
  executed, and there are no real
  formatting or syntax rules.
…Pseudocode

• It   enables     the   programmer     to
  concentrate on the algorithms without
  worrying about all the syntactic details
  of a particular programming language.

• Flowcharts can be thought of as a
  graphical form of pseudocode.
Example of Pseudocode
Regular code (written in PHP):
<?php
if (is_valid($cc_number))
{ execute_transaction($cc_number, $order); }
else { show_failure(); }
?>
Pseudocode:
if credit card number is valid
       execute transaction based on number and
       order
else show a generic failure message
end if

Weitere ähnliche Inhalte

Was ist angesagt?

An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages Ahmad Idrees
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
Unit 1 program development cycle
Unit 1 program development cycleUnit 1 program development cycle
Unit 1 program development cycleDhana malar
 
Chapter 3 - Variables and Constants
Chapter 3 - Variables and ConstantsChapter 3 - Variables and Constants
Chapter 3 - Variables and Constantsmshellman
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basicsSabik T S
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and FlowchartALI RAZA
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to PseudocodeDamian T. Gordon
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design IntroductionRicha Sharma
 
SPL 2 | Algorithms, Pseudo-code, and Flowchart
SPL 2 | Algorithms, Pseudo-code, and FlowchartSPL 2 | Algorithms, Pseudo-code, and Flowchart
SPL 2 | Algorithms, Pseudo-code, and FlowchartMohammad Imam Hossain
 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals ArghodeepPaul
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compilerIffat Anjum
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
 

Was ist angesagt? (20)

An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
Unit 1 program development cycle
Unit 1 program development cycleUnit 1 program development cycle
Unit 1 program development cycle
 
Chapter 3 - Variables and Constants
Chapter 3 - Variables and ConstantsChapter 3 - Variables and Constants
Chapter 3 - Variables and Constants
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Pseudocode
PseudocodePseudocode
Pseudocode
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basics
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
 
SPL 2 | Algorithms, Pseudo-code, and Flowchart
SPL 2 | Algorithms, Pseudo-code, and FlowchartSPL 2 | Algorithms, Pseudo-code, and Flowchart
SPL 2 | Algorithms, Pseudo-code, and Flowchart
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
notes on Programming fundamentals
notes on Programming fundamentals notes on Programming fundamentals
notes on Programming fundamentals
 
Unit 3. Input and Output
Unit 3. Input and OutputUnit 3. Input and Output
Unit 3. Input and Output
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compiler
 
Compiler Chapter 1
Compiler Chapter 1Compiler Chapter 1
Compiler Chapter 1
 
phases of a compiler
 phases of a compiler phases of a compiler
phases of a compiler
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 

Andere mochten auch

Chap3 flow charts
Chap3 flow chartsChap3 flow charts
Chap3 flow chartsamit139
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchartJordan Delacruz
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowchartsnicky_walters
 
L7 decision tree & table
L7 decision tree & tableL7 decision tree & table
L7 decision tree & tableNeha Gupta
 
Flowchart pseudocode-examples
Flowchart pseudocode-examplesFlowchart pseudocode-examples
Flowchart pseudocode-examplesGautam Roy
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
 
Let My Patients Flow-Streamlining the OR Suite
Let My Patients Flow-Streamlining the OR SuiteLet My Patients Flow-Streamlining the OR Suite
Let My Patients Flow-Streamlining the OR SuiteProModel Corporation
 
Outflow: Visualizing Patients Flow by Symptoms & Outcome
Outflow: Visualizing Patients Flow by Symptoms & OutcomeOutflow: Visualizing Patients Flow by Symptoms & Outcome
Outflow: Visualizing Patients Flow by Symptoms & OutcomeKrist Wongsuphasawat
 
Mcs Hospital
Mcs HospitalMcs Hospital
Mcs Hospitalkgnmatin
 
Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to FlowchartAngelo Tomboc
 
Determining Requirements In System Analysis And Dsign
Determining Requirements In System Analysis And DsignDetermining Requirements In System Analysis And Dsign
Determining Requirements In System Analysis And DsignAsaduzzaman Kanok
 

Andere mochten auch (20)

Chap3 flow charts
Chap3 flow chartsChap3 flow charts
Chap3 flow charts
 
Flowchart
FlowchartFlowchart
Flowchart
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Flow charts
Flow chartsFlow charts
Flow charts
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Flowchart
FlowchartFlowchart
Flowchart
 
L7 decision tree & table
L7 decision tree & tableL7 decision tree & table
L7 decision tree & table
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
Flowchart pseudocode-examples
Flowchart pseudocode-examplesFlowchart pseudocode-examples
Flowchart pseudocode-examples
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
 
Let My Patients Flow-Streamlining the OR Suite
Let My Patients Flow-Streamlining the OR SuiteLet My Patients Flow-Streamlining the OR Suite
Let My Patients Flow-Streamlining the OR Suite
 
Outflow: Visualizing Patients Flow by Symptoms & Outcome
Outflow: Visualizing Patients Flow by Symptoms & OutcomeOutflow: Visualizing Patients Flow by Symptoms & Outcome
Outflow: Visualizing Patients Flow by Symptoms & Outcome
 
Mcs Hospital
Mcs HospitalMcs Hospital
Mcs Hospital
 
5 Things
5 Things5 Things
5 Things
 
Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to Flowchart
 
Determining Requirements In System Analysis And Dsign
Determining Requirements In System Analysis And DsignDetermining Requirements In System Analysis And Dsign
Determining Requirements In System Analysis And Dsign
 

Ähnlich wie Lecture 4

final Unit 1-1.pdf
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdfprakashvs7
 
Algorithm & Flowchart.pdf
Algorithm & Flowchart.pdfAlgorithm & Flowchart.pdf
Algorithm & Flowchart.pdfVpmv
 
Pseudo code.pptx
Pseudo code.pptxPseudo code.pptx
Pseudo code.pptxChaya64047
 
Prepare and Interpret Technical Drawing.pptx
Prepare and Interpret Technical Drawing.pptxPrepare and Interpret Technical Drawing.pptx
Prepare and Interpret Technical Drawing.pptxRivenBarquilla
 
Lesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptxLesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptxAlinaMishra7
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptxTadiwaMawere
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptxDivyaKS12
 
Flowchart symbols meaning explained
Flowchart symbols meaning explainedFlowchart symbols meaning explained
Flowchart symbols meaning explainedEliza Wright
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem slovingMani Kandan
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing TechniquesAppili Vamsi Krishna
 

Ähnlich wie Lecture 4 (20)

final Unit 1-1.pdf
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdf
 
aamir presentation
aamir presentationaamir presentation
aamir presentation
 
Algorithm & Flowchart.pdf
Algorithm & Flowchart.pdfAlgorithm & Flowchart.pdf
Algorithm & Flowchart.pdf
 
Pseudo code.pptx
Pseudo code.pptxPseudo code.pptx
Pseudo code.pptx
 
algorithm
algorithmalgorithm
algorithm
 
Prepare and Interpret Technical Drawing.pptx
Prepare and Interpret Technical Drawing.pptxPrepare and Interpret Technical Drawing.pptx
Prepare and Interpret Technical Drawing.pptx
 
Lesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptxLesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptx
 
Flowchart Grade 10
Flowchart Grade 10Flowchart Grade 10
Flowchart Grade 10
 
Flow charts
Flow chartsFlow charts
Flow charts
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptx
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
Flowchart symbols meaning explained
Flowchart symbols meaning explainedFlowchart symbols meaning explained
Flowchart symbols meaning explained
 
Fundamentals of-algorithm
Fundamentals of-algorithmFundamentals of-algorithm
Fundamentals of-algorithm
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
Chap6
Chap6Chap6
Chap6
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
 
Flowcharting and Algorithm
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 

Mehr von Anshumali Singh (20)

Unit3rd
Unit3rdUnit3rd
Unit3rd
 
Unit2[1]
Unit2[1]Unit2[1]
Unit2[1]
 
Unit2[1]
Unit2[1]Unit2[1]
Unit2[1]
 
Unit2.2
Unit2.2Unit2.2
Unit2.2
 
Unit2.1
Unit2.1Unit2.1
Unit2.1
 
Unit2.1
Unit2.1Unit2.1
Unit2.1
 
Unit2(Cont.)
Unit2(Cont.)Unit2(Cont.)
Unit2(Cont.)
 
Unit2
Unit2Unit2
Unit2
 
Shai 2
Shai 2Shai 2
Shai 2
 
Shai
ShaiShai
Shai
 
Outputdevice
OutputdeviceOutputdevice
Outputdevice
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture2
Lecture2Lecture2
Lecture2
 

Kürzlich hochgeladen

(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
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
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
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
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
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
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 

Kürzlich hochgeladen (20)

(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
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
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
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
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
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
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 

Lecture 4

  • 2. Flow Charts •A diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. • Generally drawn in the early stages of formulating computer solutions. • Facilitate communication between programmers and business people. • Play a vital role in the programming of a problem and are quite helpful in understanding the logic of complicated and lengthy problems. • Once the flowchart is drawn, it becomes easy to write the program in any high level language. • Must for the better documentation of a complex program.
  • 3. Flow Charts A flow chart can be used to: • Define and analyse processes. • Build a step-by-step picture of the process for analysis, discussion, or communication. • Define, standardise or find areas for improvement in a process.
  • 4. Flow Charts Symbols for drawing a flowchart: Start or End of the program
  • 5. Flow Charts Symbols for drawing a flowchart: Computational Steps or Processing Function of a program
  • 6. Flow Charts Symbols for drawing a flowchart: Input or output operation
  • 7. Flow Charts Symbols for drawing a flowchart: Decision Making and Branching
  • 8. Flow Charts Symbols for drawing a flowchart: Connector or joining of two parts of program
  • 9. Flow Charts Symbols for drawing a flowchart: Magnetic Tape
  • 10. Flow Charts Symbols for drawing a flowchart: Magnetic Disk
  • 11. Flow Charts Symbols for drawing a flowchart: Off-page connector
  • 12. Flow Charts Symbols for drawing a flowchart: Flow lines
  • 13. Flow Charts Symbols for drawing a flowchart: Annotation (foot note)
  • 14. Flow Charts Symbols for drawing a flowchart: Display
  • 15. Flow Charts Guidelines in flowcharting - • In drawing a proper flowchart, all necessary requirements should be listed out in logical order. • The flowchart should be clear, neat and easy to follow. There should not be any room for ambiguity in understanding the flowchart. • The usual direction of the flow of a procedure or system is from left to right or top to bottom.
  • 16. Flow Charts …Guidelines in flowcharting - • Only one flow line should come out from a process symbol. OR
  • 17. Flow Charts …Guidelines in flowcharting - • Only one flow line should enter a decision symbol, but two or three flow lines, one for each possible answer, should leave the decision symbol.
  • 18. Flow Charts …Guidelines in flowcharting – Only one flow line is used in conjunction with terminal symbol.
  • 19. Flow Charts …Guidelines in flowcharting – Write within standard symbols briefly. As necessary, you can use the annotation symbol to describe data or computational steps more clearly. This is confidential data
  • 20. Flow Charts …Guidelines in flowcharting – • In case of complex flowchart, it is better to use connector symbols to reduce the number of flow lines. Avoid the intersection of flow lines. • Ensure that the flowchart has a logical start and finish. • It is useful to test the validity of the flowchart by passing through it with a simple test data.
  • 21. Flow Charts Advantages Of Using Flowcharts : • Effective communication • Effective analysis • Proper documentation • Efficient Coding • Proper Debugging • Efficient Program Maintenance
  • 22. Flow Charts Limitations of using Flowcharts : • Complex logic: Sometimes, the program logic is quite complicated. • Alterations and Modifications: Alterations may require re-drawing completely. • Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
  • 23. Flow Charts Example 1. Draw a flowchart to find the sum of first 50 natural numbers.
  • 24.
  • 25. Flow Charts Example 2 Draw a flowchart to find the largest of three numbers A,B and C.
  • 26.
  • 27. Flow Charts Example 3 Draw a flowchart for computing factorial of a given number
  • 28.
  • 29. Assignment Fill in the blanks- 2. A program flowchart indicates the_________ to be performed and the __________ in which they occur. 3. A program flowchart is generally read from _____________ to ________________ 4. Flowcharting symbols are connected together by means of ___________________ 5. A decision symbol may be used in determining the ____________ or ___________ of two data items. 6. __________ are used to join remote portions of a flowchart 7. ____________ connectors are used when a flowchart ends on one page and begins again on other page 8. A ________ symbol is used at the beginning and end of a flowchart. 9. The flowchart is one of the best ways of ________ a program.. 10. To construct a flowchart, one must adhere to prescribed symbols provided by the __________ . 11. The program uses a ____________ to aid it in drawing flowchart symbols.
  • 30. Answers • Operations, sequence • Top, down • Flow line • Equality, inequality • connectors • Off -page • Terminal • documenting • ANSI (American National Standards Institute) • Flowcharting template
  • 32. Structured English • Structured English is a tool used to represent process logic. • Syntax rules are not very strict & an English statement is used to specify an action. • The main aim is to allow easy readability, which helps in documentation. Two building blocks of Structured English: 6. Structured logic or instructions organized into nested or grouped procedures 7. Simple English statements such as add, multiply, move
  • 33. Structured English Four conventions to follow when using Structured English: • Express all logic in terms of sequential structures, decision structures, or iterations. • Use upper case for keywords such as: IF, THEN, ELSE, DO, DO WHILE, DO UNTIL, PERFORM • Indent blocks of statements to show their hierarchy (nesting) clearly. • When words or phrases have been defined, underline those words or phrases to indicate that they have a specialised, reserved meaning.
  • 34. The Flow of Structured English Plain Structured Pseudocode Programs English English User Analyst Programmer
  • 35. …Structured English The conventions are used in writing structured English: • Imperative Sentences: Store the data in database. • Arithmetic & Relational Operations : Common symbols of mathematics are used in structured English such as- + for add, - for subtraction etc. and =, >=, != etc. are used for relational operations.
  • 36. …Structured English 3. Decision Structures: If Then Else, Select Case 4. Repetion: Loops There are various forms in which structured english can be implemented to solve the problem. e.g. Algorithm, Flowchart, pseudocode.
  • 38. Writing Structured English Repetition Conditions IF … THEN … DO statements … statements … ELSE UNTIL end-condition statements … END IF or or SELECT CASE 1 (conditions) DO WHILE statements … statements … CASE 2 … END DO statements … END SELECT
  • 40. Pseudocode • An outline of a program, written in a form that can easily be converted into real programming statements. • Pseudocode cannot be compiled nor executed, and there are no real formatting or syntax rules.
  • 41. …Pseudocode • It enables the programmer to concentrate on the algorithms without worrying about all the syntactic details of a particular programming language. • Flowcharts can be thought of as a graphical form of pseudocode.
  • 42. Example of Pseudocode Regular code (written in PHP): <?php if (is_valid($cc_number)) { execute_transaction($cc_number, $order); } else { show_failure(); } ?> Pseudocode: if credit card number is valid execute transaction based on number and order else show a generic failure message end if