Define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle’s center point,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle’s center point,
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