Page 1 of 1

Define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle’s center point,

Posted: Tue Jul 12, 2022 8:17 am
by answerhappygod
Define a function drawCircle. This function should expect aTurtle object, the coordinates of the circle’s center point, andthe circle’s radius as arguments. The function should draw thespecified circle. The algorithm should draw the circle’scircumference by turning 3 degrees and moving a given distance 120times. Calculate the distance moved with the formula 2.0 × π ×radius ÷ 120.0. Define a function main that will draw a circle withthe following parameters when the program is run: X = 50 Y = 75Radius = 100