Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello this is for Advanced Python Programming and this is a homework assignment that I am having trouble understanding with the code. Please help me

image text in transcribed

Hello this is for Advanced Python Programming and this is a homework assignment that I am having trouble understanding with the code. Please help me and thank you!

This assignment mainly uses turtle module but do not use circle() method of the turtle. You will need to create several functions for this assignment to draw polygons. 1. angle(sides): calculates the angle to turn with user provided number of sides of the polygon. 2. drawShape(Turtle, sides, length): Draws the polygon based on the user input of # of sides and lenght of the side. 3. SpinPolygon(Turtle, sides, angle, length, repeat): Draws the polygon number of times while turn polygon by the angle on the left each time. Below is a sample image for rotating 5 times. (courses/1112378/files/69298443/preview) 4. ScalePolygon(Turtle, sides, length, sfactor, number): Draws a given number of copies of the specified polygon, with each copy drawn with a length and sfactor times the previous length. i.e. if the sfactor is 2 and number of copies is 4 with initial length of 10, it will draw polygon with side length of 10, 20, 40, 80. Below is scaling 4 times.( /courses/1112378/files/69351374/preview) This assignment mainly uses turtle module but do not use circle() method of the turtle. You will need to create several functions for this assignment to draw polygons. 1. angle(sides): calculates the angle to turn with user provided number of sides of the polygon. 2. drawShape(Turtle, sides, length): Draws the polygon based on the user input of # of sides and lenght of the side. 3. SpinPolygon(Turtle, sides, angle, length, repeat): Draws the polygon number of times while turn polygon by the angle on the left each time. Below is a sample image for rotating 5 times. (courses/1112378/files/69298443/preview) 4. ScalePolygon(Turtle, sides, length, sfactor, number): Draws a given number of copies of the specified polygon, with each copy drawn with a length and sfactor times the previous length. i.e. if the sfactor is 2 and number of copies is 4 with initial length of 10, it will draw polygon with side length of 10, 20, 40, 80. Below is scaling 4 times.( /courses/1112378/files/69351374/preview)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions