Imagine a mechanical turtle that walks around the room under the control of a VB program. The turtle holds a pen in one of two positions, Up or Down. While the pen is down, the turtle traces out shapes as it moves; while the pen is up, the turtle moves about freely without writing anything. In this problem you will simulate the operation of the turtle and create a computerized sketchbook as well.
Use a 20-by-20 array **floor** which is initialized to zeros. Read commands from any array that contains them. Keep track of the current position of the turtle at all times and whether the pen is currently up or down. Assume that the turtle always starts at position 0,0 of the floor with its pen up. The set of turtle commands your program must process are as follows:
**due 2 lack of space u may have questions - feel free to ask in your comments**
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
1 pen up
2 pen down
3 turn right
7 turn left
5, 10 move foward *n* spaces (in this case 10)
6 print the 20-by-20 array
9 end of data (sentinel)
As the turtle moves with the pen down, set the appropriate elements of array **floor** to 1's. When the 6 command (print) is given, wherever there is a 1 in the array, display an asterisk. Wherever there is a zero, display a blank. Write a program to implement the turtle graphics capabilities discussed here.