Question: python python on to the math module here: https://docs.python.org/library/math.html Problem 4 Create a new python file with the usual comment header to solve the following
on to the math module here: https://docs.python.org/library/math.html Problem 4 Create a new python file with the usual comment header to solve the following problem 1. A pentagon is a five-sided polygon. The internal angles of a pentagon add up to 5:10. Use the turtle module to draw a regular pentagon in which all sides are of equal length and all angles are equal. Use variables to store the length of the sides of your pentagon and the degree of the angles of your pentagon. When using turtle commands, use the variables names rather than numerical values 2. Use the turtle module to draw a 5-pointed star. We can think of the 5 pointed star as a pentagon in which an isosceles triangle sits on the base of each side of the pentagon, forming the points of the star Since you have already calculated the internal angles of the pentagon, you can use this information to calculate the base angles of the isosceles triangle, as they are supplementary angles. Now that you have two angles of the isosceles triangle calculated, you can find the third angle. Recall that the angles of a triangle will sum to 180. Use another variable to store the value of the angle that the turtle must turn to draw the star. You may want to comment out your code for part 1 when you are running the code for this part
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
