Expected Results
Sample input
2.0 3.0 4.0 (Enter and Control-D)
(or a.out < input.dat)
The output should be
3 data items read
maximum value read = 4.000000
minimum value read = 2.000000
sum of all values read = 9.000000
mean = 3.000000
variance = 0.666667
standard deviation = 0.816497
Previous slide
Next slide
Back to first slide
View graphic version