Question 11A Write function named concentric that uses turtle graphics to draw a concentric (same center) circle of specified radius. The function concentric takes two parameters: t, a turtle that is used to draw the circle. The turtle t may be in any position, orientation and up/down state. radius, a positive integer that is the radius of the circle to be drawn The function concentric should: draw a circle whose center is the initial position of t leave t in its initial position and orientation when it returns The function concentric may use the method circle in the turtle class, which draws a circle of specified radius in a counterclockwise direction. Note: the turtle is not at the center of the circle drawn by the circle method; it is on the circle. For example, t.circle(100) draws the following circle. Question 11B Write function named dartboard that uses the concentric function of Question 11A to draw a set of concentric circles of increasing radius. The function dartboard takes three parameters: turt, a turtle that is used to draw the concentric circles numRings, an integer that is the number of circles to draw delta, a positive integer that is the increase in the radius of each successive circle The function dartboard should leave turt in its initial position and orientation. For example, the function call dartboard(aTurt, 5, 20) should produce the following graphical output. def

Leave a Reply

Your email address will not be published.