Computer Science, asked by msj707153, 7 months ago

the object where you can write your own function and program is

Answers

Answered by sureshgowda24244
2

Answer:

Parts of a "black box" (i.e., a function) Functions can be called "black boxes" because we don't need to know how they work. Just what is supposed to go into them, and what is supposed to come out of them. When defining a program as a black box, we must describe the following attributes of the function.

Explanation:

Please mark as brainliest answer and follow me please and thank me please Because I am a very good boy

Answered by surajgiri04042006
2

Answer:Functions "Encapsulate" a task (they combine many instructions into a single line of code). Most programming languages provide many built in functions that would otherwise require many steps to accomplish, for example computing the square root of a number. In general, we don't care how a function does what it does, only that it "does it"!

When a function is "called" the program "leaves" the current section of code and begins to execute the first line inside the function. Thus the function "flow of control" is:

The program comes to a line of code containing a "function call".

The program enters the function (starts at the first line in the function code).

All instructions inside of the function are executed from top to bottom.

The program leaves the function and goes back to where it started from.

Any data computed and RETURNED by the function is used in place of the function in the original line of code.

Explanation:

Similar questions