SlideShare a Scribd company logo
1.4 Programming Tools
ā€¢
ā€¢
ā€¢
ā€¢

Flowcharts
Pseudocode
Hierarchy Chart
Direction of Numbered NYC Streets
Algorithm
ā€¢ Class Average Algorithm

1
Flowcharts and Pseudocode

2
Programming Tools
ā€¢ Three tools are used to convert
algorithms into computer programs:
ā€¢ Flowchart - Graphically depicts the logical
steps to carry out a task and shows how the
steps relate to each other.
ā€¢ Pseudocode - Uses English-like phrases with
some Visual Basic terms to outline the
program.

3
Problem solving example
ā€¢ How many stamps do you use when
mailing a letter?
ā€¢ One rule of thumb is to use one stamp
for every five sheets of paper or fraction
thereof.

4
Algorithm
1. Request the number of sheets of paper;
call it Sheets. (input)
2. Divide Sheets by 5. (processing)
3. Round the quotient up to the next
highest whole number; call it Stamps.
(processing)
4. Reply with the number Stamps. (output)
5
Flowcharts
ā€¢ Graphically depict the logical steps to
carry out a task and show how the steps
relate to each other.

6
Flowchart symbols

7
Flowchart symbols continued

8
Flowchart
example

9
Pseudocode
ā€¢ Uses English-like phrases to outline the
task.

10
Pseudocode example
Determine the proper number of stamps for a
letter
Read Sheets (input)
Set the number of stamps to Sheets / 5
(processing)
Round the number of stamps up to the next
whole number (processing)
Display the number of stamps (output)
11
Divide-and-conquer method
ā€¢ Used in problem solving ā€“ take a large
problem and break it into smaller
problems solving the small ones first
ā€¢ Breaks a problem down into modules

12
Statement structures
ā€¢ Sequence ā€“ follow instructions from one line
to the next without skipping over any lines
ā€¢ Decision - if the answer to a question is
ā€œYesā€ then one group of instructions is
executed. If the answer is ā€œNo,ā€ then another
is executed
ā€¢ Looping ā€“ a series of instructions are
executed over and over

13
Sequence
flow chart

14
Decision flow chart

15
Looping flow chart

16
Direction of Numbered NYC
Streets Algorithm
ā€¢ Problem: Given a street number of a
one-way street in New York City, decide
the direction of the street, either
eastbound or westbound
ā€¢ Discussion: in New York City even
numbered streets are Eastbound, odd
numbered streets are Westbound
17
Flowchart

18
Pseudocode
Program: Determine the direction of a numbered
NYC street
Get street
If street is even Then
Display Eastbound
Else
Display Westbound
End If
19
Class Average Algorithm
ā€¢ Problem: Calculate and report the grade-point
average for a class
ā€¢ Discussion: The average grade equals the
sum of all grades divided by the number of
students
Output: Average grade
Input: Student grades
Processing: Find the sum of the grades; count
the number of students; calculate average
20
Flowchart

21
Pseudocode
Program: Determine the average grade of a class
Initialize Counter and Sum to 0
Do While there are more data
Get the next Grade
Add the Grade to the Sum
Increment the Counter
Loop
Computer Average = Sum / Counter
Display Average
22
Tips and tricks of flowcharts
ā€¢ Flowcharts are time-consuming to write and
difficult to update
ā€¢ For this reason, professional programmers are
more likely to favor pseudocode and hierarchy
charts
ā€¢ Because flowcharts so clearly illustrate the
logical flow of programming techniques, they
are a valuable tool in the education of
programmers
23
Tips and tricks of pseudocode
ā€¢ There are many styles of pseudocode
ā€¢ Some programmers use an outline form
ā€¢ Some use a form that looks almost like a
programming language
ā€¢ The pseudocode in the case studies of this text
focus on the primary tasks to be performed by
the program and leaves many of the routine
details to be completed during the coding
process
24
URLā€™s for free Flowcharting
software
ā€¢ www.smartdraw.com
ā€¢ www.gliffy.com/uses/flowchartsoftware/
ā€¢ www.breezetree.com/flowchartingsoftware/
Flowchart Software, FREE Flowchart
Examples and Templates ...
ā€¢ www.edrawsoft.com/flowchart.php
25

More Related Content

What's hot

Computer programming - turbo c environment
Computer programming - turbo c environmentComputer programming - turbo c environment
Computer programming - turbo c environment
John Paul Espino
Ā 
PCAL-11-Q1-0101-PF-FINAL.pptx
PCAL-11-Q1-0101-PF-FINAL.pptxPCAL-11-Q1-0101-PF-FINAL.pptx
PCAL-11-Q1-0101-PF-FINAL.pptx
SeanColadilla
Ā 
introduction to functions grade 11(General Math)
introduction to functions grade 11(General Math)introduction to functions grade 11(General Math)
introduction to functions grade 11(General Math)
liza magalso
Ā 
Limits of some transcendental functions
Limits of some transcendental functionsLimits of some transcendental functions
Limits of some transcendental functions
JesusDel2
Ā 
Arithmetic and geometric_sequences
Arithmetic and geometric_sequencesArithmetic and geometric_sequences
Arithmetic and geometric_sequences
Dreams4school
Ā 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1
Ā 
Theory of programming
Theory of programmingTheory of programming
Theory of programming
tcc_joemarie
Ā 
What is turbo c and how it works
What is turbo c and how it worksWhat is turbo c and how it works
What is turbo c and how it works
Mark John Lado, MIT
Ā 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Sachin Goyani
Ā 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
Ā 
History of programming
History of programmingHistory of programming
History of programmingSharwin Calimlim
Ā 
Mathematics 9 Lesson 4-A: Direct Variation
Mathematics 9 Lesson 4-A: Direct VariationMathematics 9 Lesson 4-A: Direct Variation
Mathematics 9 Lesson 4-A: Direct Variation
Juan Miguel Palero
Ā 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
fika sweety
Ā 
Spreadhsheets 1
Spreadhsheets 1Spreadhsheets 1
Spreadhsheets 1Jason Hando
Ā 
General Mathematics - Composition of Functions
General Mathematics - Composition of FunctionsGeneral Mathematics - Composition of Functions
General Mathematics - Composition of Functions
Juan Miguel Palero
Ā 
Program design and problem solving techniques
Program design and problem solving techniquesProgram design and problem solving techniques
Program design and problem solving techniques
Dokka Srinivasu
Ā 
Ellipse
EllipseEllipse
Ellipse
John Sacramento
Ā 
Introduction to Flowchart
Introduction to FlowchartIntroduction to Flowchart
Introduction to Flowchart
ChristopherEsteban2
Ā 
Lesson #1 (creating ethernet cable)
Lesson #1 (creating ethernet cable)Lesson #1 (creating ethernet cable)
Lesson #1 (creating ethernet cable)
Sophia Llorente
Ā 

What's hot (20)

Computer programming - turbo c environment
Computer programming - turbo c environmentComputer programming - turbo c environment
Computer programming - turbo c environment
Ā 
PCAL-11-Q1-0101-PF-FINAL.pptx
PCAL-11-Q1-0101-PF-FINAL.pptxPCAL-11-Q1-0101-PF-FINAL.pptx
PCAL-11-Q1-0101-PF-FINAL.pptx
Ā 
introduction to functions grade 11(General Math)
introduction to functions grade 11(General Math)introduction to functions grade 11(General Math)
introduction to functions grade 11(General Math)
Ā 
Limits of some transcendental functions
Limits of some transcendental functionsLimits of some transcendental functions
Limits of some transcendental functions
Ā 
Arithmetic and geometric_sequences
Arithmetic and geometric_sequencesArithmetic and geometric_sequences
Arithmetic and geometric_sequences
Ā 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
Ā 
Theory of programming
Theory of programmingTheory of programming
Theory of programming
Ā 
What is turbo c and how it works
What is turbo c and how it worksWhat is turbo c and how it works
What is turbo c and how it works
Ā 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Ā 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
Ā 
History of programming
History of programmingHistory of programming
History of programming
Ā 
Mathematics 9 Lesson 4-A: Direct Variation
Mathematics 9 Lesson 4-A: Direct VariationMathematics 9 Lesson 4-A: Direct Variation
Mathematics 9 Lesson 4-A: Direct Variation
Ā 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
Ā 
Spreadhsheets 1
Spreadhsheets 1Spreadhsheets 1
Spreadhsheets 1
Ā 
General Mathematics - Composition of Functions
General Mathematics - Composition of FunctionsGeneral Mathematics - Composition of Functions
General Mathematics - Composition of Functions
Ā 
Program design and problem solving techniques
Program design and problem solving techniquesProgram design and problem solving techniques
Program design and problem solving techniques
Ā 
Parabola
ParabolaParabola
Parabola
Ā 
Ellipse
EllipseEllipse
Ellipse
Ā 
Introduction to Flowchart
Introduction to FlowchartIntroduction to Flowchart
Introduction to Flowchart
Ā 
Lesson #1 (creating ethernet cable)
Lesson #1 (creating ethernet cable)Lesson #1 (creating ethernet cable)
Lesson #1 (creating ethernet cable)
Ā 

Viewers also liked

Philosophy of man ppt. part 1
Philosophy of man ppt. part 1Philosophy of man ppt. part 1
Philosophy of man ppt. part 1cassandra0012345
Ā 
nestor catalan
nestor catalannestor catalan
nestor catalannestorcatalan
Ā 
TEACHING WITH VISUAL SYMBOLS
TEACHING WITH VISUAL SYMBOLSTEACHING WITH VISUAL SYMBOLS
TEACHING WITH VISUAL SYMBOLSjoyannbarredo35
Ā 
Algorithms
AlgorithmsAlgorithms
Algorithms
Liam Dunphy
Ā 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to PseudocodeDamian T. Gordon
Ā 
Algorithm Designs - Control Structures
Algorithm Designs - Control StructuresAlgorithm Designs - Control Structures
Algorithm Designs - Control Structures
hatredai
Ā 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
Jordan Delacruz
Ā 

Viewers also liked (8)

Philosophy of man ppt. part 1
Philosophy of man ppt. part 1Philosophy of man ppt. part 1
Philosophy of man ppt. part 1
Ā 
Pythagoras
Pythagoras Pythagoras
Pythagoras
Ā 
nestor catalan
nestor catalannestor catalan
nestor catalan
Ā 
TEACHING WITH VISUAL SYMBOLS
TEACHING WITH VISUAL SYMBOLSTEACHING WITH VISUAL SYMBOLS
TEACHING WITH VISUAL SYMBOLS
Ā 
Algorithms
AlgorithmsAlgorithms
Algorithms
Ā 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
Ā 
Algorithm Designs - Control Structures
Algorithm Designs - Control StructuresAlgorithm Designs - Control Structures
Algorithm Designs - Control Structures
Ā 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
Ā 

Similar to Flowcharts

Flowcharts (1)
Flowcharts (1)Flowcharts (1)
Flowcharts (1)
Emmanuel Alimpolos
Ā 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
Dr Piyush Charan
Ā 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.pptBCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
Ā 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11
Ā 
Qbasic notes
Qbasic notesQbasic notes
Qbasic notes
NasirRohail1
Ā 
2. Algorithms Representations (C++).pptx
2. Algorithms Representations (C++).pptx2. Algorithms Representations (C++).pptx
2. Algorithms Representations (C++).pptx
ssuser4d77b2
Ā 
Pseudo code.pptx
Pseudo code.pptxPseudo code.pptx
Pseudo code.pptx
Chaya64047
Ā 
Pj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentalsPj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentals
SasidharaRaoMarrapu
Ā 
C++ programming program design including data structures
C++ programming program design including data structures C++ programming program design including data structures
C++ programming program design including data structures
Ahmad Idrees
Ā 
2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem
Frankie Jones
Ā 
Map reduce programming model to solve graph problems
Map reduce programming model to solve graph problemsMap reduce programming model to solve graph problems
Map reduce programming model to solve graph problemsNishant Gandhi
Ā 
Flowchart design for algorithms
Flowchart design for algorithmsFlowchart design for algorithms
Flowchart design for algorithms
Kuppusamy P
Ā 
Chapter #1 overview of programming and problem solving
Chapter #1 overview of programming and problem solvingChapter #1 overview of programming and problem solving
Chapter #1 overview of programming and problem solving
Abdul Shah
Ā 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Rabin BK
Ā 
Algorithm & Flowchart.pdf
Algorithm & Flowchart.pdfAlgorithm & Flowchart.pdf
Algorithm & Flowchart.pdf
Vpmv
Ā 
Algorithm week2(technovation)
Algorithm week2(technovation)Algorithm week2(technovation)
Algorithm week2(technovation)
than sare
Ā 
Cse115 lecture03problemsolving
Cse115 lecture03problemsolvingCse115 lecture03problemsolving
Cse115 lecture03problemsolving
Md. Ashikur Rahman
Ā 
Proble, Solving & Automation
Proble, Solving & AutomationProble, Solving & Automation
Proble, Solving & Automation
Janani Satheshkumar
Ā 
UNIT- 3-FOC.ppt
UNIT- 3-FOC.pptUNIT- 3-FOC.ppt
UNIT- 3-FOC.ppt
KalaivaniRMECLectCSE
Ā 

Similar to Flowcharts (20)

Flowcharts (1)
Flowcharts (1)Flowcharts (1)
Flowcharts (1)
Ā 
Flowcharts
FlowchartsFlowcharts
Flowcharts
Ā 
Flowcharts and pseudocodes
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
Ā 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.pptBCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Ā 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
Ā 
Qbasic notes
Qbasic notesQbasic notes
Qbasic notes
Ā 
2. Algorithms Representations (C++).pptx
2. Algorithms Representations (C++).pptx2. Algorithms Representations (C++).pptx
2. Algorithms Representations (C++).pptx
Ā 
Pseudo code.pptx
Pseudo code.pptxPseudo code.pptx
Pseudo code.pptx
Ā 
Pj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentalsPj01 1-computer and programming fundamentals
Pj01 1-computer and programming fundamentals
Ā 
C++ programming program design including data structures
C++ programming program design including data structures C++ programming program design including data structures
C++ programming program design including data structures
Ā 
2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem
Ā 
Map reduce programming model to solve graph problems
Map reduce programming model to solve graph problemsMap reduce programming model to solve graph problems
Map reduce programming model to solve graph problems
Ā 
Flowchart design for algorithms
Flowchart design for algorithmsFlowchart design for algorithms
Flowchart design for algorithms
Ā 
Chapter #1 overview of programming and problem solving
Chapter #1 overview of programming and problem solvingChapter #1 overview of programming and problem solving
Chapter #1 overview of programming and problem solving
Ā 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Ā 
Algorithm & Flowchart.pdf
Algorithm & Flowchart.pdfAlgorithm & Flowchart.pdf
Algorithm & Flowchart.pdf
Ā 
Algorithm week2(technovation)
Algorithm week2(technovation)Algorithm week2(technovation)
Algorithm week2(technovation)
Ā 
Cse115 lecture03problemsolving
Cse115 lecture03problemsolvingCse115 lecture03problemsolving
Cse115 lecture03problemsolving
Ā 
Proble, Solving & Automation
Proble, Solving & AutomationProble, Solving & Automation
Proble, Solving & Automation
Ā 
UNIT- 3-FOC.ppt
UNIT- 3-FOC.pptUNIT- 3-FOC.ppt
UNIT- 3-FOC.ppt
Ā 

Recently uploaded

Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
Ā 
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
UiPathCommunity
Ā 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
Ā 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
Ā 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
Ā 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
Ā 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
Ā 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
Ā 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
Ā 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
Ā 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
Ā 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
Ā 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
Ā 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
Ā 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
Ā 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
Ā 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
Ā 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
Ā 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
Ā 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
Ā 

Recently uploaded (20)

Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Ā 
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Ā 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Ā 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Ā 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
Ā 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Ā 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Ā 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Ā 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Ā 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
Ā 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Ā 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Ā 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Ā 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Ā 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
Ā 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Ā 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
Ā 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Ā 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Ā 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Ā 

Flowcharts

  • 1. 1.4 Programming Tools ā€¢ ā€¢ ā€¢ ā€¢ Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm ā€¢ Class Average Algorithm 1
  • 3. Programming Tools ā€¢ Three tools are used to convert algorithms into computer programs: ā€¢ Flowchart - Graphically depicts the logical steps to carry out a task and shows how the steps relate to each other. ā€¢ Pseudocode - Uses English-like phrases with some Visual Basic terms to outline the program. 3
  • 4. Problem solving example ā€¢ How many stamps do you use when mailing a letter? ā€¢ One rule of thumb is to use one stamp for every five sheets of paper or fraction thereof. 4
  • 5. Algorithm 1. Request the number of sheets of paper; call it Sheets. (input) 2. Divide Sheets by 5. (processing) 3. Round the quotient up to the next highest whole number; call it Stamps. (processing) 4. Reply with the number Stamps. (output) 5
  • 6. Flowcharts ā€¢ Graphically depict the logical steps to carry out a task and show how the steps relate to each other. 6
  • 10. Pseudocode ā€¢ Uses English-like phrases to outline the task. 10
  • 11. Pseudocode example Determine the proper number of stamps for a letter Read Sheets (input) Set the number of stamps to Sheets / 5 (processing) Round the number of stamps up to the next whole number (processing) Display the number of stamps (output) 11
  • 12. Divide-and-conquer method ā€¢ Used in problem solving ā€“ take a large problem and break it into smaller problems solving the small ones first ā€¢ Breaks a problem down into modules 12
  • 13. Statement structures ā€¢ Sequence ā€“ follow instructions from one line to the next without skipping over any lines ā€¢ Decision - if the answer to a question is ā€œYesā€ then one group of instructions is executed. If the answer is ā€œNo,ā€ then another is executed ā€¢ Looping ā€“ a series of instructions are executed over and over 13
  • 17. Direction of Numbered NYC Streets Algorithm ā€¢ Problem: Given a street number of a one-way street in New York City, decide the direction of the street, either eastbound or westbound ā€¢ Discussion: in New York City even numbered streets are Eastbound, odd numbered streets are Westbound 17
  • 19. Pseudocode Program: Determine the direction of a numbered NYC street Get street If street is even Then Display Eastbound Else Display Westbound End If 19
  • 20. Class Average Algorithm ā€¢ Problem: Calculate and report the grade-point average for a class ā€¢ Discussion: The average grade equals the sum of all grades divided by the number of students Output: Average grade Input: Student grades Processing: Find the sum of the grades; count the number of students; calculate average 20
  • 22. Pseudocode Program: Determine the average grade of a class Initialize Counter and Sum to 0 Do While there are more data Get the next Grade Add the Grade to the Sum Increment the Counter Loop Computer Average = Sum / Counter Display Average 22
  • 23. Tips and tricks of flowcharts ā€¢ Flowcharts are time-consuming to write and difficult to update ā€¢ For this reason, professional programmers are more likely to favor pseudocode and hierarchy charts ā€¢ Because flowcharts so clearly illustrate the logical flow of programming techniques, they are a valuable tool in the education of programmers 23
  • 24. Tips and tricks of pseudocode ā€¢ There are many styles of pseudocode ā€¢ Some programmers use an outline form ā€¢ Some use a form that looks almost like a programming language ā€¢ The pseudocode in the case studies of this text focus on the primary tasks to be performed by the program and leaves many of the routine details to be completed during the coding process 24
  • 25. URLā€™s for free Flowcharting software ā€¢ www.smartdraw.com ā€¢ www.gliffy.com/uses/flowchartsoftware/ ā€¢ www.breezetree.com/flowchartingsoftware/ Flowchart Software, FREE Flowchart Examples and Templates ... ā€¢ www.edrawsoft.com/flowchart.php 25

Editor's Notes

  1. We need a loop to read and then add (accumulate) the grades for each student in the class. Inside the loop, we also need to total (count) the number of students in the class. See Figures 2.8 to 2.10. grade = sum of grades / number of students.