In this task we have to get the frog home by negotiating its way through the forest.  We’ll do it using the same instructions we’ve already met in the previous tasks (frogUp etc).   The first part of the program has been written for you, it’s up to you to fill in the rest.

You will have to think about the steps necessary to complete the task and the order in which they have to happen.  As you fill the instructions in, remember that the programming language is case sensitive.  This means that whether a letter is upper-case or lower-case, matters to the compiler if not to you.   So...

frogRight(1);

...is a valid instruction, but...

FrogRight(1);

...is not, because the 'f' isn't supposed to be upper-case.   Also remember that spaces (or lack of them) in between words matter to the compiler.  So...

frogRight(1);

...is a valid instruction, but...

frog right(1);

...is not, because there isn't supposed to be a space between the words 'frog' and 'right'.

Tasks: