Question: Write a program that uses turtle graphics to generate the image below: Hints: Let the turtle move forward 200 steps and use the sequence forward/left/stamp.

Write a program that uses turtle graphics to generate the image below:

Hints: Let the turtle move forward 200 steps and use the sequence forward/left/stamp. This assignment aims to challenge you to analyze the image to deduce the process (given a description of the output, write the program to produce it), which is how software developers often approach problems. So what should you do? Try to puzzle out the image, break down what the turtle does, then apply what you have learned so far about definite loops (for loops) and turtle graphics to reproduce that process. Here some guiding questions:

  • How many turtles do you see? How many repetitions?
  • What does the turtle do in each repetition?
  • Once you figured out the answer to the previous two questions, play around with the angle to produce the image.
  • Look up the turtle functions pencolor() and fillcolor() to produce the turtle colors?
  • You have used that background color before, what color was it?

Hope this helps!!!

here is my code but there are some errors which says

Background is cyan. It is supposed to be cyan. Turtle pencolor is red. It is supposed to be red. Turtle Fill is the wrong color. It is supposed to be yellow. Turtle stamps the correct number of times. The turtle in your program is facing the wrong direction. The turtle in your program turned the wrong number of times. The turtle in your program traveled the correct distance. Test Failed: False != True

import turtle #importing the turtle wn=turtle.Screen() #this line calls the screen and we can now access screen by variable wn wn.bgcolor("cyan") #setting screen color as required myt=turtle.Turtle() #now we will access turtle using variable 'myt' myt.shape("turtle") #giving the shape of turtle to pen myt.color("yellow") #the color of turtle will be yellow now myt.pencolor("red") #the color of the pen is set to red i=0 while(i

Write a program that uses turtle graphics to generate the image below:

can anyone help me out.

Hints: Let the turtle move forward 200 steps and use the sequence

have to draw this by using turtle graphics

Transcribed image text

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!