Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started