Question: Problem 3 - Longest Line (2.5 points) Here we continue with variable use. Clara is learning to optimise her movement and for this to happen

Problem 3 - Longest Line (2.5 points) Here we continue with variable use. Clara is learning to optimise her movement and for this to happen she must learn to count. One of the tasks set out for her is to compute the height of the longest line of trees. Clara starts in the world as shown in Figure 3.1. She must move from west to east and once reaching a leaf at the bottom right comer - she must present the value of the longest tree line she has encountered in the world. The outcome should resemble what is shown in Figure 3.2. Of Greenfoot: Terminal Window - 04 Longest Line SOLUTION ED Figure 3.1. Initial screen Figure 3.2. Final Screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
