Question: Write a function named concentric that uses turle graphics to draw a concentric (same center) specified radius. The function concentric takes two parameters circle of
Write a function named concentric that uses turle graphics to draw a concentric (same center) specified radius. The function concentric takes two parameters circle of 1. t, a turtle that is used to draw the circle. The turtle t may be in any position, orientation up/down state. radius, a positive integer that is the radius of the circle to draw and 2. The function concentric should: 1. 2. draw a circle whose center is the initial position of t leave t in its initial position and orientation when it returns For example, if aTurtle is pointed to the right, the function call concentric(aTurtle, 109) should produce the graphical output at the left. The function concentric may use the circle method in the turtle class, which draws a circle of specified radius in a counterclockwise direction. Note: the circle method draws a circle with the turtle on the perimeter, not at the center. For example, t.circle (10e) draws the circle at the right. Question 11B (10 points) Write a function named dartboard that uses the concentric function of Question 11A to draw a set of concentric circles of increasing radius. Call concentric and assume that it works correctly, even if you are not sure that your solution to Question 11A is completely correct. The function dartboard takes three parameters: 1. 2. 3. 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 radius of the first circle and also the increase in the radius of each successive circle The function dartboard should leave turt in its initial position and orientation. For example, the on call dartboard(aTurt, 5, 20) should produce the following graphical output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
