Title: Flowchart and Pseudocode
1Flowchart and Pseudocode
2Topics
- Input Process Output (IPO) Chart
- Hierarchy/Structured Chart
- Flow Chart
- Pseudo Code
- Source Code
3Design Steps and Tools
IPO Chart
Hierarchy or Structured Chart
Flow Chart
Pseudo Code
Source Code
4FlowChart
5Flowcharting Symbols
REPETITION
START STOP
PREDEFINED PROCESS (MODULES)
ASSIGNMENT
INPUT OUTPUT
SELECTION
CONNECTOR
FLOW LINES
COMMENT
6Example1
Write a program that asks the user to enter a
temperature reading in centigrade and then prints
the equivalent fahrenheit value.
START
Convert centigrade to fahrenheit
inputCent centigrade
calcFah fahrenheit (1.8centigrade) 32
outputFah fahrenheit
STOP
7Example2
- Write a program that asks the user to enter
firstName and lastName and display a welcome
message to screen as Hello firstName lastName!
Welcome to HCCS
START
Display welcomeMsg using firstName and lastName
inputNames firstName, lastName
outputWelcomeMsg welcomeMsg
STOP
8Pseudocode
9Pseudocode
- Step-by-step solution that will solve the problem
- It is a cross between the human language and the
computer language - A list that describes the desired manipulation of
data
10Example1
PSEUDOCODE Display "Enter Centigrade " Input
centigrade fahrenheit 1.8 centigrade
32 Display "Centigrade to Fahrenheit "
fahrenheit
Example Result Enter Centigrade 30 Centigrade
to Fahrenheit 86
11Example2
PSEUDOCODE Display "Enter your Firstname and
Lastname " Input firstName, lastName Display
"Hello" firstName " " lastName ", Welcome to
HCCS!"
Example Result Enter Firstname and Lastname
Suma Rao Hello Suma Rao, Welcome to HCCS!