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, 21.06.2019 21:40
Which is a benefit of getting information from a government website? a. the information will be easy to understand. ob. the information will be the most current. oc. the information can be trusted.
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
You know the right answer?
Define a function drawcircle. this function should expect a turtle object, the coordinates of the ci...
Questions
question
Biology, 16.12.2020 19:40
question
Mathematics, 16.12.2020 19:40
Questions on the website: 13722362