**OBJECT:**
: To simulate turtle graphics using C++ arrays and functions.
**REFERENCE(S):**
: Deitel & Deitel
**PROCEDURE:**
: 1. Review arrays, and functions.
2. Write a main function, *turtleGraphics* that invokes a **minimum** of the following functions:
* *createCanvas* - creates a canvas for the turtle to traverse with maximium size 20 X 20 initalized to zero.
* *drawShape* - take a list of commands from an array and draw an object by placing a **1** in the canvas when the pen is in the down position.
* *displayCanvas* - display the object when the proper pen command is encountered.
3. Use the following pen commands: <caption>Pen Commands</caption>
| Command | Pen Movement |
| ------- | ---------------- |
| 1 | right |
| 2 | left |
| 3 | up |
| 4 | down |
| 5,x | forward x spaces |
| 7 | display canvas |
| 9 | end |
4. Create 3 arrays in your main routine to display at least three shapes: square, triangle, and one of your choice.
5. Optional: add other commands to make your language more powerful.
**To Hand In:**
: 1. Please submit your program and executable code via Blackboard.
2. Provide the instructor with a hard copy in the following order:
* Course title, course number, experiment title, student name, and date
* The compiler and operating system used to write and execute your program
* The answers to the following questions
* Use of arrays, and functions for the simulation.
* How would use this simple language to drive a plotter?
***Note that this is a college lvl C++ class for EE majors, use simple minded programing and no major stuff
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
nothing