Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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)

image text in transcribed

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 right

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

Step: 3

blur-text-image

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

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

advantages and disadvantages of cost of service regulation

Answered: 1 week ago

Question

=+ a. How does this change affect the incentives for working?

Answered: 1 week ago