Question: USE FORTRAN ONLY!!! Generate Normal Distribution. The program is to generate a sample size of 1 0 0 0 0 0 0 observations. The sample

USE FORTRAN ONLY!!! Generate Normal Distribution.
The program is to generate a sample size of 1000000 observations. The sample data is to be stored in a one-dimensional REAL array of size 1000000. Each sample observation is generated by taking the sum of 50 random numbers in the range of zero to one using the built-in Fortran random number generator. That is, each observation may be generated by source code similar to the following, where the sum of the 50 random numbers is stored in REAL variable total.
total =0.
do n =1, numbr ! numbr =50
call random_number(r)
total = total + r
end do
The value of total is then stored in the next available element of a REAL array of size 1000000.
After the sample array is generated, the program calculates the mean and the standard deviation of the data stored in the array along with the minimum and maximum values.
The following three Fortran intrinsic functions may prove useful in completing the project.
Assuming the sample array is x,
MINVAL(x) returns the minimum value of array x.
MAXVAL(x) returns the maximum value of array x.
SUM(x) returns the numerical sum of the contents of array x.
Requirements
The sample size (1000000) and number of random numbers summed per observation (50) shall be specified in the source code as INTEGER constants.

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!