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.

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.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level