Question: I need this program done in C Please do the entire code And please edit the code that i gave No other form will work

I need this program done in C
Please do the entire code
And please edit the code that i gave
No other form will work
Also provide screenshot please
 I need this program done in C Please do the entire
code And please edit the code that i gave No other form

Code Problem 1(20 points) Estimating e In this problem, we run random simulations to estimate e. We will not explain in detail the math behind it. Below is what we need to do. Fill in the count,n function in the value of_e.c file. The provided function uniform random a random number in the range [0,1). Repcatedly call this function, kceping track of the sum of random numbers generated, and stop when the sum exceeds 1. Return the count of random numbers generated. For example, if the first generated random number is 0.4864, since it does not exceed 1, we generate another number; suppose we get 0.3738. Our sum is 0.8602. Since that does not exceed 1, we generate another number; suppose we get 0.259. Our sum is now 1.1192. Since that does exceed 1, we do not generate another random number. Instcad, we return 3, the number of random numbers gencrated. include include //This is the function to generate a random number uniformly between double unifore_random return drand48); //In the following function, repeatadly ca all the function uniform_random keeping track of the //sum of random numbers generated, and stop when the sum exceeds 1. / /Return the count of random numbers generated. int count_nOt Put your code in here 3 int main(int argc, char** argv) 4 srand48 (1551142124); 5 int n 200800; 6 unsigned int totale; 7for (int i e i

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!