Write a program to sum the following series:




```

#include

using namespace std;



int main()

{

double sum = 0;

for (int i = 1; i <= 97; i += 2)

sum += 1.0 * i / (i + 2);



cout << "sum is " << sum;



return 0;

}

```

Computer Science & Information Technology

You might also like to view...

Suppose that the selector in a Select Case block is the string variable myVar. Which of the following is NOT a valid Case clause?

(A) Case "Adams" (B) Case "739" (C) Case myVar.Substring(0, 1) (D) Case myVar.Length

Computer Science & Information Technology

The textx parameter of the CreditRoll.class specifies whether the text in the applet window is repeated.

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

Computer Science & Information Technology

Slave devices that are connected to a piconet and are sending transmissions are known as what?

A. active slave B. passive slaves C. parked slaves D. neutral slaves

Computer Science & Information Technology

What specific internal control procedure would detect the misplacement of a sales invoice after preparation and not mailed to the customer? The invoice was never found.

What will be an ideal response?

Computer Science & Information Technology