0% found this document useful (0 votes)
138 views

Flowgorithm Instructions

The document provides instructions on downloading and using the Flowgorithm app to design algorithms. It includes steps to download the app, an overview of the work environment and icons, and an example algorithm for a driver following traffic lights with the flow chart designed in Flowgorithm.

Uploaded by

buynzayahbat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
138 views

Flowgorithm Instructions

The document provides instructions on downloading and using the Flowgorithm app to design algorithms. It includes steps to download the app, an overview of the work environment and icons, and an example algorithm for a driver following traffic lights with the flow chart designed in Flowgorithm.

Uploaded by

buynzayahbat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

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

You might also like