DIRECTIONS:
The goal is for you to get used to using the Parson's Problem tool itself.
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.
The code should first create a City, then a Robot, then a Thing. Once that's done you should have the robot move forwards (so that it's on the Thing), pick the Thing up, then move forwards again).
import becker.robots.*; public class ICE_01_Tutorial_1 extends Object { public static void main(String[] args) { City toronto = new City(); Robot karel = new Robot(toronto, 3, 0, Direction.EAST, 0); new Thing(toronto, 3, 1); karel.move(); karel.pickThing(); karel.move(); } }
Check your work by clicking on the button labeled "Get Feedback" at the bottom of this page.