Write the definition of a function named averager that receives a double parameter and returns– as a double — the average value that it has been passed so far.

LANGUAGE: C++

CHALLENGE:

Write the definition of a function named averager that receives a double parameter and returns– as a double — the average value that it has been passed so far.
So, if you make these calls to average, averager(5.0), averager(15.0), averager(4,3), the values returned will be (respectively): 5.0, 10.0, 8.1.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,