01 Algorithms Flowchart and Pseudocode1
01 Algorithms Flowchart and Pseudocode1
1. Start
2. Prepare a Breakfast
3. End
Process
Input/Output
Test
Connector
Flow of activities
FUNDAMENTALS OF PROGRAMMING IN C++ COMPILED BY YADETA G.
@RVU-2021
11
FLOWCHART: EXAMPLE 1
Start Algorithm starts here
Input
Gregorian date Input data from user
Convert Gregorian
date to Ethiopian date Perform the date conversion
Display
Display the result
Ethiopian date
End
FUNDAMENTALS OF PROGRAMMING IN C++ COMPILED BY YADETA G.
@RVU-2021
13
FLOWCHART: EXAMPLE 3
Selection
Start
Input
height
false true
height > 1.6?
Output Output
“You are short!” “You are tall!”
End
Start
Output
“Thank you!”
Input
stop
false
stop = 1?
true
End
FUNDAMENTALS OF PROGRAMMING IN C++ COMPILED BY YADETA G.
@RVU-2021
15
CLASS ACTIVITY 2
Draw a flowchart which represents the algorithm built in CLASS
ACTIVITY[1].