Join the IDNLearn.com community and get your questions answered by experts. Our platform provides trustworthy answers to help you make informed decisions quickly and easily.

30! POINTS NEED HELP NOW

Answer the following three questions and then submit them.

1. Explain in detail what the start function does and how many times you should call the start function when writing your program.

2. Write a program that places a black circle on the screen with a radius of 35 in every place where the mouse is clicked.



3. Explain in detail how the code works and what this code will output.

function start(){

var a = 10;

var b = 5;

var c = 2;

var expression = ((a - b) * c) % 3;

println(expression);

}


Sagot :

1) The start function should be called 1 time when writing your program. When you click run, this function is activated. Every program needs a start function similar to function start ()

What is a function?

A function is a section of well-organized, reusable code that executes a single, connected action. Your application will be more modular thanks to functions, which also allow for significant code reuse.

You have already seen several functions like printf() and main (). These are referred to as built-in functions that the language offers, but we can also create our own functions, and this tutorial will show you how to do so in the C programming language.

2) a program that places a black circle on the screen with a radius of 35 in every place where the mouse is clicked.

function start(){

mouseClickMethod(drawCircle);

}

function drawCircle(e){

var circle = new Circle(35);

circle.setPosition(e.getX(), e.getY());

add(circle);

}

3. the code works and this code will output 1

Learn more about  function

https://brainly.com/question/20476366

#SPJ1