Input file grades0.txt:
./grades grades0.txt
Grade Stats:
------------
total: 16
min: 56.50
max: 99.25
mean: 77.89
median: 74.50
std dev: 12.41
Grade Histogram:
0 - 9:
10 - 19:
20 - 29:
30 - 39:
40 - 49:
50 - 59: *
60 - 69: ***
70 - 79: *******
80 - 89: **
90 - 99: ***
100:
wasted array capacity: 4
Input file grades1.txt:
./grades grades1.txt
Grade Stats:
------------
total: 33
min: 48.00
max: 100.00
mean: 78.61
median: 74.50
std dev: 14.64
Grade Histogram:
0 - 9:
10 - 19:
20 - 29:
30 - 39:
40 - 49: *
50 - 59: **
60 - 69: ******
70 - 79: ***********
80 - 89: ****
90 - 99: *******
100: **
wasted array capacity: 7
Input file grades2.txt:
./grades grades2.txt
Grade Stats:
------------
total: 259
min: 20.00
max: 99.50
mean: 75.11
median: 78.00
std dev: 16.05
Grade Histogram:
0 - 9:
10 - 19:
20 - 29: ****
30 - 39: *****
40 - 49: **********
50 - 59: *********************
60 - 69: *********************************************
70 - 79: **********************************************************
80 - 89: *********************************************************************
90 - 99: ***********************************************
100:
wasted array capacity: 61