APF221 – FUNDAMENTALS OF ALGORITHM AND PROGRAMMING
Flowgorithm_instructions
1. Download the Flowgorithm app.
a. For Windows OS, log in using the link below.
http://www.flowgorithm.org/download/files/Flowgorithm-Setup.zip
b. For Mac OS, log in using the link below.
https://github.com/jostasik/Flowgorithm-MacOS/releases
2. Work environment
a. File names, main menu and commands
Click Run to run the
algorithm
SEMINAR WORK 2 1
APF221 – FUNDAMENTALS OF ALGORITHM AND PROGRAMMING
b. Icons used to create a block diagram
Click on the flow line between
the shapes used to draw the
diagram
Appearance of icons.
Click to select.
Please refer to the following link for a detailed explanation.
http://www.flowgorithm.org/documentation/index.html
SEMINAR WORK 2 2
APF221 – FUNDAMENTALS OF ALGORITHM AND PROGRAMMING
3. Example for algorithm
a. Замын хөдөлгөөнд оролцож буй жолоочийн гэрлэн дохионд
захирагдах алгоритмыг зохио.
---design an algorithm that A driver who is in traffic at a traffic light follows
traffic lights---
SEMINAR WORK 2 3
APF221 – FUNDAMENTALS OF ALGORITHM AND PROGRAMMING
b. Run on the FLOWGORITHM program
Used to store the current traffic light
color.
If the current traffic light
is red, this line displays a
Color is input from keyboard and
message instructing the
stored in the light representing
the current color of the traffic
driver to stop.
light.
Use a loop block
to check if the
input value is
equal to "green"..
If the current traffic light is
If the previous condition yellow, this section will
was false, check see if it instruct the driver to check for
is equal to "yellow". If pedestrians crossing the road
this is true, the next and take the next action
block of code will run. accordingly..
If the current traffic light is green,
this line will display a message
instructing the driver to move
SEMINAR WORK 2 4
APF221 – FUNDAMENTALS OF ALGORITHM AND PROGRAMMING
4. The result will look like this.
SEMINAR WORK 2 5
APF221 – FUNDAMENTALS OF ALGORITHM AND PROGRAMMING
5. Save /on the device/
a. Save as a flowgorithm file on the device.
a flowgorithm file saved
as with *.fprg extension
on device.
b. Save as a .PNG image on the device
An Image file saved as
with *.png extension on
device.
.
SEMINAR WORK 2 6