Parson's Problems: For loop

DIRECTIONS:

Construct a working program by dragging & dropping lines from the left to the right. You'll need to change the order of the lines and you'll need to adjust the indentation correctly.

You should have the robot turn left, then move 5 spaces north using a for loop, and then turn left one last time.

import becker.robots.*;

public class ICE_Demo_CountingLoops_For extends Object
{
   public static void main(String[] args)
   {
      City wallville = new City(10, 10);
      Robot rob = new Robot(wallville, 7, 0, Direction.EAST, 0);
   
      new Thing(wallville, 7, 0);
      new Thing(wallville, 7, 2);
      new Thing(wallville, 2, 2);
   
	        // FIX THIS PART!!!
   }
}

Check your work by clicking on the button labeled "Get Feedback" at the bottom of this page.