Flowchart, Pseudocode
Session No.: 4
Course Name: Programming for Problem Solving (PPS)
Course Code: E1UA102C
Instructor Name: Ravi Pratap Singh
Duration: 50
Date of Conduction of Class: -09-2025
Galgotias University 1
Opening Question
How would you show your tea-making steps in a
picture or diagram so that even a small child can
understand it?
• Think about using shapes and arrows.
• Share your ideas.
Galgotias University 2
Last time:
We learned to write algorithms in Natural Language.
But natural language can sometimes be:
• Too long
• Confusing
Today:
We learn two better ways:
• Pseudocode – structured English
• Flowchart – diagram with symbols
Galgotias University 3
At the end of this session students will be able to
Represent algorithms using
pseudocode.
Represent
algorithms visually
using flow-charts.
Galgotias University 4
1. Introduction to
Pseudocode
2. Examples in Pseudocode
Session 3. Introduction to Flowcharts
Outline
4. Flowchart Symbols &
Examples
5. Comparison of
Representations
Galgotias University 5
What is Pseudocode?
Definition: Pseudocode is a way of writing algorithms in structured
English.
• Uses special keywords.
• Easy for humans to understand.
• Easier to convert into real programs.
GSCALE full form and date 6
Pseudocode is the intermediate state between an idea and
its implementation(code) in a high-level language.
It helps the programmer in planning the solution to the problem
as well as the reader in understanding the approach to the
problem.
GSCALE full form and date 7
Basic Pseudocode Keywords
• START / END – beginning and ending.
• INPUT / READ – take values.
• OUTPUT / PRINT – display result.
• IF … ELSE … ENDIF – decisions.
• FOR / WHILE – repetition (loops).
Galgotias University 8
Example – Largest of Two Numbers (Pseudocode)
START
INPUT A, B
IF A > B THEN
PRINT A
ELSE
PRINT B
ENDIF
END
Galgotias University 9
Learning Activity 1 - Pseudocode Writing
Task: Write pseudocode for deciding:
“If a number is even, print EVEN. Otherwise, print
ODD.”
Galgotias University 10
Common Mistakes in
Pseudocode
• Skipping steps.
• Mixing plain English with pseudocode.
• Not using keywords properly.
• Forgetting to END loops or conditions.
Galgotias University 11
Best Practices in Pseudocode
• Write steps in clear order.
• Use proper keywords.
• Keep steps short.
• Always START and END properly.
Galgotias University 12
Introduction to Flowcharts
Definition: A diagram that shows an algorithm
using shapes and arrows.
• Makes it visual and easy to follow.
• Each shape has a specific meaning.
Galgotias University 13
Flowchart Symbols
• Oval – Start/End Start / End
Input /
• Parallelogram – Input/Output Output
• Rectangle – Process/Step Process / Step
• Diamond – Decision/Condition
If
• Arrow – Flow of steps
• Circle - Connector
Galgotias University 14
Example – Largest of Two Numbers
(Flowchart) Start
Input
A,B
If Yes
A> Print A
B
No
Print B End
Galgotias University 15
Learning Activity 2 – Flow-chart Drawing
Task: Draw a flow-chart for deciding:
“If a number is even, print EVEN. Otherwise, print
ODD.”
Galgotias University 16
Advantages of Flowcharts
• Easy to understand visually.
• Useful for explaining to non-programmers.
• Helps in debugging (finding mistakes).
• Good for documentation.
Galgotias University 17
Limitations of Flowcharts
• Can become large and messy for complex problems.
• Time-consuming to draw.
• Not as close to programming as pseudocode.
Galgotias University 18
Comparison of Representations
Representation Strength Limitation
Natural Language Easy to write Can be vague
Pseudocode Structured, close to code Needs keywords
Can be messy for big
Flowchart Visual, easy to follow
problems
Galgotias University 19
Summary of Key Concepts
• Pseudocode = structured English with keywords.
• Flowchart = diagram with symbols and arrows.
• Both are better than natural language because
they reduce confusion.
• They prepare us for actual programming in C.
Galgotias University 20
Attainment of LOs in alignment to
the learning activities: outcomes (1-2)
Outcome 1: Represent
algorithms using pseudocode.
Outcome 2: Represent
algorithms visually using
flow-charts.
Galgotias University 21
Discussion on the post session
activity
Attempt the Post-session activity on LMS, before
next session
Galgotias University 22
Information about the next
lesson
Algorithms to programs, source
code
Galgotias University 23
Review and Reflection
from students
Galgotias University 24
Galgotias University 25