import java.io.PrintStream; public class SimpleStats { public static void main(String[] args) { PrintStream out = System.out; int x1 = Integer.parseInt(args[0]); int x2 = Integer.parseInt(args[1]); int x3 = Integer.parseInt(args[2]); /* You need to compute AND output the min, max, average, and standard deviation of x1, x2, and x3 ... */ int min = Math.min(Math.min(x1, x2), x3); int max = Math.max(Math.max(x1, x2), x3); double avg = (1.0 / 3) * (x1 + x2 + x3); double std = Math.sqrt(0.5 * (Math.pow((x1 - avg), 2) + Math.pow((x2 - avg), 2) + Math.pow((x3 - avg), 2))); out.println("min = " + min); out.println("max = " + max); out.println("avg = " + avg); out.println("std = " + std); } }