I have this so far...

I believe I have the correct formulation for the mean. I am unsure on how to calculate standard deviation.

import java.util.Scanner; public class Exercise05_21 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("x1:"); int x1 = input.nextInt(); System.out.print("x2:"); int x2 = input.nextInt(); System.out.print("x3:"); int x3 = input.nextInt(); System.out.print("x4:"); int x4 = input.nextInt(); System.out.print("x5:"); int x5 = input.nextInt(); System.out.print("x6:"); int x6 = input.nextInt(); System.out.print("x7:"); int x7 = input.nextInt(); System.out.print("x8:"); int x8 = input.nextInt(); System.out.print("x9:"); int x9 = input.nextInt(); System.out.print("x10:"); int x10 = input.nextInt(); } public int mean(int x1,int x2,int x3,int x4,int x5,int x6,int x7,int x8,int x9,int x10) { int n = 10; int mean; mean = (x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10) / n; return mean; } }

This post has been edited by **Epic800**: 27 October 2011 - 09:30 PM