Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer all using Python. Will rate if all are answered. Question 11A (6 points) Write a function named hemispheres that uses turtle graphics to draw

image text in transcribed

image text in transcribed

Answer all using Python. Will rate if all are answered.

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 sturtle.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 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 sturtle.Screen() paint turtle.Turtle() multispheres(paint, 100, .8, 88, 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

Navigating The Supply Chain Maze A Comprehensive Guide To Optimize Operations And Drive Success

Authors: Michael E Kirshteyn Ph D

1st Edition

B0CPQ2RBYC, 979-8870727585

More Books

Students also viewed these Databases questions