CSCE 145 Lab Test 1

Section 5

Create a robot, GardenerBot, that inherits from Robot (not RobotSE) that gathers a row of flowers (Things) along street 1 and plants (drops) them in an arrangement at avenue 13. There can be any number of Things to pick up and the robot could start from any avenue, but everything will always be on the same street (1) and the Things will always be before avenue 13. See the pictures for an example.

You should have different methods to:

You should also have a method, garden(), that calls these methods in the appropriate order to do accomplish all the required tasks.

This picture shows how you should set up your City initially:




Remember, this is just a sample of where the Things, Wall, and Robot could be. To make sure your code works you should try a different setup (try moving everything up a few avenues but keep the Things between the starting point and avenue 13).

Create a main method where you create your City, instantiate your robot, and call garden().

The final situation should look like this:




DROPBOX YOUR .java FILES BEFORE 3:55PM (end of lab)! Don't wait until the last minute!