Terminé

Arrays and functions

**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

Compétences : Programmation C, Ingénierie, MySQL, PHP, Architecture Logicielle, Tests de Logiciels

en voir plus : turtle programming language, turtle programming, turtlegraphics, programming questions and answers, programming functions, programming college, programing source code, programing language, programing code, powerful programming software, php programing language, php main functions, operating system programming, one lvl, how to write a programming language, how to programing, how to make graphics in c language, how to make a programming language, how to create programing language, how to create a programming language

Concernant l'employeur :
( 2 commentaires ) United States

Nº du projet : #2998093

Décerné à:

vs1984

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 14 jours
(5 Commentaires)
0.4

11 freelance font une offre moyenne de $22 pour ce travail

mihaiscortaru

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(160 Commentaires)
6.0
scalaccio

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(28 Commentaires)
5.2
lmxvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(126 Commentaires)
4.7
shabbirbhimani

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(33 Commentaires)
4.2
gworroll

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(42 Commentaires)
3.7
ciphereye

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(16 Commentaires)
2.7
vw941997vw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(3 Commentaires)
0.6
darkrainbowvw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(0 Commentaires)
0.0
vw594776vw

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(0 Commentaires)
0.0
ekimgram

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 14 jours
(0 Commentaires)
0.0