Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions