Write a function to compute the following series:







Write a test program that displays the following table:


```
#include
#include
#include
using namespace std;

double m(int n)
{
double sum = 0;

for (int i = 1; i <= n; i++)
sum += i * 1.0 / (i + 1);

return sum;
}

int main()
{
cout << "i\t\tm(i)" << endl;
for (int i = 1; i <= 20; i++)
cout << i << "\t\t" << m(i) << endl;

return 0;
}
```

Computer Science & Information Technology

You might also like to view...

The security manager position is much more general than that of the CISO.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Adopted by the Federal Communications Commission in 1949, the ____________________ doctrine required broadcast licenses to function as fiduciaries for the public interest.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology