SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming conceptshermiraguilar
 
Post-Translational Modifications
Post-Translational ModificationsPost-Translational Modifications
Post-Translational ModificationsAisha Kalsoom
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartRabin BK
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithemehsanullah786
 
Planning to computer program(southeast university)
Planning to computer program(southeast university)Planning to computer program(southeast university)
Planning to computer program(southeast university)Arup deb nath
 
3. basic organization of a computer
3. basic organization of a computer3. basic organization of a computer
3. basic organization of a computerSHIKHA GAUTAM
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programmingTejaswiB4
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Algorithm Design & Implementation
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & ImplementationGaditek
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to ProgrammingChaffey College
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithmrajkumar1631010038
 
Transcription (Eukaryotic and prokaryotic )
Transcription (Eukaryotic and prokaryotic )Transcription (Eukaryotic and prokaryotic )
Transcription (Eukaryotic and prokaryotic )MujeebUrRehman70
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
 

Was ist angesagt? (20)

Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming concepts
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Post-Translational Modifications
Post-Translational ModificationsPost-Translational Modifications
Post-Translational Modifications
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
 
Planning to computer program(southeast university)
Planning to computer program(southeast university)Planning to computer program(southeast university)
Planning to computer program(southeast university)
 
3. basic organization of a computer
3. basic organization of a computer3. basic organization of a computer
3. basic organization of a computer
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programming
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Algorithm Design & Implementation
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & Implementation
 
Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
 
Transcription (Eukaryotic and prokaryotic )
Transcription (Eukaryotic and prokaryotic )Transcription (Eukaryotic and prokaryotic )
Transcription (Eukaryotic and prokaryotic )
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Rna polymerase
Rna polymeraseRna polymerase
Rna polymerase
 
c-programming
c-programmingc-programming
c-programming
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
 
Perl Introduction
Perl IntroductionPerl Introduction
Perl Introduction
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
 

Andere mochten auch

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
 

Andere mochten auch (10)

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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
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
 
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
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
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
 
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
 
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
 
"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
 
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
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
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
 
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
 
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
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
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
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Kürzlich hochgeladen (20)

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
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
 
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
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
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
 
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...
 
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
 
"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
 
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
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
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
 
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
 
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
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
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
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

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.