Sei sulla pagina 1di 7

Flowchart Practice

Create a flowchart for the following scenarios. Maximum 2 flowcharts per page
and each flowchart should have a title. The first scenario is done as an
example.

Scenario 1:
You listen to the weather report
If it is raining you will get a drive to school
If it is not raining you will take the bus

Scenario 2:
You check the traffic news
If there is a lot of traffic, you take the subway
Otherwise, you take the car

Scenario 3:
Read 2 numbers as input
Add the two numbers
Output the result

Scenario 4:
You approach the counter at a fast food restaurant to order a burger
If you are very hungry, you will also order fries, otherwise, you will not
If you are thirsty, you will order a drink, otherwise you will not
You then pay the cashier
If you deserve change, you pick up your change, otherwise you do not
You then pick up your food and leave

Scenario 5:
Read 3 numbers as input
Add the first 2 numbers
Multiply the result by the third number
Output the final result if it is greater than 100
Otherwise output the first number

BONUS Scenario:
Draw a flowchart to find the largest of three numbers A, B, and C.
Scenario 1:
You listen to the weather report
If it is raining you will get a drive to school
If it is not raining you will take the bus

Solution: How to get to school

START

Listen to weather
report

Raining? yes

Get a Drive to
no School

Take Bus

END
Scenario 2:
You check the traffic news
If there is a lot of traffic, you take the subway
Otherwise, you take the car

How to get around quickly, depending on the traffic


START

Check traffic
news

Is there a yes
lot of
traffic?
Take the subway
no

Take the car

END
Scenario 3:
Read 2 numbers as input
Add the two numbers
Output the result

Solution: Adding two numbers recognized as the input, and displaying it as an


output

START

Read the
numbers 5 and 6
as input

Add the two


numbers

11
Scenario 4:
You approach the counter at a fast food restaurant to order a burger
If you are very hungry, you will also order fries, otherwise, you will not
If you are thirsty, you will order a drink, otherwise you will not
You then pay the cashier
If you deserve change, you pick up your change, otherwise you do not
You then pick up your food and leave

Solution: What to order depending on your hunger and thirst levels

START

Order a burger

Are you
very
No Yes

hungry?
Don’t order fries
Order some fries

Are you
thirsty?
Don’t order a
drink Order a drink
No Yes

Pay the cashier

Do you
No deserve Yes
change?

Don’t pick
up change Pick up
your change

Pick up your
food and leave

END
Scenario 5:
Read 3 numbers as input
Add the first 2 numbers
Multiply the result by the third number
Output the final result if it is greater than 100
Otherwise output the first number

START

Read 3 numbers
as input (5,6,7)

Add the first two


numbers (5+6)

Multiply the
result by the
third
number(11x7)
No Output the
Output the Yes first number
final result

Is the number
greater than
100?

END

Potrebbero piacerti anche