Coding Adventure 8: What a journey!

Let's go to the moon, back and forth

learn about advanced loops, arrays and functions while you launch a rocket to the moon

免費加入

描述

Wow! You did an amazing job. Now it is time for Robo to learn how to get the minimum and maximum values, so he can solve puzzles before going home.

預覽視頻

任務

Maximum number of moons!

Each planet has its number of moons written beside it. Read the number of moons and print the maximum of the four planets onto the screen. 

Minimum number of moons

Each planet has their number of moons written beside it. Read the number of moons and print the minimum of the four planets onto the screen. 

First planet alphabetically

Based on alphabetical order, read the list of planets and print the name of the planet that comes first.

Last planet alphabetically

Based on alphabetical order, read the list of planets and print the name of the planet that comes last.

Puzzle

Let's play a puzzle before going back to Earth. We need Robo to collect these five tanks and drop them off at the yellow cells. Here are the rules:

1. Robo can not cross the red line unless he is carrying an odd number of tanks. 
2. Robo can not carry more than three tanks.

Can you solve it?

Let's go to the moon, back and forth

learn about advanced loops, arrays and functions while you launch a rocket to the moon

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