SlideShare a Scribd company logo
1
Introduction to
Flowcharting
Computer Science Principles
2020-2021
STEM Education
• Agenda
• Lo C S. 1.04 w5 w6 Identify and
explain the problem-solving
steps. • Compare/contrast
ideas within algorithms
(pseudo-code and
Flowcharts) to apply logical
thinking in problem-solving.
Essential Questions
• What conditions, attitudes, and
behaviors support creativity and
innovative thinking?
• 2- How are flowcharts used in
planning a process used to solve
a step-by-step solution to a given
problem?
Designing Software With Flowcharts
And Pseudo-code
In this section you will learn two
different ways of laying out a computer
algorithm independent of programming
language
A Model For Creating Computer
Software
• Specify the problem
• Develop a design
(algorithm)
• Implement the design
• Maintain the design
What Is An Algorithm?
• The steps needed to solve a
problem
• Characteristics
–Specific
–Unambiguous ‫الغموض‬ ‫من‬ ‫خالية‬
–Language independent
Developing An Algorithm: Top-
Down Approach
General approach
Approach
to part of
problem
Specific
steps
Specific
steps
Specific
steps
Specific
steps
Approach
to part of
problem
Approach
to part of
problem
Abstract
Particular
Top
Bottom
Figure extracted from Computer Science
Illuminated by Dale N. and Lewis J.
The algorithm
Techniques For Laying Out An
Algorithm
•Pseudo-code
•Flowcharts
Pseudo-Code
• Employs 'programming-like'
statements to depict ‫تصف‬ the
algorithm
• No standard format (language
independent)
Pseudo-Code Statements
• Output
• Input
• Process
• Decision
• Repetition
Statements are carried out in order
Example: calling up a friend
1) Look up telephone number
2) Enter telephone number
3) Wait for someone to answer
: :
Listen to this video about
flowchart in general
• Listen to this video about flowchart
• Off line
• On line
12
13
What is a Flowchart?
• A flowchart is a
diagram that depicts
the “flow” of a
program.
• The figure shown here
is a flowchart for the
pay-calculating
program shown in
Program 1-1.
START
Display message
“How many
hours did you
work?”
Read Hours
Display message
“How much do
you get paid per
hour?”
Read PayRate
Multiply Hours
by PayRate.
Store result in
GrossPay.
Display
GrossPay
END
14
Basic Flowchart
Symbols
• Terminals
– represented by rounded
rectangles
– indicate a starting or
ending point
START
Display message
“How many
hours did you
work?”
Read Hours
Display message
“How much do
you get paid per
hour?”
Read PayRate
Multiply Hours
by PayRate.
Store result in
GrossPay.
Display
GrossPay
END
Terminal
START
END Terminal
15
Basic Flowchart
Symbols
• Input/Output Operations
– represented by
parallelograms
– indicate an input or output
operation
START
Display message
“How many
hours did you
work?”
Read Hours
Display message
“How much do
you get paid per
hour?”
Read PayRate
Multiply Hours
by PayRate.
Store result in
GrossPay.
Display
GrossPay
END
Display message
“How many
hours did you
work?”
Read Hours
Input/Output
Operation
16
Basic Flowchart
Symbols
• Processes
– represented by rectangles
– indicates a process such as
a mathematical
computation or variable
assignment
START
Display message
“How many
hours did you
work?”
Read Hours
Display message
“How much do
you get paid per
hour?”
Read PayRate
Multiply Hours
by PayRate.
Store result in
GrossPay.
Display
GrossPay
END
Multiply Hours
by PayRate.
Store result in
GrossPay.
Process
17
Four Flowchart Structures
• Sequence
• Decision
• Repetition
• Case
18
Sequence Structure
• A series of actions are performed in sequence
• The pay-calculating example was a sequence
flowchart.
19
Decision Structure
• The flowchart segment below shows how a decision
structure is expressed in C++ as an if/else statement.
YESNO
x < y?
Calculate a
as x times 2.
Calculate a
as x plus y.
if (x < y)
a = x * 2;
else
a = x + y;
Flowchart C++ Code
20
Decision Structure
• The flowchart segment below shows a decision structure
with only one action to perform. It is expressed as an if
statement in C++ code.
if (x < y)
a = x * 2;
Flowchart C++ Code
YESNO
x < y?
Calculate a
as x times 2.
21
Repetition Structure
• The flowchart segment below shows a repetition structure
expressed in C++ as a while loop.
while (x < y)
x++;
Flowchart C++ Code
x < y? Add 1 to x
YES
22
Controlling a Repetition
Structure
• The action performed by a repetition structure must
eventually cause the loop to terminate. Otherwise, an
infinite loop is created.
• In this flowchart segment, x is never changed. Once the
loop starts, it will never end.
• QUESTION: How can this
flowchart be modified so
it is no longer an infinite
loop?
x < y? Display x
YES
23
Controlling a Repetition
Structure
• ANSWER: By adding an action within the repetition that
changes the value of x.
x < y? Display x Add 1 to x
YES
24
Case Structure
CASE
years_employed
1 2 3 Other
bonus = 100 bonus = 200 bonus = 400 bonus = 800
If years_employed = 1,
bonus is set to 100
If years_employed = 2,
bonus is set to 200
If years_employed = 3,
bonus is set to 400
If years_employed is
any other value, bonus
is set to 800
25
Connectors
A
ASTART
END
•The “A” connector
indicates that the second
flowchart segment begins
where the first segment
ends.
26
Modules
•The position of the module
symbol indicates the point the
module is executed.
•A separate flowchart can be
constructed for the module.
START
END
Read Input.
Call calc_pay
function.
Display results.
27
• This flowchart segment
shows two decision
structures combined.
Combining Structures
Display “x is
within limits.”
Display “x is
outside the limits.”
YESNO
x > min?
x < max?
YESNO
Display “x is
outside the limits.”
28
Review
• What do each of the following symbols
represent?
(Answer on next slide)
29
Answer
• What do each of the following symbols
represent?
Terminal
Input/Output
Operation
Process
Decision
Connector
Module
30
Review
• Name the four flowchart structures.
(Answer on next slide)
31
Answer
• Sequence
• Decision
• Repetition
• Case
32
• What type of structure is this?
Review
(Answer on next slide)
33
Answer
• Repetition
34
• What type of structure is this?
Review
(Answer on next slide)
35
Answer
• Sequence
36
• What type of structure is this?
Review
(Answer on next slide)
37
Answer
• Case
38
• What type of structure is this?
Review
(Answer on next slide)
39
Answer
• Decision
Listen to this video about how to
draw flowchart
• Listen to this video about flowchart
• Off line
• On line
40
How to create flowchart
• You can design flowchart by hand in a paper ,
• Using MS word , MS power point
• Using on line software for designing flowcharts
• Using off line software for designing flowchart
41
42
43
44
Examples ???
45
Listen to this video about
Animated EDP Flow Chart
• Listen to this video about flowchart
• Off line
• On line
46
Summary
• Laying out an algorithm using flowcharts
and pseudo-code
• Learning basic elements of algorithms:
– Input
– Output
– Decision-Making
– Repetition
– Processes
– Learning basic elements of flow chart
References
• https://www.edrawsoft.com/explain-
algorithm-flowchart.php
http://www.breezetree.com/article-excel-
flowchart-shapes.htm
https://www.geeksforgeeks.org/difference-
between-algorithm-pseudocode-and-
program/
• http://www.asfa.k12.al.us/ourpages/auto/201
4/7/29/35696140/Flowcharting.ppt
• https://youtu.be/8bIy17ZBFWs
Exit ticket
• Write about 2 new tips
you learned today
49
Home work
Draw flow chart as pre solving for your
estimated capstone project
Note you can use this flow chart in your
capstone portfolio
50
• Collected By Osama Ghandour
51
52

More Related Content

PPT
Design pseudo codeweek 6 2019 -2020
PPTX
Programming fundamentals lecture 2 of c
PPT
Introduction to problem solving in c++
PPT
Fundamental Programming Lect 3
PPT
Fundamental Programming Lect 2
PDF
Problem solving (C++ Programming)
PPT
8.2 approach in problem solving (9 hour)
PPTX
Algorithm and flowchart
Design pseudo codeweek 6 2019 -2020
Programming fundamentals lecture 2 of c
Introduction to problem solving in c++
Fundamental Programming Lect 3
Fundamental Programming Lect 2
Problem solving (C++ Programming)
8.2 approach in problem solving (9 hour)
Algorithm and flowchart

What's hot (18)

PPT
Fundamental Programming Lect 5
PPTX
Flowchart and algorithm
PPT
Fundamental Programming Lect 4
PPTX
Dynamic Programming: Smith-Waterman
PPTX
Chapter 6 algorithms and flow charts
PPT
Flowchart
PDF
1153 algorithms%20and%20flowcharts
PPTX
Basic Algorithm @PPSC(1)
PPTX
Programming flowcharts for C Language
PDF
Understanding computer vision with Deep Learning
PPTX
Flowchart Grade 10
PPT
Algorithms and flowcharts1
PPT
Dynamic programming 2
PPT
Cs 1114 - lecture-3
PPTX
Elements of Dynamic Programming
PDF
Neural networks with python
PDF
Daa chapter 1
Fundamental Programming Lect 5
Flowchart and algorithm
Fundamental Programming Lect 4
Dynamic Programming: Smith-Waterman
Chapter 6 algorithms and flow charts
Flowchart
1153 algorithms%20and%20flowcharts
Basic Algorithm @PPSC(1)
Programming flowcharts for C Language
Understanding computer vision with Deep Learning
Flowchart Grade 10
Algorithms and flowcharts1
Dynamic programming 2
Cs 1114 - lecture-3
Elements of Dynamic Programming
Neural networks with python
Daa chapter 1
Ad

Similar to Flow charts week 5 2020 2021 (20)

PPT
Flowcharting week 5 2019 2020
PPTX
Flow chart programming
PPT
introduction to flowcharting complete.ppt
PPTX
Pseudo code.pptx
PPTX
PPS_Unit 1.pptx
PDF
Algorithm.pdf
PPTX
1. Problem Solving Techniques and Data Structures.pptx
PPTX
lab-8 (1).pptx
PPT
Flowcharting
PPTX
Class[1][23ed may] [algorithms]
PPTX
Programming in C - Problem Solving using C
PPT
Grade 10 flowcharting
PPTX
Lec-ProblemSolving.pptx
PPTX
Problem-solving and design 1.pptx
PPTX
problemsolving ppt computer scince .pptx
PPTX
Software_Introduction and Screen shot guidelines.pptx
PDF
Cse115 lecture03problemsolving
PDF
CSC1100 - Chapter12 - Flow Charts
PPTX
Algorithm and C code related to data structure
Flowcharting week 5 2019 2020
Flow chart programming
introduction to flowcharting complete.ppt
Pseudo code.pptx
PPS_Unit 1.pptx
Algorithm.pdf
1. Problem Solving Techniques and Data Structures.pptx
lab-8 (1).pptx
Flowcharting
Class[1][23ed may] [algorithms]
Programming in C - Problem Solving using C
Grade 10 flowcharting
Lec-ProblemSolving.pptx
Problem-solving and design 1.pptx
problemsolving ppt computer scince .pptx
Software_Introduction and Screen shot guidelines.pptx
Cse115 lecture03problemsolving
CSC1100 - Chapter12 - Flow Charts
Algorithm and C code related to data structure
Ad

More from Osama Ghandour Geris (20)

PPTX
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
PPT
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
PPT
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
PPT
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
PPT
Python week 7 8 2019-2020 for grade 10
PPT
Python week 6 2019 2020 for grade 10
PPT
Python week 5 2019 2020 for g10 by eng.osama ghandour
PPT
Python week 4 2019 2020 for g10 by eng.osama ghandour
PPTX
Programming intro variables constants - arithmetic and assignment operators
PPT
Mobile appliaction w android week 1 by osama
PPT
Python week 1 2020-2021
PPT
6 css week12 2020 2021 for g10
PPT
Css week11 2020 2021 for g10 by eng.osama ghandour
PPTX
Cooding history
PPT
Computer networks--network
PPTX
How to print a sketch up drawing in 3d
PPT
Google sketch up-tutorial
PPTX
7 types of presentation styles on line
PPT
Php introduction
PPT
How to use common app
functions in python By Eng. Osama Ghandour الدوال فى البايثون مع مهندس اسامه ...
Python week 5 2019-2020 for G10 by Eng.Osama Ghandour.ppt
Python cs.1.12 week 10 2020 2021 covid 19 for g10 by eng.osama mansour
Python cs.1.12 week 9 10 2020-2021 covid 19 for g10 by eng.osama ghandour
Python week 7 8 2019-2020 for grade 10
Python week 6 2019 2020 for grade 10
Python week 5 2019 2020 for g10 by eng.osama ghandour
Python week 4 2019 2020 for g10 by eng.osama ghandour
Programming intro variables constants - arithmetic and assignment operators
Mobile appliaction w android week 1 by osama
Python week 1 2020-2021
6 css week12 2020 2021 for g10
Css week11 2020 2021 for g10 by eng.osama ghandour
Cooding history
Computer networks--network
How to print a sketch up drawing in 3d
Google sketch up-tutorial
7 types of presentation styles on line
Php introduction
How to use common app

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Complications of Minimal Access Surgery at WLH
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
master seminar digital applications in india
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Cell Types and Its function , kingdom of life
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
01-Introduction-to-Information-Management.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
Institutional Correction lecture only . . .
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Insiders guide to clinical Medicine.pdf
VCE English Exam - Section C Student Revision Booklet
Complications of Minimal Access Surgery at WLH
TR - Agricultural Crops Production NC III.pdf
Pre independence Education in Inndia.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
master seminar digital applications in india
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
Cell Types and Its function , kingdom of life
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
01-Introduction-to-Information-Management.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O5-L3 Freight Transport Ops (International) V1.pdf

Flow charts week 5 2020 2021