Вы находитесь на странице: 1из 6

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

Solution: How to get groceries

START

Check
traffic on
Waze

Heav Yes
y
Traffi
c? Take the
No subway

Take the car

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

Solution: How to add the two numbers and get a result

START

2
Numbers
As Input

Number 1 Number 2

Add Together

Output Result

END
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: How to order a burger

START

Order A
Burger

Thirsty? Hungry?

No Yes No Yes

Don’t Order A Don’t Order


Order Drink Order Fries
A Drink Fries

Pay Cashier

Any Change?
No Yes
Receive Change

Pick Up 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

Solution: How to add the two numbers and get a result

START

3
Numbers
As Input

Number 1 Number 2

Add Together

Multiply By Number 3

Is Final Result > 100?

No Yes

Output Output Final


Number 1 END Result

Вам также может понравиться