Question: Exercise 1 . 1 9 . 4 | Java Super Cleanup Karel Overview Karel s world is a complete mess. There are tennis balls all
Exercise Java Super Cleanup Karel
Overview
Karels world is a complete mess. There are tennis balls all over the place, and you need to clean them up Karel will start in the bottom left corner of the world facing east, and should clean up all of the tennis balls in the world. This program should be general enough to work on any size world with tennis balls in any locations.
Once the world is clean, Karel needs to return to the bottom left corner and face east.
Tips:
You are allowed to use SuperKarel commands like turnRight and turnAround.
There are many different ways to approach this problem. As long as the entire world is clean and Karel returns to the bottom left, facing east, you can be as creative as youd like!
It may be helpful to create a function that returns Karel to the bottom left after Karel is done cleaning up all of the balls.
NOTE: Be sure to test your code on each of the five Karel Worlds
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
