Question: Modify the program from Lab 3 to show the following image. t = turtle.Turtle() t.penup() t.backward(100) t.left(90) t.forward(100) #now t is in (-100, 100), why?

Modify the program from Lab 3 to show the following image. t = turtle.Turtle() t.penup() t.backward(100) t.left(90) t.forward(100) #now t is in (-100, 100), why? t.right(??) #you fill in a degree in ?? t.pendown() #TODO: draw green shade #TODO: move to the start direction of up shade #TODO: draw cyan shade Warning: for the purpose of grading script, green shade is drawn before cyan shade. They cannot be drawn at the same time. Hints: you may use one of the following approaches. Simplest approach: create two turtles, one to draw green shade and the other to draw cyan shade. By default, each turtle starts from the origin -- coordinates x and y are both zero and faces east. You can use goto method of turtle to move to (-100, 100) so that the shades can be fully displayed in the screen. But that step is optional. Use only one turtle. After drawing green shade, the turtle moves backward appropriate steps to its start point (you may need to calculate the total distance from the turtle's current position to the start point). You may need to penup, pendown and pensize methods of the turtle before drawing cyan shade. Use only one turle. After drawing green shade, the turtle go to the start point. You may need use penup, pendown, and pensize methods of the turtle before drawing cyan shade. For explanation of turtle commands, read turtle library.

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!