Question: Question 11B: Write a function named umbrella that uses turtle graphics and the function triangle in question 11A to draw a sequence of triangles of

 Question 11B: Write a function named umbrella that uses turtle graphics Question 11B: Write a function named umbrella that uses turtle graphics and the function triangle in question 11A to draw a sequence of triangles of specified size, position and orientation. The function umbrella takes 4 parameters: 1. t, a turtle used for drawing 2. side, the length of a side 3. rotation, the angle that each triangle is rotated counterclockwise relative to the previous triangle 4. count, the number of triangles to draw If umbrella is called by the following code, this would be correct output: import turtle snappy = turtle.Turtle() umbrella(snappy, 100, 60, 6)

Question 11A (8 points) Write a function named triangle that uses turtle graphics to draw an equilateral triangle of specified size. An equilateral triangle is a triangle in which all three sides are equal and all three internal angles are also equal and are 60 degrees each The function triangle takes two parameters: 1. 2. t, a turtle that is used for drawing side, the length of a side The function triangle should draw an equilateral triangle at the initial position and orientation of t, and should leave t with the same position and orientation on exit. Turtle t is initially at one of the three points of intersection and is oriented in the direction in which one of the sides should be drawn. Do not make any assumptions about the initial up/down state of the turtle. For full credit you must use a loop for repeated operations. The following is correct sample input and output. import turtle snappy turtle.Turtle() triangle(snappy, 100)

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!