Question: xtra Credit: .Create a function star_polygon (num pts, num skip, side_length) that takes the number of points (num_pts), the number of points to skip to

 xtra Credit: .Create a function star_polygon (num pts, num skip, side_length)

xtra Credit: .Create a function star_polygon (num pts, num skip, side_length) that takes the number of points (num_pts), the number of points to skip to calculate the next angle (num_skip), and the length of each line in the star (side_1ength) as parameters. Background information on regular star polygons: https://en.wikipedia.org/wiki/Regular polygon#Regular star.polygons To determine how far to turn your turtle, you can calculate the angle by multiplying 360 by the number of points to skip, divided by the total number of points. . .Don't forget to test your function by calling it multiple times with different parameters. Turn in a printout of your code and a printout of your turtle drawing. Some example star polygons

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!