Question: An equilateral triangle is a triangle in which all three sides have the same length and all three internal angles are equal to each other

An equilateral triangle is a triangle in which all three sides have the same length and all three internal angles are equal to each other and are each 60 degrees.
Write the function triangle that draws an equilateral triangle of specified size. The function triangle takes two parameters:
- t, a turtle that is used for drawing
- side, a positive integer that is the length of one side

Do not make any assumptions about the initial up/down state of the turtle, its position on the screen or its orientation. The function triangle should begin drawing with the turtle at its initial position and orientation. The three sides of the equilateral triangle should be drawn using clockwise rotations in between. When triangle returns, the turtle should again be in its initial position and orientation.

For full credit, you must perform repeated operations using a loop.

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!