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 observations. The sample data is to be stored in a onedimensional REAL array of size Each sample observation is generated by taking the sum of random numbers in the range of zero to one using the builtin Fortran random number generator. That is each observation may be generated by source code similar to the following, where the sum of the random numbers is stored in REAL variable total.
total
do n numbr numbr
call randomnumberr
total total r
end do
The value of total is then stored in the next available element of a REAL array of size
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
MINVALx returns the minimum value of array x
MAXVALx returns the maximum value of array x
SUMx returns the numerical sum of the contents of array x
Requirements
The sample size and number of random numbers summed per observation 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
