This is my 3rd idea which is similar to my first one as it is to do with day and night but is slightly more developed. This loop is an indicator of what to do on a cold/hot day or a cold/warm night. As there are two sets of options in this code, the code would consist of an if, else statement inside another if, else statement. This will be set out on a 4 page piece of folded card. The front will be flat and unfolded and divided into two sections, day and night. You choose what time of day it is and then you would flip one side of the paper over from the left if it was a cold day or flip the other side over from the right if it was a hot one. If you choose a cold day, once you have flipped over the card there will be 2 activities to choose from depending on if its a hot/cold day or a warm/cold night. The examples will be if its a hot day go to the beach, else (if its cold) watch a movie. Or if its warm night go and watch the sunset else (if its a cold night) go to bed. The way these will be shown is like in the image above with an arrow you can turn which will indicate what activity to do depending on what the weather is like.
In coding language it will appear like this:
if (day = true)
{if (temperature >= warm)
{go to the beach;}
else {watch movie;}
else; if (day = false)
{if (temperature > warm)
{watch the sunset;}
else {go to bed;}
}
I think I will use this idea as I feel it is the best metaphor that conveys an if,else loop. It is also interesting for the viewer as it is interactive.
No comments:
Post a Comment