Matt Kerster output
A:\>program2 < c:\temp\p2goodin.txt
THIS PROGRAM WILL TAKE IN INPUT FROM THE USER, THEN
MANIPULATE AND PROVIDE INFORMATION ABOUT THE DATA TO
THE USER.
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
DATA NOT SORTED
666 616
555 323
444 345
333 456
222 987
DATA SORTED IN ASCENDING ORDER
222 323
333 345
444 456
555 616
666 987
LARGEST INTEGER: 987
SMALLEST INTEGER: 222
AVERAGE OF DATA: 494
POSITION OF LARGEST INTEGER BEFORE SORT:
ROW: 5 COLUMN: 2
POSITION OF LARGEST INTEGER AFTER SORT:
ROW: 5 COLUMN: 2
PROGRAM IS FINISHED. THANK-YOU
A:\>program2 < c:\temp\p2bad.txt
THIS PROGRAM WILL TAKE IN INPUT FROM THE USER, THEN
MANIPULATE AND PROVIDE INFORMATION ABOUT THE DATA TO
THE USER.
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
fmt: read unexpected character
apparent state: unit 5 (unnamed)
last format: (I3,I3,I3,I3,I3)
lately reading sequential formatted external IO
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
A:\>program2 < c:\temp\p2full.txt
THIS PROGRAM WILL TAKE IN INPUT FROM THE USER, THEN
MANIPULATE AND PROVIDE INFORMATION ABOUT THE DATA TO
THE USER.
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
PLEASE ENTER 3-DIGIT NUMBERS WITH NO SPACES:
HIT CNTRL+Z WHEN FINISHED ENTERING IN NUMBERS
NO MORE THEN 15 DIGITS SHOULD BE ENTERED
DATA NOT SORTED
666 616 -12 111 212 987
555 323 -35 222 434 212
444 345 -42 333 454 432
333 456 -91 444 567 345
222 987 -23 555 456 798
DATA SORTED IN ASCENDING ORDER
222 323 -12 111 212 987
333 345 -35 222 434 212
444 456 -42 333 454 432
555 616 -91 444 567 345
666 987 -23 555 456 798
LARGEST INTEGER: 987
SMALLEST INTEGER: -91
AVERAGE OF DATA: 376
POSITION OF LARGEST INTEGER BEFORE SORT:
ROW: 1 COLUMN: 6
POSITION OF LARGEST INTEGER AFTER SORT:
ROW: 1 COLUMN: 6
PROGRAM IS FINISHED. THANK-YOU
A:\>
I found:
1, 17, 10, 14, 15