Documentation
¶
Overview ¶
Extension of the turtle program that will show turtle's location.
Write a program with a turtle that can move up, down, left, or right. The turtle should store an (x, y) location where positive values go down and to the right. Use methods to increment/decrement the appropriate variable. A main function should exercise the methods you’ve written and print the final location.
TIP: Method receivers will need to use pointers in order to manipulate the x and y values.
Click to show internal directories.
Click to hide internal directories.