| Create a new class DropItRobot (DIR) which is a
child of the Robot class.
DIRs always start with 3 items in their backpack.
Override the move method of the DIR so
that before it moves it drops two items from its backpack. If it doesn't
have two items then it doesn't drop any items.
Start your robot at avenue 2 and street 6 facing North. Instruct your
robot to move north and pick up all the Things at each of the 4 corners above it.
Your robot should stop at avenue 0, street 0. Use the 'moveToStreet0' and
'moveToAvenue0' methods developed in Exercise 16.
Use the city file Edmonton.txt.
Test your program thoroughly. Document task code and new robot class
properly.
Do NOT hand in your work unless other instructions were given.
|