Question: need a java program that searches a binary file of numbers of type int and displays the numbers and the sum, average, minimum, and maximum
need a java program that searches a binary file of numbers of type int and displays the numbers and the sum, average, minimum, and maximum of the numbers to the console. The name of the binary number file is "chapter10numbers.dat".
For reference, the contents of the dat file are these 5 numbers. 27 5 50 10 2
***specifications use an InputStream to read the binary file and a loop to read each record in the file. Import java.io.ObjectInputStream Import java.io.FileInputStream use a Try Catch block to catch any errors.
The output must to look like this.

output Chap10Question9 (run) Number Numbers read from file 50 10 Grand Total: 94.0 Count: Statistics computed from file data Average: 18.8 Smallest number: 2 Largest number 50 BUILD SUCCESSFUL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
