Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Students also viewed these Databases questions