ConditionalAlgorithms
If... , then..., Otherwise...
Rainy day
Based on the algorithm below, answer the questions to the right -->
How many questions/conditions are there in this algorithm? If you follow the instructions, what is the maximum number of items (including your dog) that you can take? If you follow the instructions, is it possible to go outside with your umbrella, but not with your rain boots? Is it possible to take your rain boots, and only then, take your umbrella? Is it possible to take your dog, but not take your umbrella? If you executed the algorithm and went outside with 3 out of 4 items, is it dark outside? If you executed the algorithm and went outside with 3 out of 4 items, is it raining?
If it's dark outside:Take your lantern If it's raining:Take your umbrellaTake your rain boots If your dog has a coat: Take your dog :) Go outside and have fun!
Yes
No
Answers:
No
Yes
Not enough info
Order this algorithm so that it makes sense
START then then otherwise otherwiseEND
say "it's not sunny, but it's warm"
If it's warm...
say "it's cold :("
say "it's sunny and warm"
If it's sunny...
Intro. to Conditionals
jorge.as92
Created on July 31, 2021
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Akihabara Connectors Infographic
View
Essential Infographic
View
Practical Infographic
View
Akihabara Infographic
View
The Power of Roadmap
View
Artificial Intelligence in Corporate Environments
View
Interactive QR Code Generator
Explore all templates
Transcript
ConditionalAlgorithms
If... , then..., Otherwise...
Rainy day
Based on the algorithm below, answer the questions to the right -->
How many questions/conditions are there in this algorithm? If you follow the instructions, what is the maximum number of items (including your dog) that you can take? If you follow the instructions, is it possible to go outside with your umbrella, but not with your rain boots? Is it possible to take your rain boots, and only then, take your umbrella? Is it possible to take your dog, but not take your umbrella? If you executed the algorithm and went outside with 3 out of 4 items, is it dark outside? If you executed the algorithm and went outside with 3 out of 4 items, is it raining?
If it's dark outside:Take your lantern If it's raining:Take your umbrellaTake your rain boots If your dog has a coat: Take your dog :) Go outside and have fun!
Yes
No
Answers:
No
Yes
Not enough info
Order this algorithm so that it makes sense
START then then otherwise otherwiseEND
say "it's not sunny, but it's warm"
If it's warm...
say "it's cold :("
say "it's sunny and warm"
If it's sunny...