subject

Define a function drawcircle. this function should expect a turtle object, the coordinates of the circle's centerpoint, and the circle's radius as arguments. the function should draw the specified circle. the pen color should bechanged to yellow before drawing a circle and the width of the pen to 5 pixels. the algorithm should draw the circle's circumference by turning 3 degrees and moving a given distance 120 times. calculate the distance moved with theformula 2.0*n*radius/120.0. fill in the circle with blue color. after drawing the circle, hide the turtle. my instructor told me that i have to use the formula not the circle function to make this work. you! import turtleimport mathdef drawcircle(centerpoint, radius): degree = 3count = 0centerpoint = (2.0 * math. pi * radius / 120)t. home()t. setheading(degree)while count < = 120: t. down()t. forward(2.0 * math. pi * radius / 120)t. up()degree += 3t. setheading(degree)count += 1drawcircle(centerpoint, radius)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Define a function drawcircle. this function should expect a turtle object, the coordinates of the ci...
Questions
question
Mathematics, 06.05.2020 05:32
question
Mathematics, 06.05.2020 05:32
question
Mathematics, 06.05.2020 05:32
question
Mathematics, 06.05.2020 05:32
Questions on the website: 13722367