SlideShare uma empresa Scribd logo
1 de 34
Prepared by:
Mr. Richard R. Basilio
BSECE –T Dip IC
   The programmer’s job can be broken down
    into six programming steps:
    1. Understand the problem

    2. Plan the logic

    3. Code the program

    4. Translate the program into machine language

    5. Test the program

    6. Put the program into production
 Programmers must first understand what it is
  the user wants
 To understand the problem, you must analyze it
 Really understanding the problem may be one of
  the most difficult aspects of programming
     The description of what the user needs may be vague
     The user may not even really know what he or she
      wants
     Users who think they know what they want frequently
      change their minds after seeing sample output
 Programmer plans the steps to the
  program, deciding what steps to include and
  how to order them
 Example
   Planning tour
   Planning party
 The two most common tools
   flowcharts : pictorial representation
   Pseudocode : English-like representation
start
   Flowcharts
   A pictorial representation of              get
    the logical steps it takes to         InputNumber
    solve a problem.
     Uses Standardized Symbols         calculatedAnswer =
                                         InputNumber * 2
     Utilize Formula Notation
     Typically Read from Top to               print
      Bottom or from Left to Right on   calculatedAnswer
      a Page
                                               stop
   Pseudocode
   An English-like representation of the logical steps
    it takes to solve a problem
     pseudo – a prefix that means false
     Short English-Like Statements
     Not Standardized
     Proper use of indentation
   Example    start
                  get InputNumber
                  compute calculatedAnswer as InputNumber times 2
                  print calculatedAnswer
               stop
   Writing the program in one of more than 400
    programming languages
     Pascal, Assembly Language, C, C++, Java…..
   Concentrate on the syntax of the language
     Exact instruction, symbol, …. ?
   Some very experienced programmers
     successfully combining the logic planning and the
      actual instruction writing, or coding of the program, in
      one step
     Writing a cinema scenario
   Objective
     Each computer knows only one language, Machine
      Language.
     High-level Languages must be translated into Machine
      Language
   Need to compiler or interpreter
     Compiler catches every syntax error.
     When writing a program, a programmer might need to
      recompile the code several times
     An executable program is created only when the code
      is free of syntax errors
   Why does it need to be tested ?
     Syntax Errors : by compile
     Logical Errors : by test
   Test
     Executing the program with some sample data
     Seeing whether or not the results are logically correct.
     being tested with many sets of data carefully
   Example                                 Logically incorrect
      start
         get InputNumber
         compute calculatedAnswer as InputNumber times 20
         print calculatedAnswer
      stop
   Once the program is tested adequately, it is
    ready for the organization to use.
   Putting the program into production might
    mean simply running the program once if it
    was written to satisfy a user’s request for a
    special list.
   By wikipedia definition:
       “A flowchart is a schematic representation
    of an algorithm or a stepwise process,
    showing the steps as boxes of various kinds,
    and their order by connecting these with
    arrows.”
       “Flowcharts are used in designing or
    documenting a process or program.”
Start/Stop      Process     Input/Output
(Terminator)   (Rectangle)   (Parallelogram)




 Decision      Connector       Flowlines       Predefined Process
(Diamond)       (Circle)        (Arrows)           (Rectangle)
   Input/Output
       Generalised Input/Output
    Block; reading data from an
    input medium or writing data to
    an output medium. This block       Input/Output
                                       (Parallelogram)
    should be used in situation were
    data is being sent in and out of
    the processor via some sort of
    I/O peripheral.
   Process
        Any process step; an
    operation or group of
    operations that cause a
    change in value, form or       Process
    location of the data. This   (Rectangle)

    can consist of arithmetic
    or logical operators or
    even move commands.
   Flow line
        Sequence of operations
    and direction of data flow;
    arrowheads are required if
    linkage is not left-to-right   Flowlines
    or top-to-bottom.               (Arrows)

    Generally arrowheads are
    included to avoid
    confusion.
   Annotation
       Additional explanation or
    comments. This block is
    used for providing
    additional information to
    any other block in the
    flowchart.
   Decision
        Decision-making or
    switching type of
    operation, usually based on
    a comparison, that
                                   Decision
    determines which of a         (Diamond)

    number of paths should be
    followed.
   Predefined Process
       One or more operation
    defined in more detail
    elsewhere, such as in a
    booklet or on a different
    flowchart, but not on       Predefined Process
                                    (Rectangle)
    another part of the
    flowchart in which this
    symbol appears.
   Terminal
       Terminal point in a
    flowchart – stop, start or
    break in the line of flow.


                        Start/Stop
                       (Terminator)
   Connectors
        Entry to or exit from
    another part of the
    flowchart; if to or from step
    is on another page then the
    page reference should also
    be stated.                      Connector
                                     (Circle)
   Use a standardized flowcharting template,
    with clearly recognizable symbols. Follow ANSI
    recommendations for symbol use.
   Do not crowd or clutter the flowchart, ensure
    proper spacing between symbols.
   Number the pages of your flowchart
    sequentially. Specifically the title of program,
    the date and the author on each separate
    page.
   Chart the main line of data flow in the system
    or program first, then incorporate detail in later
    flowchart.
   Write within symbols avoid using too many
    words. If necessary use the annotation symbol.
   Choose wording to suit the anticipated readers
    of the flowchart.
   Be legible, neatness counts.
   If flowchart becomes complex use connector
    symbols to reduce the number of flow lines.
   Collect incoming and outgoing flow lines so
    that the number of lines entering or leaving a
    symbol are minimized.
 Use the flowchart as a guide when coding;
  change it when necessary to ensure the
  flowchart reflects the steps implemented in the
  code.
 Cross-reference portion of the flowchart to the
  source language code.
 Be consistent with the level of detail shown in
  the flowchart. Do not chart every detail, but do
  not leave out important details.
   Put yourself in the position of the reader; try to
    anticipate the reader’s problems in
    understanding the flowchart.
 Sequence
 If-then-else (Selection)
 While (Repetition)
entrance
 The SEQUENCE process is
  just a series of processes
  carried out one after the
  another.
 Most programs are
  represented at the highest
  level by the sequence ,
  possible with a loop from
                                 exit
  end back to the beginning.
 The If-THEN-ELSE process       entrance
  logically completes the
  binary decision block by
  providing two separate
  processes.
 One of the processes will be
  carried out in the each path
  from the binary decision.
 This is also called
                                    exit
  SELECTION.
 The WHILE process is allow
                                  entrance
  for the representation of a
  conditional loop structure
  within a program.
 The decision to execute the
  process is the loop is made
  prior to the execution of the
  process.
                                   exit
 This is also called
  REPETITION.
Programming process and flowchart

Mais conteúdo relacionado

Mais procurados

Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compilerIffat Anjum
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)Prabin Maharjan
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language adnan usmani
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of cHarish Kumawat
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - IntroductionMuhammad Sanaullah
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing UnitJan Ralph
 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction Sarmad Ali
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programmingmshellman
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program executionRumman Ansari
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
 
basics of compiler design
basics of compiler designbasics of compiler design
basics of compiler designPreeti Katiyar
 

Mais procurados (20)

Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compiler
 
CPU (Central Processing Units)
CPU (Central Processing Units)CPU (Central Processing Units)
CPU (Central Processing Units)
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of c
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Ms word 2007
Ms word 2007Ms word 2007
Ms word 2007
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Unit4
Unit4Unit4
Unit4
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program execution
 
Storage class in C Language
Storage class in C LanguageStorage class in C Language
Storage class in C Language
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
basics of compiler design
basics of compiler designbasics of compiler design
basics of compiler design
 

Destaque

Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchartlotlot
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowchartsnicky_walters
 
COM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & BranchingCOM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & BranchingHemantha Kulathilake
 
Algorithms presentation on Path Matrix, Bell Number and Sorting
Algorithms presentation on Path Matrix, Bell Number and SortingAlgorithms presentation on Path Matrix, Bell Number and Sorting
Algorithms presentation on Path Matrix, Bell Number and SortingRishabh Mehan
 
COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops Hemantha Kulathilake
 
Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming ConceptCma Mohd
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basicsSabik T S
 
Flowchart pseudocode-examples
Flowchart pseudocode-examplesFlowchart pseudocode-examples
Flowchart pseudocode-examplesGautam Roy
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 

Destaque (11)

Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
COM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & BranchingCOM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & Branching
 
COM1407: File Processing
COM1407: File Processing COM1407: File Processing
COM1407: File Processing
 
Algorithms presentation on Path Matrix, Bell Number and Sorting
Algorithms presentation on Path Matrix, Bell Number and SortingAlgorithms presentation on Path Matrix, Bell Number and Sorting
Algorithms presentation on Path Matrix, Bell Number and Sorting
 
COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops
 
Basic Programming Concept
Basic Programming ConceptBasic Programming Concept
Basic Programming Concept
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basics
 
Flowchart pseudocode-examples
Flowchart pseudocode-examplesFlowchart pseudocode-examples
Flowchart pseudocode-examples
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 

Semelhante a Programming process and flowchart

PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptxDivyaKS12
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answersmkengkilili2011
 
final Unit 1-1.pdf
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdfprakashvs7
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
Data Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptxData Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptxChingChingErm
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfSusieMaestre1
 
Data Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptxData Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptxChingChingErm
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptReshuReshma8
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowchartsmoazwinner
 
System programming and implementation
System programming and implementationSystem programming and implementation
System programming and implementationJohn Todora
 
learn computer science.ppt
learn computer science.pptlearn computer science.ppt
learn computer science.pptfaithola1
 

Semelhante a Programming process and flowchart (20)

PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
Fundamentals of-algorithm
Fundamentals of-algorithmFundamentals of-algorithm
Fundamentals of-algorithm
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
 
final Unit 1-1.pdf
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdf
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Data Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptxData Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptx
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
 
UNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptxUNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptx
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Data Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptxData Structures and Algorithms presentation.pptx
Data Structures and Algorithms presentation.pptx
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 
System programming and implementation
System programming and implementationSystem programming and implementation
System programming and implementation
 
Flow charts
Flow chartsFlow charts
Flow charts
 
learn computer science.ppt
learn computer science.pptlearn computer science.ppt
learn computer science.ppt
 

Mais de hermiraguilar

Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming conceptshermiraguilar
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming conceptshermiraguilar
 
Engineering drawing (geometric construction) lesson 4
Engineering drawing (geometric construction) lesson 4Engineering drawing (geometric construction) lesson 4
Engineering drawing (geometric construction) lesson 4hermiraguilar
 
Engineering drawing (introduction of engineering drawing) lesson 1
Engineering drawing (introduction of engineering drawing) lesson 1Engineering drawing (introduction of engineering drawing) lesson 1
Engineering drawing (introduction of engineering drawing) lesson 1hermiraguilar
 
Engineering drawing (engineering lettering) lesson 3
Engineering drawing (engineering lettering) lesson 3Engineering drawing (engineering lettering) lesson 3
Engineering drawing (engineering lettering) lesson 3hermiraguilar
 
Engineering drawing (drafting instruments) lesson 2
Engineering drawing (drafting instruments) lesson 2Engineering drawing (drafting instruments) lesson 2
Engineering drawing (drafting instruments) lesson 2hermiraguilar
 

Mais de hermiraguilar (6)

Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming concepts
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming concepts
 
Engineering drawing (geometric construction) lesson 4
Engineering drawing (geometric construction) lesson 4Engineering drawing (geometric construction) lesson 4
Engineering drawing (geometric construction) lesson 4
 
Engineering drawing (introduction of engineering drawing) lesson 1
Engineering drawing (introduction of engineering drawing) lesson 1Engineering drawing (introduction of engineering drawing) lesson 1
Engineering drawing (introduction of engineering drawing) lesson 1
 
Engineering drawing (engineering lettering) lesson 3
Engineering drawing (engineering lettering) lesson 3Engineering drawing (engineering lettering) lesson 3
Engineering drawing (engineering lettering) lesson 3
 
Engineering drawing (drafting instruments) lesson 2
Engineering drawing (drafting instruments) lesson 2Engineering drawing (drafting instruments) lesson 2
Engineering drawing (drafting instruments) lesson 2
 

Último

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Último (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Programming process and flowchart

  • 1. Prepared by: Mr. Richard R. Basilio BSECE –T Dip IC
  • 2.
  • 3. The programmer’s job can be broken down into six programming steps: 1. Understand the problem 2. Plan the logic 3. Code the program 4. Translate the program into machine language 5. Test the program 6. Put the program into production
  • 4.  Programmers must first understand what it is the user wants  To understand the problem, you must analyze it  Really understanding the problem may be one of the most difficult aspects of programming  The description of what the user needs may be vague  The user may not even really know what he or she wants  Users who think they know what they want frequently change their minds after seeing sample output
  • 5.  Programmer plans the steps to the program, deciding what steps to include and how to order them  Example  Planning tour  Planning party  The two most common tools  flowcharts : pictorial representation  Pseudocode : English-like representation
  • 6. start  Flowcharts  A pictorial representation of get the logical steps it takes to InputNumber solve a problem.  Uses Standardized Symbols calculatedAnswer = InputNumber * 2  Utilize Formula Notation  Typically Read from Top to print Bottom or from Left to Right on calculatedAnswer a Page stop
  • 7. Pseudocode  An English-like representation of the logical steps it takes to solve a problem  pseudo – a prefix that means false  Short English-Like Statements  Not Standardized  Proper use of indentation  Example start get InputNumber compute calculatedAnswer as InputNumber times 2 print calculatedAnswer stop
  • 8. Writing the program in one of more than 400 programming languages  Pascal, Assembly Language, C, C++, Java…..  Concentrate on the syntax of the language  Exact instruction, symbol, …. ?  Some very experienced programmers  successfully combining the logic planning and the actual instruction writing, or coding of the program, in one step  Writing a cinema scenario
  • 9. Objective  Each computer knows only one language, Machine Language.  High-level Languages must be translated into Machine Language  Need to compiler or interpreter  Compiler catches every syntax error.  When writing a program, a programmer might need to recompile the code several times  An executable program is created only when the code is free of syntax errors
  • 10. Why does it need to be tested ?  Syntax Errors : by compile  Logical Errors : by test  Test  Executing the program with some sample data  Seeing whether or not the results are logically correct.  being tested with many sets of data carefully  Example Logically incorrect start get InputNumber compute calculatedAnswer as InputNumber times 20 print calculatedAnswer stop
  • 11. Once the program is tested adequately, it is ready for the organization to use.  Putting the program into production might mean simply running the program once if it was written to satisfy a user’s request for a special list.
  • 12.
  • 13. By wikipedia definition: “A flowchart is a schematic representation of an algorithm or a stepwise process, showing the steps as boxes of various kinds, and their order by connecting these with arrows.” “Flowcharts are used in designing or documenting a process or program.”
  • 14. Start/Stop Process Input/Output (Terminator) (Rectangle) (Parallelogram) Decision Connector Flowlines Predefined Process (Diamond) (Circle) (Arrows) (Rectangle)
  • 15. Input/Output Generalised Input/Output Block; reading data from an input medium or writing data to an output medium. This block Input/Output (Parallelogram) should be used in situation were data is being sent in and out of the processor via some sort of I/O peripheral.
  • 16. Process Any process step; an operation or group of operations that cause a change in value, form or Process location of the data. This (Rectangle) can consist of arithmetic or logical operators or even move commands.
  • 17. Flow line Sequence of operations and direction of data flow; arrowheads are required if linkage is not left-to-right Flowlines or top-to-bottom. (Arrows) Generally arrowheads are included to avoid confusion.
  • 18. Annotation Additional explanation or comments. This block is used for providing additional information to any other block in the flowchart.
  • 19. Decision Decision-making or switching type of operation, usually based on a comparison, that Decision determines which of a (Diamond) number of paths should be followed.
  • 20. Predefined Process One or more operation defined in more detail elsewhere, such as in a booklet or on a different flowchart, but not on Predefined Process (Rectangle) another part of the flowchart in which this symbol appears.
  • 21. Terminal Terminal point in a flowchart – stop, start or break in the line of flow. Start/Stop (Terminator)
  • 22. Connectors Entry to or exit from another part of the flowchart; if to or from step is on another page then the page reference should also be stated. Connector (Circle)
  • 23.
  • 24.
  • 25. Use a standardized flowcharting template, with clearly recognizable symbols. Follow ANSI recommendations for symbol use.  Do not crowd or clutter the flowchart, ensure proper spacing between symbols.  Number the pages of your flowchart sequentially. Specifically the title of program, the date and the author on each separate page.
  • 26. Chart the main line of data flow in the system or program first, then incorporate detail in later flowchart.  Write within symbols avoid using too many words. If necessary use the annotation symbol.  Choose wording to suit the anticipated readers of the flowchart.
  • 27. Be legible, neatness counts.  If flowchart becomes complex use connector symbols to reduce the number of flow lines.  Collect incoming and outgoing flow lines so that the number of lines entering or leaving a symbol are minimized.
  • 28.  Use the flowchart as a guide when coding; change it when necessary to ensure the flowchart reflects the steps implemented in the code.  Cross-reference portion of the flowchart to the source language code.  Be consistent with the level of detail shown in the flowchart. Do not chart every detail, but do not leave out important details.
  • 29. Put yourself in the position of the reader; try to anticipate the reader’s problems in understanding the flowchart.
  • 30.  Sequence  If-then-else (Selection)  While (Repetition)
  • 31. entrance  The SEQUENCE process is just a series of processes carried out one after the another.  Most programs are represented at the highest level by the sequence , possible with a loop from exit end back to the beginning.
  • 32.  The If-THEN-ELSE process entrance logically completes the binary decision block by providing two separate processes.  One of the processes will be carried out in the each path from the binary decision.  This is also called exit SELECTION.
  • 33.  The WHILE process is allow entrance for the representation of a conditional loop structure within a program.  The decision to execute the process is the loop is made prior to the execution of the process. exit  This is also called REPETITION.