Robby Project 18
Robby now has ten abilities:
turnLeft()
turnRight()
move()
pickFruit()
dropFruit()
hasFruitLeft()
alreadyFruitHere()
moveSpaces(numSpaces)
pickAllFruit()
dropAllFruit()
Project 18: Robby begins at (0, 0) facing East with a random amount of fruit. There is a desired location for Robby to drop all the fruit. The coordinates for the desired location are 'toX' and 'toY'. The value of 'toX' can be anything from -10 to 10. The value of 'toY' can be anything from 0 to 10. In other words, the desired location is not south of the origin.
Provide the instructions for Robby to drop all his fruit at location (toX, toY).
Note: If your code works for 5 test cases in a row, you can enter your e-mail address.