SOF PROGRAMMING ASSIGNMENT


Given

Implement

  1. Write a program to loop through all Long's in the file and find the minimum, maximum, and average. You are NOT to use an array to store the numbers, leave them on disk. Email me these three values

  2. Open a NEW (as in not the same one) Sof file and write out these three values: two Longs and one Float. The min should be (Long,0), max (Long,1), and mean (Float,0). Final submission should be binary.

  3. Use the Statistics class included in the tar file. Implement the I/O functions for the Statistics class hierarchically. The three pieces of class data should be written in the order min, max, mean. Write the Statistics object as (Statistics,0) in your output file. Again, the final submission should be binary.