Question

Question: 22
Consider the following code snippet:

function start(){
drawCircle(40, Color.red, 100, 300);
drawCircle(50, Color.green, 50, 100);
drawCircle(70, Color.blue, getWidth()/2, getHeight()/2);
drawCircle(25, Color.yellow, getWidth()/2, 300);
}

function drawCircle(radius, color, x, y){
var circle = new Circle(radius);
circle.setColor(color);
circle.setPosition(x, y);
add(circle);
}
In the third call to drawCircle(), what values are passed to the coordinates of the center of the circle, assuming the screen width is 400 and the height is 300?



100, 300


50, 100


200, 150


200, 300

Answers

There are no human answers yet.
Answered by GPT 3.5
The values passed to the coordinates of the center of the circle in the third call to drawCircle() are 200 and 150.

Related Questions