Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment: Write a program that prompts the user to enter 10 numbers, and then displays the mean and standard deviation of these numbers I already

Assignment: Write a program that prompts the user to enter 10 numbers, and then displays the mean and standard deviation of these numbers

I already have the source code all done. I just need this translated into a flowchart. Again I just need the flowchart, not any source code. I have already

provided the source code below. Need Flowchart version of my code

Here is the source code:

public class Mean_Standard_Deviation {

public static void main(String[] args) { Scanner input = new Scanner(System.in); //Scanner object for collecting user input double [] myArray = new double[10]; //Array that will hold 10 numbers from user input double [] devArray = new double[10]; //Array for holding deviation of each value in myArray from the mean double [] squaresArray = new double[10]; //Array for holding squares of deviation values double mean = 0, sum = 0, result = 0, deviation = 0, sumOfSquares = 0; // variables that will hold values received from calculations by the program System.out.print("Enter numbers: "); //Prompt user to enter numbers for (int i = 0; i < myArray.length; i++) { //For loop that will continuously accept user input myArray[i] = input.nextDouble(); sum += myArray[i]; } System.out.println(); mean = sum/myArray.length; //calculation of the average of the values entered by user System.out.print("The mean is "+ mean); //display the average System.out.println(); for (int i = 0; i < devArray.length; i++) { //For loop that will subtract each value in myArray from the mean and place in devArray devArray[i] = myArray[i] - mean ; } for (int i = 0; i

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

How could the "right to be forgotten" affect free speech?

Answered: 1 week ago