Alexa Metrics

Coding Adventure 6: Gather some samples

What if Robo goes to the moon?

You will learn about math operations, calculations and count loops on your way to the moon

免費加入

描述

Robo will have to collect specific samples to bring back to Earth. He has limited amount of space in his vehicle, so he must keep an eye on the weight of the samples. Otherwise his shuttle will be too heavy to go home!

預覽視頻

任務

Rock first, then camera

Robo has to collect the rock first, and then reads the number on the rock cell to find out how many cameras he needs. If the number is greater than 3, Robo should turn right. Otherwise, Robo can collect up to 3 cameras without turning.

Weigh it first

It's time to gather rocks, but wait, Robo can only hold rocks that weigh less than 5 kilograms. If the number printed under the rock is less than 5, gather it. Otherwise, drop it immediately before going on to the next cell.

Go around the rock

Robo is headed towards the space shuttle.  Help him check the distance to the rock on every cell. If the distance is smaller than or equal 30, make sure to move around the rock to get to the space shuttle.

Note: The distance of each cell is 20.

Valuable rocks!

There are valuable and rare rocks! Collect all rocks with values that are greater or equal to 50, otherwise drop the rock immediately before going further. Lastly, print the sum of the collected value on the screen.

How much can we carry?

We need to know how much our toolbox can carry. Go collect the toolbox to determine the weight.  If the weight is less than 15 kilograms, collect all flashlights. If the weight is from 15 to 25 kilograms, collect the blue and yellow ones only. Otherwise, Robo can only collect the blue flashlights.

What if Robo goes to the moon?

You will learn about math operations, calculations and count loops on your way to the moon

免費加入
Canada Flag 隱私政策使 使用條款
Got an invite