calculate pi for infinite series, Other Engineering

Assignment Help:
Write a program to calculate from the infinite series:


Print a table showing the value of approximated by one term, two terms, three terms, four terms, and so on from the series. The table should have three columns showing the number of terms used, the approximated value of , and the difference between the actual value (3.141592654) and the approximate value calculated by the above sum (eight places of decimal). How many terms of this series are needed to get three significant digits of accuracy (3.14)?

Your program should prompt the user to identify the number of terms to be summed up, and then should print the above table with three columns.

Your solution should accomplish the following:
• Ask user to enter the number of terms to use for approximating the value of .
• Perform the necessary calculations to determine the approximate value of .
• Find the difference between approximated value of and the actual value of .
• Display the table (sample given at the end) showing three columns showing the number of terms used, the approximated value of , and the difference between the actual value (3.141592654) and the approximate value calculated by the above sum (eight places of decimal).
• Ask the user whether the program needs to be re-run or terminated.
on..

Related Discussions:- calculate pi for infinite series

Propeller construction, PROPELLER CONSTRUCTION METAL PROPELLERS Mo...

PROPELLER CONSTRUCTION METAL PROPELLERS Most metal propellers have forged alloy blades protected from corrosion by anodising and often further protected by polyurethane en

Riveting, Riveting  is a fixed fastening procedure in which the end of the ...

Riveting  is a fixed fastening procedure in which the end of the metal pin is pressed over or spread out by hammering operation. Wrought iron and steel are used for the riveting an

Tcp/ip, Discuss the effect of supernetting on routing and explain how the i...

Discuss the effect of supernetting on routing and explain how the issue has been tackled. Effect: increased routing information

International business, VK Ltd a multi product company, furnishes you the f...

VK Ltd a multi product company, furnishes you the following data relating to the year 2000. First half sales Second half sales Sales Rs.45000 Rs.50000 Total cost Rs.40000 Rs

HELP!!, HELP IN ELECTRONIC...I AM DOING ELECTRONIC ENG. ... GUIDE ME THE WA...

HELP IN ELECTRONIC...I AM DOING ELECTRONIC ENG. ... GUIDE ME THE WAY...

Calculate the thermal conductivity, A steak which is 2.5cm thick is cooking...

A steak which is 2.5cm thick is cooking in a frying pan which has a 4mm thick base. The electric element used to heat the pan is turned to a level such that the bottom surface of t

Y 4 u, Ask questioy 4 men #Minimum 100 words accepted#

Ask questioy 4 men #Minimum 100 words accepted#

Propeller efficiency, PROPELLER EFFICIENCY: The propeller is 80 - 87% e...

PROPELLER EFFICIENCY: The propeller is 80 - 87% efficient up to approximately 400 mph.  Generally, beyond this performance will fall off, although new materials and improved bl

Structural Engineering, Hi, I need a help in structural engineering theis ...

Hi, I need a help in structural engineering theis work

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd