Page < > of 2 0 Name: Look at the code below. How many units of nectar will the bee collect at the end? The bee won't co
Posted: Sun May 15, 2022 12:10 pm
Page < > of 2 0 Name: Look at the code below. How many units of nectar will the bee collect at the end? The bee won't collect any nectar because the variable isn't called "gather". The bee will only collect 2 nectar. The bee will collect all of the nectar. I don't know nectars 1 when run 2 set nectars 7 to 1 3 move and increment 6 set nectars to 7 move and increment move and increment set nectars 7 to 10 move and increment 11 move and increment 12 repeat nectars times do get nectar 8 9 0 move and increment 4 Tove forward 5 set nectars to nectars y Describe what happens on each line of code and what the value of nectars is on each line. Note: Be sure to use the value AFTER the line executes, not at the beginning of the line. Line 1: Line 2: value of nectars Line 3: value of nectars Line 4: Line 5: value of nectars
Page < 2 > of 2 Line 6: value of nectars Line 7: value of nectars Line 8: value of nectars Line 9: value of nectars Line 10: value of nectars Line 11: value of nectars Line 12: value of nectars
Page < 2 > of 2 Line 6: value of nectars Line 7: value of nectars Line 8: value of nectars Line 9: value of nectars Line 10: value of nectars Line 11: value of nectars Line 12: value of nectars