Question: PLEASE USE CLANGUAGE 02: (Turtle Graphics) 50 points) The Logo language made the concept of turtle graphics famous. Imagine a mechanical turtle that walks around

 PLEASE USE CLANGUAGE 02: (Turtle Graphics) 50 points) The Logo language

PLEASE USE CLANGUAGE 02: (Turtle Graphics) 50 points) The Logo language made the concept of turtle graphics famous. Imagine a mechanical turtle that walks around the room under the control of a C 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 fireely without writing anything. In this problem you'll simulate the operation of the turtle and create a computerized sketchpad as well. Use a s0-by 50 array floor which is initialized to zeros. Read commands from an array that contains them. The commands that can be given to the turtle are ve forward Keep track of the current turtle position at all times and whether the pen is currently up or down. Assume that the turtle always starts at pasition Q, 0 of the floor with its pen up. Suppose that the turtle is somewhere near the center of the floor. The following program would draw and print a 12.by-12 square 5,12 5,12 5,12 5,12 As the turtle moves with the pen down, set the appropriate elements of array floor to 1s. When the 6 command (print) is given, wherever there's a 1 in the array, display an asterisk, or some other character you choose. Wherever there's a zero, display a blank Write a program to mplement the turtle graphics capabilities discussed here. Write several turtle graphics programs to draw interesting shapes. Add ather commands to increase the power of your turtle graphics language. Note: When your programs is reading the commands, store them in an array. To be processed of you perform scant ("Id " . &comand) as an example, at that command is a 5, you can read the next command with scant,d"command) to parse the comma

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!