1.4 Flowcharts and Problem-Solving
1.4 Flowcharts and Problem-Solving
ED
HK
(J
at
Bh
al
qb
.I
.M
By
FLOWCHARTS AND
of
Prof. Muhammad Iqbal Bhat
Pr
)
ED
HK
(J
at
Topics
Bh
al
Flowchart Elements,
qb
.I
.M
of
Pr
Problem-Solving Through
Flowcharts
Flowcharts:
)
ED
JK H
(
Bhat
)
al
ED
I q b
. A flowchart is a visual representation of a process or algorithm,
.M
H
o f
Pr
K
using symbols and arrows to show the flow of steps.
(J
at
Bh
al
qb
Flowcharts are commonly used in programming, engineering,
.I
business, and other fields to help communicate complex processes.
.M
of
Pr
)
ED
They help identify potential issues and errors in the software development process, allowing for early intervention and
correction.
KH
(J
Flowcharts can be used to improve collaboration between team members, as everyone can see and understand the process
at
being used.
Bh
al
They help ensure consistency in the software development process by providing a standardized framework for development.
qb
.I
.M
Flowcharts can be used to create documentation that can be used for future reference, troubleshooting, or training.
of
Pr
They can help save time and resources by identifying areas where the process can be streamlined or improved.
Flowcharts can be used to demonstrate the software development process to stakeholders, such as clients or management,
helping to build trust and confidence in the development process.
Types of Flowcharts:
Business Process Flowchart: A
Programming Flowchart: A
Simple Flowchart: A simple business process flowchart can be
programming flowchart can be used
flowchart can be used to show the used to show the steps involved in
to show the logic of a program or
steps involved in a process, such as a business process, such as the
algorithm, such as the steps
)
the steps for making a cup of tea. steps involved in hiring a new
ED
involved in a sorting algorithm.
employee.
K H
(J
at
Decision-Making Flowchart: A Quality Control Flowchart: A
Network Flowchart: A network
Bh
decision-making flowchart can be quality control flowchart can be
flowchart can be used to show the
used to show the steps involved in used to show the steps involved in
flow of data through a network,
al
making a decision, such as whether ensuring the quality of a product or
such as the steps involved in
qb
to buy a new car or repair an old service, such as the steps involved
sending an email.
.I
one. in inspecting a car before it is sold.
.M
of
Pr
) Troubleshooting Flowchart: A
HED troubleshooting flowchart can be
J K
h at( used to show the steps involved in
identifying and resolving issues,
a l B
I q b such as the steps involved in
M . diagnosing a computer problem.
f .
Pro
FLOWCHART
ELEMENTS
Pr
of
.M
.I
qb
al
Bh
at
(J
K H
ED
)
Flowchart Elements
)
ED
K H
(J
at
Bh
al
qb
.I
START/END: INDICATES CONNECTOR: INDICATES PROCESS: REPRESENTS A DECISION: REPRESENTS A INPUT/OUTPUT:
.M
THE BEGINNING AND END THE FLOW OF THE STEP OR ACTION TO BE DECISION POINT IN THE REPRESENTS THE INPUT OR
OF THE PROCESS OR PROCESS OR ALGORITHM TAKEN IN THE PROCESS. PROCESS, WHERE A YES/NO OUTPUT OF DATA OR
ALGORITHM.
CHART.
of
TO ANOTHER PART OF THE OR TRUE/FALSE CHOICE IS
MADE.
INFORMATION IN THE
PROCESS.
Pr
Flowchart Elements
)
ED
K H
(J
at
Bh
ANNOTATION / COMMENT PREDEFINED PROCESS ON-PAGE CONNECTOR OFF-PAGE CONNECTOR DELAY SYMBOL: ANY
SYMBOL: INDICATES SYMBOL: SHOWS NAMED SYMBOL ARE PAIRS OF ON- SYMBOL: AN OFF-PAGE DELAY PERIOD THAT IS
al
ADDITIONAL PROCESS WHICH IS PAGE CONNECTER ARE CONNECTOR IS USED PART OF A PROCESS
qb
INFORMATION REGARDING DEFINED ELSEWHERE. USED TO REPLACE LONG WHEN THE TARGET IS ON
A STEP IN A PROCESS.. LINES ON A FLOWCHART ANOTHER PAGE. READ
.I
PAGE. OUR FLOWCHART
.M
CONNECTOR GUIDE FOR
MORE INFORMATION ON
of HOW ON-PAGE AND OFF-
Pr
PAGE CONNECTORS
WORK.
Flowchart Elements
)
ED
KH
(J
at
Bh
ALTERNATE PROCESS DATA SYMBOL: DATA DOCUMENT SYMBOL: A MULTI-DOCUMENT DISPLAY SYMBOL: A
SYMBOL: AN ALTERNATE INPUT OR OUTPUT DOCUMENT SYMBOL: MULTIPLE MACHINE DISPLAY
al
TO THE NORMAL PROCESS DOCUMENTS
qb
STEP. FLOW LINES TO AN
ALTERNATE PROCESS
.I
BLOCK IS USUALLY
.M
DASHED.
of
Pr
MOST
)
ED
COMMON
HK
(J
FLOWCHART
at
Bh
SYMBOLS
al
qb
.I
.M
of
Pr
Problem-Solving Through Flowcharts
Define the problem and the desired outcome: Before you begin to create a
flowchart, it's important to clearly define the problem you're trying to solve and
the outcome you want to achieve.
)
ED
Break down the problem into smaller steps: Once you have defined the
H
problem, break it down into smaller steps. This will make it easier to create a
K
flowchart and to identify potential solutions.
(J
at
Bh
Map out each step in the flowchart using the appropriate symbols:
al
qb
.I
.M
Test the flowchart: Once you have created the flowchart, test it by
of
Pr
following each step to ensure that it produces the desired outcome.
)
ED
K H
(J
at
Find the Greatest of Two Numbers
Bh
al
qb
.I
.M
of
Pr
Flowchart Examples:
)
ED
HK
(J
at
Find the sum of Two Numbers
Bh
al
qb
.I
.M
of
Pr
E D)
K H
t (J
h a
al B
Iq b
f. M.
Pro
Flowchart Examples:
)
ED
HK
(J
at
Find whether a number is even or odd
Bh
al
qb
.I
.M
of
Pr
Online Flowchart tools
)
ED
HK
(J
https://app.zenflowchart.com/
at
Bh
al
qb
.I
.M
Untitled Diagram - diagrams.net
of
Pr
D)
K HE
t (J
h a
a l B
Iqb
M .
ro f.
P
QUESTIONS?
Pr
of
.M
.I
qb
al
Bh
at
(J
K H
ED
)