1 Tools For Developing Program Logic Flowchart and Pseudo Code Instructions
1 Tools For Developing Program Logic Flowchart and Pseudo Code Instructions
PROGRAM LOGIC,
FLOWCHART AND PSEUDO
CODE INSTRUCTIONS
Algorithms
A step by step Often used for
Algorithm can
procedure or calculation,
A sequence of be expressed
formula for data
instruction in any
solving processing and
language
problem programming
ALGORITHMS PROCEDURES
• Writing Pseudo code will save you time later during the
4 construction and testing phase if a program development.
DATA DICTIONARIES
Variable Name Data Type
• Data dictionaries
Num1 Integer (int)
are used to
describe the data Num2 Float (float)
used in the pseudo Sum Double (double)
code to do a Name Character (char)
process Number1 Long Integer (long int)
Number2 Long Double (long
• Standard data double)
types used in Location String (string)
pseudo code are
Proceed Boolean (boolean)
Integer, Double,
String, Char and
Boolean.
DO’S OF VARIABLE DECLARATION
7.End
EXAMPLE 2.
Write a pseudo code that will compute the
average of at least three numbers
1. Start
2. Initialize all
needed variables
10. End
EXAMPLE 3.
Write a pseudo code that will calculate the pay
of a worker
1. Start
2. Initialize all
needed variables
3. Input numbers of hours obtained by a
worker
7. End
FLOWCHART
COMMONLY USED SYMBOLS AND
FUNCTIONS
Action/Process Symbol
• A box can represent a single step (“add two cups of
Process flour”), or an entire sub-process (“make a bread”) within
a larger process
Decision Symbol
• A decision or branching point lines representing different
Decision decisions emerge from different points of the diamond
Input/Output Symbol
Input • Represents material or information entering or leaving the
system, such as customer order (input) or product
(output).
Output
Preparation Symbol
• Represents a set-up to another step in the
Preparation process
• Initializing all needed variables
COMMONLY USED SYMBOLS AND
FUNCTIONS
Connector Symbol
• Indicates that the flows continues where a matching
symbol (containing same letter) has been placed.
Arrow Symbol
• A line is a connector that shows relationships between the
representative shapes.
Deployment flowcharts
indicate the people
involved in each step as
well. This type of
flowchart is useful
when a certain process
involves different
departments or areas.
OPPORTUNITY FLOWCHART
In opportunity
flowcharts, it may not
be a simple moving
from this step to the
next or answering a
single question at each
page. For example, the
left side may show the
steps taken when
everything goes right
and right side has the
steps taken when things
go wrong.
PROCESS FLOWCHART
Relatively it is a basic
overview, process
flowchart gives full
listing of the major
steps as well as the sub-
steps in process. For
example, a process
flowchart for the
troubleshooting of a
machine might ask
questions for the person
or group to answer
before going to the next
stage.
FLOWCHART EXAMPLES
EXAMPLE 1.
Draw a flowchart
that obtains two
integer numbers
form user. It will
print out the
sum of those two
numbers
EXAMPLE 2.
Draw a flowchart
that will
compute the
average of at
least three
numbers
EXAMPLE 3.
Draw a flowchart
that will
calculate the pay
of a worker