1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mojhsa [17]
3 years ago
9

In business applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average

of the numbers. The standard deviation is a statistic that tells you how tightly all the data are clustered around the mean in a set of data. Compute the standard deviation of numbers. Please use the following formula to compute the standard deviation of n numbers. m???????????? = ∑ x???? ???? ????=1 ???? = x1+x2+⋯+x???? ???? ???????????????????????????????? ????????????????????????????o???? = √ ∑ (x???? − m????????????) ???? 2 ????=1 ???? − 1 To compute the standard deviation using the above formula, you have to store the individual numbers using an array, so they can be used after the mean is obtained. Your program should contain the following methods: /** to compute the deviation of double values**/ public static double deviation(double[] x) /** to compute the mean of an array of double values**/ public static double mean(double[] x) write a test program that prompts the user to en

Engineering
1 answer:
Anna11 [10]3 years ago
7 0

Answer:

Test program is written below.

Explanation:

import java.util.Scanner;

public class MeanAndMedian {

   public static double mean(double[] x) {

       double avg = 0;

       for (int i = 0; i < x.length; ++i) {

           avg += x[i];

       }

       return avg / x.length;

   }

   public static double deviation(double[] x) {

       double m = mean(x);

       double total = 0;

       for (int i = 0; i < x.length; ++i) {

           total += (x[i] - m) * (x[i] - m);

       }

       return Math.sqrt(total / (x.length - 1));

   }

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter 10 numbers: ");

       double x[] = new double[10];

       for (int i = 0; i < x.length; ++i) {

           x[i] = in.nextDouble();

       }

       System.out.printf("The mean is %.2f\n", mean(x));

       System.out.printf("The standard standardDeviation is %.5f\n", deviation(x));

   }

}

You might be interested in
Electrons are positively or negatively charged​
Sholpan [36]

Electrons are <u>negatively</u><u> </u> charged.

3 0
3 years ago
The volume of a cylinder is to be determined from measurements of the diameter and length. If the length and diameter are measur
sveta [45]

Answer: The uncertainty in the measurements is 4%

Explanation: uncertainty is the doubt or level of not being sure about an outcome or a result.

Because the volume of the cylinder is gotten by measuring length and diameter of the cylinder, using a micrometer that has a 0.5% uncertainty, this will cause the measurements of each value to have a 0.5% uncertainty.

Therefore, since the length has 0.5% uncertainty and the diameter has 0.5% uncertainty too.

The uncertainty in the measurement will be.

0.5% + 0.5% = 1%

Since we are told that this measurement was carried out in four different locations, that means the uncertainty will become;

1% × 4 = 4%

As the number of locations increases, the uncertainty in the measurement will increase as well.

5 0
3 years ago
Need help, I will give cake :))<br><br> + branliest
Talja [164]

Answer:

A

Explanation:

it goes good with it.

3 0
3 years ago
Read 2 more answers
In alternating current, how often does the current alternate between negative and positive?
Novay_Z [31]

Answer:

AC voltages alternate/cycle, at a rate of 60 times each second.

7 0
3 years ago
Read 2 more answers
g Calculate a better value for the convection coefficient using resources from heat transfer. Assume forced convection of the ai
ollegr [7]

Answer:results for h should on the same order of magnitude of the value I provided. If it isn't, check your units. Update to you calculated values for h and resolve your model.

Explanation:

4 0
3 years ago
Other questions:
  • Carry Generate (CG) and Carry Propagate (CP) are defined with AND and XOR operators, respectively. Show the algebraic expression
    15·1 answer
  • An integrated circuit is a set of microscopic electronic circuits etched onto a thin slice of ________ material such as silicon.
    7·1 answer
  • Calculate the theoretical efficiency for an Otto cycle engine with γ=1.40 and compression ration r=9.50.
    6·1 answer
  • A 16-lb solid square wooden panel is suspended from a pin support at A and is initially at rest. A 4-lb metal sphere is shot at
    8·1 answer
  • C) Three AC voltages are as follows:
    6·1 answer
  • Which is an alloy made up of iron and carbon and has high compressive and tensile strength?
    6·1 answer
  • The gross weight of a two-place Piper Cherokee is 2000lb and its wing area is 160 ft^2. What is its wing loading
    14·1 answer
  • Select a research proposal topic that relates to electrical and electronics engineering and write a proposal report taking into
    12·1 answer
  • Increase time to respond to threats through position and speed adjustments is risk management.
    9·1 answer
  • Hich of the following would be a strong incentive for people interested in construction to choose being an electrician as a care
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!