LAB 03: Standard Deviation Lab - Fortran Version
Lab 03 Report form,
.doc
Objective
Learning Fortran 90 programming, Fortran 90 array processing. Topics include
- Compiling
Fortran 90 programs
- keyboard I/O: read(*,*) and write(*,*)
- File creation, writing to files
- Arrays and loops
- Matrix multiplication, subroutines, random numbers
Part 1
- Download this program to write random numbers to a file:
randomnums.f90
- Run the program to create files of 50 or more random numbers
-- Look at the contents of each of the number files to verify the programs worked.
Part 2 - Static Arrays in Fortran 90
printResults.f90 - shell file to print your results to a file
- Write a Fortran 90 program to put 1000 random numbers in an array. (See if you can increase this to 10000 or more without a segmentation memory fault)
- Print the array of values
- Find the highest and lowest values
- Find the average value
- Find the standard deviation
- Sort the numbers