10.9k views
4 votes
which of the following would be a good name for the function that takes the weight of a box and returns the energy needed to lift it

which of the following would be a good name for the function that takes the weight-example-1

2 Answers

0 votes

Answer:Energy (weight)

Explanation:

User Jocky Doe
by
6.7k points
2 votes

Answer:

D. Energy(weight)

Explanation:

The function is composed of two parts, its name and its argument, following the form: name(argument)

The argument refers to inputs of the function, in this case, the weight of the box, and the name refers to the output of the function, in this case, the energy needed to lift the box.

User Nikita Nemkin
by
6.0k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.