Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 11A (6 points) Write a function named hemispheres that uses turtle graphics to draw a circle divided into two halves. The function hemispheres takes

image text in transcribed
Question 11A (6 points) Write a function named hemispheres that uses turtle graphics to draw a circle divided into two halves. The function hemispheres takes two parameters: 1. t, a turtle that is used for drawing 2. radius, an integer that is the radius of the circle The turtle t is initially on the edge of the circle at the point that the dividing line should be drawn. The function hemispheres should exit with t in its initial location and orientation. Do not make any assumptions about the initial up/down state of the turtle. The following is correct sample input and output import turtle s # turtle.screen() aTurt = turtle,Turtle() hemispheres (aTurt, 100) Question 11B (14 points) Write a function named multispheres that uses turtle graphics and the function hemispheres in question 11A to draw a sequence of divided circles of specified size and rotation. The function multispheres takes 5 parameters: 1. t, a turtle used for drawing 2. size, the radius of the initial circle raivs 3. ratio, a floating point number that is the ratio of the radii of successive circles 4. angle, the counterclockwise rotation of successive circles 5. num, the number of circles to draw If multispheres is called by the following code, this would be correct graphical output. import turtle ss turtle.Screen() paint turtle.Turtle() multispheres(paint, 188, .8, 8, 4)

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

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions

Question

. . . . are mini charts that inhabit a single cell of a spreadsheet

Answered: 1 week ago