Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Question 11A Write function named concentric that uses turtle graphics to draw a concentric (same center) circle of specified radius. The function...

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:

  1. t, a turtle that is used to draw the circle. The turtle t may be in any position, orientation and up/down state.
  2. radius, a positive integer that is the radius of the circle to be drawn

The function concentric should:

  1. draw a circle whose center is the initial position of t
  2. 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:

  1. turt, a turtle that is used to draw the concentric circles
  2. numRings, an integer that is the number of circles to draw
  3. 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
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question