Question: python Problem 5 Recall from Problem 4 that a 5-pointed star was drawn. We can observe that the base of the 5 pointed star is

python
python Problem 5 Recall from Problem 4 that a 5-pointed star was

Problem 5 Recall from Problem 4 that a 5-pointed star was drawn. We can observe that the base of the 5 pointed star is a pentagon and that each point of the star can be viewed as an isosceles triangle in which the base of the triangle is one of the sides of the pentagon. 1. Redraw the 5 pointed star without any lines that run through the middle. First, you can try accomplishing this by manipulating turtle's pen. Recall that turtle.penup0 stops the turtle from drawing a line and turtle.pendown0 returns the turtle to drawing a line. In order to figure out how far the turtle should go before lifting the pen, you will need to calculate the length of the sides of the isosceles triangle that forms the point of the star. We need to know the length of one of the sides of the triangle in order to do this. Let's consider the pentagon that we drew in Problem 4 because we know the length of its sides. We can consider that the base of the isosceles triangle will be the length of one of the sides of our original pentagon. We have already calculated the base angles of the isosceles triangle so we can use the cosine function to find the length of the remaining sides of the triangle: length of base 1 length of side = cos(base angle) elo sodes of ons we can Use the math.cos function from the math module. First you will need to convert degrees to radians because the math.cos function uses radians. Use the math.radians function to perform the conversion. Now, let's consider how we can use the turtle to draw the 5 pointed star without internal lines and without having to pick up the pen. Instead, the turtle will make a turn after it draws one side of the isosceles triangle. Using this method, the turtle will make 10 turns instead of 5 turns as it draws the outline of the star. Find the degree that the turtle should turn for these additional turns and draw the star. Problem 5 Recall from Problem 4 that a 5-pointed star was drawn. We can observe that the base of the 5 pointed star is a pentagon and that each point of the star can be viewed as an isosceles triangle in which the base of the triangle is one of the sides of the pentagon. 1. Redraw the 5 pointed star without any lines that run through the middle. First, you can try accomplishing this by manipulating turtle's pen. Recall that turtle.penup0 stops the turtle from drawing a line and turtle.pendown0 returns the turtle to drawing a line. In order to figure out how far the turtle should go before lifting the pen, you will need to calculate the length of the sides of the isosceles triangle that forms the point of the star. We need to know the length of one of the sides of the triangle in order to do this. Let's consider the pentagon that we drew in Problem 4 because we know the length of its sides. We can consider that the base of the isosceles triangle will be the length of one of the sides of our original pentagon. We have already calculated the base angles of the isosceles triangle so we can use the cosine function to find the length of the remaining sides of the triangle: length of base 1 length of side = cos(base angle) elo sodes of ons we can Use the math.cos function from the math module. First you will need to convert degrees to radians because the math.cos function uses radians. Use the math.radians function to perform the conversion. Now, let's consider how we can use the turtle to draw the 5 pointed star without internal lines and without having to pick up the pen. Instead, the turtle will make a turn after it draws one side of the isosceles triangle. Using this method, the turtle will make 10 turns instead of 5 turns as it draws the outline of the star. Find the degree that the turtle should turn for these additional turns and draw the star

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!