Lesson 2

Page 1

Lesson : 2 Prof. Gaia Gemignani


Flowcharts Flowcharts represent algorithms in a graphical manner. There is a standard set of rules we must follow when we draw flowcharts. Don't feel intimidated by the descriptions: we'll cover them one by one in the next few chapters.

Prof. Gaia Gemignani


Beginning of the algorithm

Assignment statement

Condition/Decision

Arrows represent the flow between boxes

End of the algorithm

Prof. Gaia Gemignani


Example

Do you have homewor k?

No

You are lying

yes

START WORKING

Should I do My Homework Now?

This funny flowchart vividly shows that doing homework is an unavoidable and annoying thing for almost all the students. They usually never do it until to the last minute.

yes Is it due in less then 12 hours?

No Watch TV

Play mobile games https://www.edrawsoft.com/flowchart-ex amples-for-students.php Prof. Gaia Gemignani

Facebook


Example What to Eat for Lunch on Sunday? This flowchart vividly describes a common Sunday when mom is not at home and you are wondering what to eat.

You are so hungry Is mama at home?

yes

No Look for food in the fridge

yes

Anything you want to eat?

Feel lazy to go out?

I wont to go out for some fresh air

Enjoy your lunch

Find a restaurant

yes

Yes, i’m very lazy to go out

https://www.edrawsoft.com/lunch-sunda y-flowchart-example.php Prof. Gaia Gemignani

Order take out

Anything you want to eat?

No

Stay hungry


Homework Draw an example of Flowchart (in English)

Prof. Gaia Gemignani


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.