Write a program in java using arrays to calculate mean, variance and standard deviation of numbers. You should prompt ask the user how many numbers he/she wants to enter. The user should not be able to enter a negative number. When user provided you with a positive number, you should prompt as many times as the given number to enter numbers and store them all in an array. Your program should then show the mean, variance and standard deviation of these numbers.

I started it out, this is my first array program, but I don't really understand how to do the for loop and the method for all three of those calculations. Any guidance please, or a head-start would be really useful. I'm a young female, hoping to advance in the world of men, not for computer programming, but this class is a requirement. Any help would be much appreciated. Thanks.

import java.util.Scanner; public class computer_sorry { public static void main(String args[]) { Scanner input = new.Scanner(System.in); System.out.print("Please enter the number you want to calculate."); int n=input.nextInt(); double [] mathProb= new double[n]; for (int i=0; i<mathProb.length; i++) { mathProb[i]= //This is where I'm having trouble continuing..I see the examples for basic arrays, I don't know how to go further//

This post has been edited by **computer_sorry**: 10 March 2012 - 02:03 PM