Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I strongly suggest you take a look at the answer from thebook....cramster has th

ID: 3616419 • Letter: I

Question

I strongly suggest you take a look at the answer from thebook....cramster has the answer for this problem. what i wanna isto come up with different method from the answer cramster gives,but don't use other knowledge that ive not learnt.
An approximate value of pi can be calculated using the seriesgiven below: (pi = 4[1-1/3+1/5-1/7+1/9....+((-1)^n)/(2n+1)] write a program to calculate the approximate value of piusing this series. the program takes an input n that determines thenumber of terms in the approximation of the value of pi and outputsthe approximation . include a loop that allows the user to repeatthis calculation for new values n until the user says she or hewants to end the program.
An approximate value of pi can be calculated using the seriesgiven below: (pi = 4[1-1/3+1/5-1/7+1/9....+((-1)^n)/(2n+1)] write a program to calculate the approximate value of piusing this series. the program takes an input n that determines thenumber of terms in the approximation of the value of pi and outputsthe approximation . include a loop that allows the user to repeatthis calculation for new values n until the user says she or hewants to end the program.

Explanation / Answer

please rate - thanks #include using namespace std; int main() {double pi; int i,flip,terms,den; coutterms; while(terms>0) {pi=0; flip=1; den=1; for(i=1;i