Write an algorithm and program to compute p

Assignment Help Computer Engineering
Reference no: EM132192808

Write an algorithm and program to compute p, using the formula described in the text pi=(4/1)-(4/3)+(4/5)-(4/7)+(4/9)...

Output will include your computed value for p, the math library constant expected value for p and the number of iterations it took to reach six-significant digit accuracy.

The number of iterations could exceed 250,000. Make your output clean and easy to read for comparing results. You may NOT use the math library constant in your computation - directly or indirectly. Use the delta of your running computation to determine when to stop.

Efficiency should always be considered. No rounding is required or allowed. Choose the most appropriate loop/decision structures and variable types.

Input: No user input.

Requirements: Use only material covered in the first six chapters. Style requirements as discussed in class expected.

Submission: Include program documentation that provides clear instructions for how to compile and execute your program. im completely lost on almost everything i dont know how to calculate pi without using th emath sonstant or how to get to six significant figures using loops without rounding. i also dont know what is meant by "include documentation for how to compile and execute program". In Java please.

Reference no: EM132192808

Questions Cloud

Write an application that allows a user shows watch demand : Write an application that allows a user to select one of at least five television shows to watch on demand.
Create chronological resume : Create a Chronological Resume going back 5 years of places you have worked, organizations you have participated in, and education.
What are the intended purposes of medical malpractice : What are the intended purposes of medical malpractice? Does the threat of a lawsuit accomplish these purposes?
What is the coase theorem : What is the Coase Theorem? What is a price ceiling? What is a price floor?
Write an algorithm and program to compute p : Efficiency should always be considered. No rounding is required or allowed. Choose the most appropriate loop/decision structures and variable types.
Will a risk averse investor always choose : Will a risk averse investor always choose a Treasury bond over a corporate bond (assume the maturities are the same)? Explain your answer.
Write an algorithm with programming code to move element : Write an algorithm with programming code to move last element to front in a given Singly Linked List.
Write an application that prints the content of al : Write an application that performs the following Creates an ArrayList, called al that can store integers.
Context-related information : Members have to communicate taskrelatedinformation, social-related information, and context-related information." Discuss thiscomment.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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