Posted by **maria PLEASE HELP** on Friday, March 9, 2012 at 4:22pm.

Write a MAIN function and a FUNCTION to compute the sum of the below series.

((-1)^(n+1)*n!)/(n*n) (from n=1 to infinity)

Within the MAIN function:

. Read a variable EPSILON of type DOUBLE (desired accuracy) from

the standard input.

EPSILON is an extremely small positive number which can be anything

between 1E-06 (10^(-6)) and 1E-12 (10^(-12)).

. EPSILON value will be passed to the FUNCTION as an argument.

Within the FUNCTION:

. In a do-while loop:

. Continue adding up the terms until |Sn+1 - Sn| < EPSILON.

. Sn is the sum of the first n-terms.

. Sn+1 is the sum of the first (n+1)-terms.

When the desired accuracy EPSILON is reached print the SUM and the number

of TERMS added to the sum.

## Answer This Question

## Related Questions

- C++ - Write a MAIN function and a FUNCTION to compute the sum of the below ...
- C++ - Write a MAIN function and a FUNCTION to compute the sum of the below ...
- C++ - you are right the question is exactly like this... can you help me for ...
- calculus - Recall that a function G(x) has the limit L as x tends to infinity, ...
- calculus - Recall that a function G(x) has the limit L as x tends to infinity, ...
- Python programming - A standard problem in mathematics is to measure the area ...
- C programming, not C++ - design and implement such a function and use it in a ...
- Teddy - f(x,y) = 3x + 3y Show that for any epsilon in: |2x + 3y - 5| < ...
- how to understand this - design and implement such a function and use it in a ...
- C++ - You are to use an array of doubles to compute the average of a sequence of...

More Related Questions