Matt Grady FORTRAN output

Microsoft Windows 2000 [Version 5.00.2195]

(C) Copyright 1985-2000 Microsoft Corp.

C:\WINNT\system32>g:

G:\>dir

Volume in drive G is Sep 22 2005

Volume Serial Number is 8AC4-569B

Directory of G:\

09/22/2005 11:39a 70,958 PA2.exe

09/22/2005 11:39a 9,239 PA2.f

2 File(s) 80,197 bytes

0 Dir(s) 0 bytes free

G:\>pa2 < c:\p2goodin.txt

YOU WILL BE ASKED TO INPUT FIVE THREE DIGIT INTEGERS

AT EACH PROMPT. IF YOU ENTER MORE THAN FIFTEEN

DIGITS, THEY WILL BE IGNORED. IF YOU ENTER LESS THAN

FIFTEEN DIGITS, THE REST OF THE LINE WILL BE TREATED

AS ZEROES. YOU MAY STOP INPUT AT ANY TIME BY PRESSING

<CTRL>+Z AT AN EMPTY PROMPT.

ONCE INPUT HAS ENDED, YOU WILL SEE TWO TABLES. THE

FIRST IS INPUT AS ENTERED, UNORDERED. THE SECOND WILL

HAVE ORDERED EACH COLUMN OF DATA FROM LOWEST TO

GREATEST VALUE. YOU WILL ALSO BE GIVEN THE LARGEST

AND SMALLEST VALUES INPUTTED, ALONG WITH THE AVERAGE

OF ALL INPUT. FINALLY, THE POSITION OF THE LARGEST

ELEMENT IN THE ARRAY BOTH PRE AND POST SORT WILL BE

GIVEN.

VALUES (1,1) (1,2) (1,3) (1,4) (1,5):

VALUES (1,6) (1,7) (2,1) (2,2) (2,3):

VALUES (2,4) (2,5) (2,6) (2,7) (3,1):

UNORDERED INPUT CHART

1 2 3 4 5 6 7

------

1 | 666 555 444 333 222 616 323

|

2 | 345 456 987 -12 -35 -42 -91

|

3 | -23 0 0 0 0 0 0

|

4 | 0 0 0 0 0 0 0

|

5 | 0 0 0 0 0 0 0

COLUMN ORDERED INPUT CHART

1 2 3 4 5 6 7

------

1 | -23 0 0 -12 -35 -42 -91

|

2 | 0 0 0 0 0 0 0

|

3 | 0 0 0 0 0 0 0

|

4 | 345 456 444 0 0 0 0

|

5 | 666 555 987 333 222 616 323

SMALLEST NON-ZERO VALUE: -91

AVERAGE NON-ZERO VALUE: 316

LARGEST NON-ZERO VALUE: 987

HIGH VALUE BEFORE SORT FOUND IN R2 C3

HIGH VALUE AFTER SORT FOUND IN R5 C3

EVALUATION COMPLETE - PROGRAM ENDED

G:\>pa2 < c:\bad

The system cannot find the file specified.

G:\>pa2 < c:\bad.txt

The system cannot find the file specified.

G:\>pa2 < c:\p2bad.txt

YOU WILL BE ASKED TO INPUT FIVE THREE DIGIT INTEGERS

AT EACH PROMPT. IF YOU ENTER MORE THAN FIFTEEN

DIGITS, THEY WILL BE IGNORED. IF YOU ENTER LESS THAN

FIFTEEN DIGITS, THE REST OF THE LINE WILL BE TREATED

AS ZEROES. YOU MAY STOP INPUT AT ANY TIME BY PRESSING

<CTRL>+Z AT AN EMPTY PROMPT.

ONCE INPUT HAS ENDED, YOU WILL SEE TWO TABLES. THE

FIRST IS INPUT AS ENTERED, UNORDERED. THE SECOND WILL

HAVE ORDERED EACH COLUMN OF DATA FROM LOWEST TO

GREATEST VALUE. YOU WILL ALSO BE GIVEN THE LARGEST

AND SMALLEST VALUES INPUTTED, ALONG WITH THE AVERAGE

OF ALL INPUT. FINALLY, THE POSITION OF THE LARGEST

ELEMENT IN THE ARRAY BOTH PRE AND POST SORT WILL BE

GIVEN.

VALUES (1,1) (1,2) (1,3) (1,4) (1,5):

VALUES (1,6) (1,7) (2,1) (2,2) (2,3):

ERROR, NON-INTEGER INPUT -- PROGRAM ABORTED

G:\>pa2 < c:\p2full.txt

YOU WILL BE ASKED TO INPUT FIVE THREE DIGIT INTEGERS

AT EACH PROMPT. IF YOU ENTER MORE THAN FIFTEEN

DIGITS, THEY WILL BE IGNORED. IF YOU ENTER LESS THAN

FIFTEEN DIGITS, THE REST OF THE LINE WILL BE TREATED

AS ZEROES. YOU MAY STOP INPUT AT ANY TIME BY PRESSING

<CTRL>+Z AT AN EMPTY PROMPT.

ONCE INPUT HAS ENDED, YOU WILL SEE TWO TABLES. THE

FIRST IS INPUT AS ENTERED, UNORDERED. THE SECOND WILL

HAVE ORDERED EACH COLUMN OF DATA FROM LOWEST TO

GREATEST VALUE. YOU WILL ALSO BE GIVEN THE LARGEST

AND SMALLEST VALUES INPUTTED, ALONG WITH THE AVERAGE

OF ALL INPUT. FINALLY, THE POSITION OF THE LARGEST

ELEMENT IN THE ARRAY BOTH PRE AND POST SORT WILL BE

GIVEN.

VALUES (1,1) (1,2) (1,3) (1,4) (1,5):

VALUES (1,6) (1,7) (2,1) (2,2) (2,3):

VALUES (2,4) (2,5) (2,6) (2,7) (3,1):

VALUES (3,2) (3,3) (3,4) (3,5) (3,6):

VALUES (3,7) (4,1) (4,2) (4,3) (4,4):

VALUES (4,5) (4,6) (4,7) (5,1) (5,2):

VALUES (5,3) (5,4) (5,5) (5,6) (5,7):

UNORDERED INPUT CHART

1 2 3 4 5 6 7

------

1 | 666 555 444 333 222 616 323

|

2 | 345 456 987 -12 -35 -42 -91

|

3 | -23 111 222 333 444 555 212

|

4 | 434 454 567 456 987 212 432

|

5 | 345 798 132 498 713 543 721

COLUMN ORDERED INPUT CHART

1 2 3 4 5 6 7

------

1 | -23 111 132 -12 -35 -42 -91

|

2 | 345 454 222 333 222 212 212

|

3 | 345 456 444 333 444 543 323

|

4 | 434 555 567 456 713 555 432

|

5 | 666 798 987 498 987 616 721

SMALLEST NON-ZERO VALUE: -91

AVERAGE NON-ZERO VALUE: 397

LARGEST NON-ZERO VALUE: 987

HIGH VALUE BEFORE SORT FOUND IN R2 C3

HIGH VALUE AFTER SORT FOUND IN R5 C5

EVALUATION COMPLETE - PROGRAM ENDED

G:\>