Академический Документы
Профессиональный Документы
Культура Документы
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
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
START
Check
traffic on
Waze
Heav Yes
y
Traffi
c? Take the
No subway
END
Scenario 3:
Read 2 numbers as input
Add the two numbers
Output the 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
START
Order A
Burger
Thirsty? Hungry?
No Yes No Yes
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
START
3
Numbers
As Input
Number 1 Number 2
Add Together
Multiply By Number 3
No Yes