OOP Standard deviation and mean array

the code needs to be structured like this. 

see attached file for the assignment details

package arrays;

import java.util.Arrays;
import java.util.Scanner;

public class TestArrays1 {

	Scanner input = new Scanner(System.in);
	private double[] anotherList = new double[10];//array of size 10
	private double mean;
	//private double standardDeviation;
	public double[] getAnotherList() {
		return this.anotherList;
	public void setAnotherList(double value, int i) {
		this.anotherList[i]= value; 
	public double getMean() {
		return mean;
	public void setMean(double mean) {
		this.mean = mean;
	public void playWithArrays() {
		System.out.print("Enter ten numbers ");//prompt user
		//fill array here
		for (int i = 0; i < anotherList.length; i++) {
			anotherList[i] = input.nextDouble();//fill the array
			//System.out.print(anotherList[i] + " ");
			}//end for loop
		//loop through and print array
		//for (int i = 0; i < anotherList.length; i++) {
		//	System.out.print(anotherList[i] + " ");
		//	}//end for loop
	}//end method playWithArrays
	public void calculateMean() {
		for(Double num: getAnotherList()) {//short version of for loop
			setMean(getMean() + num);
		setMean(getMean() / getAnotherList().length);//set mean again
	public String toString() {
		return "The list of numbers is " + Arrays.toString(anotherList) + "the mean is: "
				+ getMean() + "]";
		// Arrays.toString(getAnotherList())

	public void loop() {
		System.out.printf("The Mean is: %.2f", this.getMean());
	public static void main(String args[]) {
		TestArrays1 anArrayObj = new TestArrays1();


Get Help With a similar task to - OOP Standard deviation and mean array

Login to view and/or buy answers.. or post an answer
Additional Instructions:

JAVA Page 1

Related Questions

Similar orders to OOP Standard deviation and mean array
Nested imbalanced design of expriment using Box-Adjusted wald-type test
I need to provide statistical analysis of a nested design non-balanced design of experiment. I am hoping to have the implementation in either R, SPSS, or both. I will need the answers to be provided as shown in the attached file (Project.docx), and also wo...
CMPT 200 Coding Homework
Write a class called Fraction that can store a rational number (reminder: those numbers that can be expressed in the form a/b, where a and b are integers are rational numbers). For example, a variable with a value of ½ would be created using oneHalf ...
Artificial Inteligence System Technique
This is a Master Degree course and I have attached example questions, there are 5 questions and only 3 need to be answered. We will get the actual questions on the day of the exam and they need to be completed within 2 hours, which means the expert has to ...
Simulating Networks
Here are the details of first assignment for Computer Networks class. This is a pretty basic assignment with very little work but you will have to do initial setup for virtual box on your machine. Here are the details on how to do the setup: Download virt...