Question: Big e Name: Bige.java is known as Euler's number and is another magic number like . The numerical value of is approximately 2.71828. The following

Big e Name: Bige.java is known as Euler's number and is another magic number like . The numerical value of is approximately 2.71828. The following formula can produce an estimate of e: e = 1/1! + 1/2! + 1/3! + 1/4!.... 1/i!

Write a program in java that gets a number from the user for how many iterations and how many decimal places and displays the resulting estimate of . Note that for large amounts of iterations and decimal places, your program could take a long time to run.

Sample Runs:

Enter number of iterations: 100

Enter number of decimal places: 5

Estimate: 2.71921

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!