Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I already did Question 11A. I need help with Question 11B. def concentric(t,r): t.penup() t.forward(r) t.left(90) t.pendown() t.circle(r) t.penup() t.left(90) t.forward(r) t.right(180) if __name__=='__main__': concentric(t,100)
I already did Question 11A. I need help with Question 11B.
def concentric(t,r): t.penup() t.forward(r) t.left(90) t.pendown() t.circle(r) t.penup() t.left(90) t.forward(r) t.right(180) if __name__=='__main__':
concentric(t,100)
Question 11A (10 points) Write a 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 draw 1. 2. 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 For example, if aTurtle is pointed to the right, the function call concentric(aTurtle, 100) 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(100) draws the circle at the rightStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started