import java.io.*; class Numbers1 { // Read a number of integers and store them in an array. // Find and print the biggest and smallest number and the average. public static void main (String[] args) throws IOException { int [] data; int number; double average; BufferedReader in = Text.open(System.in); System.out.print("Type the number of integers that will be entered: "); number=Text.readInt(in); data=NumberOps0.readall(number,in); System.out.println("The numbers entered were:"); NumberOps0.printall(data); System.out.println("The biggest is: "+NumberOps0.biggest(data)); System.out.println("The smallest is: "+NumberOps0.smallest(data)); System.out.print("The average is: "); average=NumberOps0.average(data); System.out.println(Text.writeDouble(average,5,3)); } }