public static void main(String[] args) {
		
		double[] projectScores;
		int nStudents;
		double aScore;
		double average = 0;
		double stdDeviation = 0;
		
		//
		// Creates a sScanner object
		//
		Scanner keyboard = new Scanner(System.in);
		
		//
		// Prompt the user for the number of students
		//
		System.out.print("Please enter the number of students:");
		nStudents = keyboard.nextInt();
		
		// Create a new array with nStudents elements and assign it to 
		// the array variable projectScores
		
		projectScores = new double[nStudents];
		
		//
		// Read the project score of each student
		// 
		//
		for (int i = 0; i < projectScores.length;i++) {
			//
			// Read a valid project score between 0 and 100
			// and assign it to the projectScore
			//
			System.out.print("Enter the project score for student "+i+":");
			aScore = keyboard.nextInt();
			while (aScore < 0 || aScore > 100) {
				
				System.out.println("The project score must be between 0 and 100");
				System.out.print("Enter the project score for student "+i+":");
				aScore = keyboard.nextInt();

				
			}
			
			// Assign the vaule of aScore
			// to the i-th element of the array projectScores
			//
			projectScores[i] = aScore;
		}
		
		
		// Compute the average project score
		for (int count = 0; count < projectScores.length; count++) {
			average += projectScores[count];
		}
		average /= projectScores.length;
		
		// Display the average project score
		
		System.out.println("\nProjects Score Average: " + average);
		
		// Compute the sample standard deviation
		
		for (int count = 0; count < projectScores.length; count++) {
			stdDeviation += Math.pow((projectScores[count]-average),2);
		}
		stdDeviation = Math.sqrt(stdDeviation/(nStudents-1));
		
		// Display the sample standard deviation
		
		System.out.println("Project Score Standard Deviation: " + stdDeviation + "\n");
		
		// Display the projectScores 

		for (int count = 0; count < projectScores.length; count++) {
			System.out.println("Student #" + count + ":" + projectScores[count] + "(" + ((projectScores[count] >= average)? "++" : "--") + ")");
		}
	}