hts.StevenWood.com

[ Last Page ]

Karel 12

Complete the following in class or for homework.

Use the concept of inheritance taught in class to create a robot that clears Things, named WalkTheSquareRobot. The robot is somewhere in the world facing east, on a corner with no Thing. This robot's job is to walk around the outside of a square and pick up all the Things. At each corner there will be exactly one Thing.

Use the city file Jericho.txt. Start your robot at avenue 1, street 6, facing East, with no Things in its backpack, as shown (the robot is the red arrowhead).

Test your program thoroughly. Document both your WalkTheSquareRobot code and task code properly.

Do NOT hand in your work unless other instructions were given. 

    
[Last Page]
All material on this site is copyright © 1997- by Steven Wood or as credited. All right reserved. Use of this site indicates you agreement with the  terms of use.
Send comments or questions to about this page.
Every attempt has been made to credit work under copyright. If there are any claims that copyright has been missed please contact the .
+SDG+