module data_module implicit none integer, parameter :: n = 12 real, dimension (1:n) :: rainfall real, dimension (1:n) :: sorted contains subroutine readdata implicit none integer :: i character (len=40) :: filename print *, ' What is the filename ?' read *, filename open (unit=100, file=filename) do i = 1, n read (100, *) rainfall(i) end do end subroutine readdata subroutine sortdata implicit none sorted = rainfall call selection contains subroutine selection implicit none integer :: i, j, k real :: minimum do i = 1, n - 1 k = i minimum = sorted(i) do j = i + 1, n if (sorted(j)