Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how to solve this python code (the drawings may not match the code) Question 11A (8 points) Write a function named double_circle that uses turtle

image text in transcribed

how to solve this python code (the drawings may not match the code)

Question 11A (8 points) Write a function named double_circle that uses turtle graphics to draw two circles of specified radius that share a common point of origin (Hint you may use the turtle method circle.) The function double_circle takes two parameters: L. t, a turtle that is used to draw the circle. The turtle t may initially be at any location on the 2 radius, an integer that is the radius of each of the circles 1. draw two circles, beginning at the initial position and orientation of t screen and in any orientation and may be either up or down The function double cirele should 2 leave t in its initial position and orientation when it returns For full credit, you must perform repeated operations using a loop. For example, the following is an example of correct graphical output import turtle scrn turtle.Screen() turt turtle. Turtle) turt.right (90) double circle(turt, 100) Question 118 (12 points) Write a function named cirele line that uses turtle graphics and the function double circle from Question 11A to draw a sequence of double circles that lie along a line Each successive double cirdle changes in size relative to the preceding one by a fixed multiplier The function circle Line takes five parameters 1. t, a turtle that is used to draw 2. radius, an integer that is the radius of the first double circle 3. multiplier, a positive floating point number that is the ratio of the radii of successive double circles num repeats, an integer that is the number of double circles to draw 5. separation, an integer that is the distance between the common point of origin of successive double circles The function circle Line should call the function double_circle repeatedly to draw a series of double circles For example, the following would be correct graphical output. import turtle crn turtle.Screen() turt turtle. Turtle) circle_line(turt, 28, 1.2s, 4, 3e)

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

Students also viewed these Databases questions

Question

3. How has Starbucks changed since its early days?

Answered: 1 week ago