Code.org 2021 - Course 3 - Lesson 7 - Bee Conditionals

preview_player
Показать описание
This cloud is blocking my view!
Check to see if there's a flower under the cloud, and only get nectar if there's a flower. Be careful, it can change!
More clouds!
Check underneath every cloud to see if it is hiding a flower before you get nectar. Remember: Not all clouds hide the same thing!
Now I just want to make honey. Some of these clouds might have honeycombs under them. Be sure to check each cloud!
Sometimes this cloud covers a flower, and sometimes it covers a honeycomb!
Use the if/else block to collect nectar only if it is a flower.
Else, make honey (because it is a honeycomb).
There will be either a flower or a honeycomb under each of those clouds!
Use the if/else block to collect nectar if there is a flower. Otherwise, make honey (because there is a honeycomb).
I am not sure how much nectar this flower has, but I know it has either 1, 2, or 3 nectar.
Combine the conditional blocks (if and/or if/else) to only get as much nectar as the flower has.
Remember, the amount of nectar can change each time you run the puzzle!
These flowers can have 3, 2, or 1 nectar.
Complete the check purple flower function and use it to collect all of the nectar at the flowers.
Write the function for check flower make honey.
Your function should check if the purple flower has 3, 2, or 1 nectar and get all of the nectar. Then, move forward and make honey.
Assessment: This cloud is either hiding a flower with one nectar or a honeycomb that needs one honey.
Complete the get nectar or make honey function, then call it to collect the nectar or honey.
Bee Conditionals Multiple Choice
Choose the best blocks.
A purple flower may have either 3, 2 or 1 nectars, but you don't know how many. Which blocks correctly check and collect all of the nectar from a purple flower?
Рекомендации по теме
Комментарии
Автор

I would have liked to know if you are going to put parts 11 and 12.

dydysthes