Programming Awesome Apps - page 7

Bug Hunt
When it is hot outside, the
background image of the
app should change to show a
desert. Check these coding
blocks and pick which one
is correct.
Turn to page 23 to see the answers.
The app is supposed to tell Timmy that his cat has a nice
name! Which block of code will tell him that his cat has a
nice name, and which one will say nothing to Timmy?
Turn to page 23 to see the answers.
when I receive message “it’s hot outside”
when I receive message “it’s hot outside”
ask “What’s your cat’s name?” and wait
switch background to “desert”
say join (answer) “What a great name!”
switch background to “winter”
say join (answer) “...”
ask “What’s your cat’s name?” and wait
{
17
}
1,2,3,4,5,6 8,9,10
Powered by FlippingBook