Parson's Problems: Multiple For loops in one program

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 sprint for a while, then turn around and come back.

Specifically, the robot should move 15 spaces forwards (using a for loop), then turn around for the return trip by turning left, moving forwards 1 intersection, then turning left again  (so it ends up one street north of it's starting street).  At that point the robot should move 14 spaces back towards the begining (again using a for loop).  Once it's gone that far it should finish by turning 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.