Question: Using Turtle graphic to write the code below: 3. (3 points) Use a loop with turtle graphics to draw a star pattern that has a

Using Turtle graphic to write the code below:

Using Turtle graphic to write the code below: 3. (3 points) Use

3. (3 points) Use a loop with turtle graphics to draw a star pattern that has a user specified number of points. First ask the user how many points they want on the star. Then draw the star by having the turtle trace its perimeter. The inner angle of a star point A will be equal the 360 divided by the number of points on the star. A = 360/points The concave angle between star points B will be twice the inner angle. B= 2A B Figure 3: A five point star for Exercise 3. Use the following test cases to test your code. Save your program as star_pattern.py Input Output figure points Table 1: Test cases for Exercise 3 3. (3 points) Use a loop with turtle graphics to draw a star pattern that has a user specified number of points. First ask the user how many points they want on the star. Then draw the star by having the turtle trace its perimeter. The inner angle of a star point A will be equal the 360 divided by the number of points on the star. A = 360/points The concave angle between star points B will be twice the inner angle. B= 2A B Figure 3: A five point star for Exercise 3. Use the following test cases to test your code. Save your program as star_pattern.py Input Output figure points Table 1: Test cases for Exercise 3

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!