Nathan Wilkinson output
A:\>assignment2 < c:\temp\p2goodin.txt
This program is designed to input 35 three digit
integers and output the min, max, avg, location
of the max, a sorted array by columns, and finally
the new location of the largest integer from the
sorted array
Please enter up to 5 sets of 3 digit integers with
no leading spaces or seperating spaces
example: 123456789123456
Your array contains:
[666,616,-12, 0, 0, 0, 0]
[555,323,-35, 0, 0, 0, 0]
[444,345,-42, 0, 0, 0, 0]
[333,456,-91, 0, 0, 0, 0]
[222,987,-23, 0, 0, 0, 0]
The max is: 987
The min is: -91
The avg is: 135.54286
The max position is: (5,2)
Your sorted array by columns looks like this:
[222,323,-91, 0, 0, 0, 0]
[333,345,-42, 0, 0, 0, 0]
[444,456,-35, 0, 0, 0, 0]
[555,616,-23, 0, 0, 0, 0]
[666,987,-12, 0, 0, 0, 0]
Based on the new sorted column array,
The max position is: (5,2)
The program is finished, you can close the window
A:\>assignment2 < c:\temp\p2bad.txt
This program is designed to input 35 three digit
integers and output the min, max, avg, location
of the max, a sorted array by columns, and finally
the new location of the largest integer from the
sorted array
Please enter up to 5 sets of 3 digit integers with
no leading spaces or seperating spaces
example: 123456789123456
Your array contains:
[666,616, 0, 0, 0, 0, 0]
[555, 32, 0, 0, 0, 0, 0]
[444, 0, 0, 0, 0, 0, 0]
[333, 0, 0, 0, 0, 0, 0]
[222, 0, 0, 0, 0, 0, 0]
The max is: 666
The min is: 0
The avg is: 81.94286
The max position is: (1,1)
Your sorted array by columns looks like this:
[222, 0, 0, 0, 0, 0, 0]
[333, 0, 0, 0, 0, 0, 0]
[444, 0, 0, 0, 0, 0, 0]
[555, 32, 0, 0, 0, 0, 0]
[666,616, 0, 0, 0, 0, 0]
Based on the new sorted column array,
The max position is: (5,1)
The program is finished, you can close the window
A:\>assignment2 < c:\temp\p2full.txt
This program is designed to input 35 three digit
integers and output the min, max, avg, location
of the max, a sorted array by columns, and finally
the new location of the largest integer from the
sorted array
Please enter up to 5 sets of 3 digit integers with
no leading spaces or seperating spaces
example: 123456789123456
Your array contains:
[666,616,-12,111,212,987,132]
[555,323,-35,222,434,212,498]
[444,345,-42,333,454,432,713]
[333,456,-91,444,567,345,543]
[222,987,-23,555,456,798,721]
The max is: 987
The min is: -91
The avg is: 397.51428
The max position is: (5,2)
Your sorted array by columns looks like this:
[222,323,-91,111,212,212,132]
[333,345,-42,222,434,345,498]
[444,456,-35,333,454,432,543]
[555,616,-23,444,456,798,713]
[666,987,-12,555,567,987,721]
Based on the new sorted column array,
The max position is: (5,2)
The program is finished, you can close the window
A:\>
Goodin: The program computed the average using 0s
Bad: The program ran as if nothing bad was input
Full: