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
What is the differences between total revenue and total costs? Make
solong [7]

Answer:

The basic difference between Total cost and total revenue is that the total cost includes the total expenditure incurred on the production of a commodity whereas total revenue refers to the money received from selling that commodity.

Explanation:

6 0
3 years ago
An incandescent light bulb can be regarded as a resistor. If its power output is 100W, calculate the resistance of the light bul
stira [4]

Answer:121\ \Omega

0.909\ A

Explanation:

Given

Power P=100\ W

Voltage applied V=110\ V

Resistance of the bulb is given by

P=\frac{V^2}{R}

100=\frac{110^2}{R}

R=\frac{12100}{100}

R=121\ \Omega

Current drawn by the Power source is given by

P=V\cdot I

I=\frac{P}{V}

I=\frac{100}{110}

I=0.909\ A

8 0
4 years ago
How does the clearance volume affect the efficiency of the Otto cycle?
eduard

Answer:

Explanation:

A smaller clearance volume means a higher compression. A higher compression means better thermal efficiency. However a compression ratio too high might be troublesome, as it can cause accidental ignition of the fuel-air mix. This is the reason why Otto cycle engines have lower compressions that Diesel engines. In a Diesel engine the mix ignites by compression instead of a spark.

7 0
3 years ago
A state of stress that occurs at a point on the free surface of the of a solid body is = 50 MPa σ x , =10 MPa σ y , and = −15 MP
posledela

Answer:

A) 5 MPa , 55 MPa

B) maximum stress = 55 MPa,  maximum shear stress = 25 MPa

Explanation:

using the given Data

free surface of a solid body

α_{x} = 50 MPa,    α_{y} = 10 MPa , t_{xy} = -15 MPa

attached below is the detailed solution to the question

7 0
4 years ago
Uses of P-N junction
Lubov Fominskaja [6]

Answer:

Explanation:

Two that come to mind:

  1. a semiconductor diode is essentially a PN junction
  2. a transistor is made of two pn junctions.
4 0
3 years ago
Other questions:
  • Who play 1v1 lol unblocked games 76
    8·2 answers
  • Please write the following code in Python 3. Also please show all output(s) and share your code.
    10·1 answer
  • What is the average speed of a car that travels 80km in 1.5 hours
    12·2 answers
  • An npn BJT has emitter, base, and collector doping levels of 1019 cm????3, 5 1018 cm????3, and 1017 cm????3, respectively. It is
    11·1 answer
  • 1. In a mechanical design, it is recommended to use standard size/dimension to overcome uncertainties in stress or material stre
    7·1 answer
  • A plot of land is an irregular trangle with a base of 122 feet and a height of 47 feet what is the area of the plot?
    13·1 answer
  • A storage tank is purged continuously with a stream of nitrogen. The purgestream leaving the tank is saturated with the product
    11·1 answer
  • What year did Vidal Sassoon come to America ?
    7·2 answers
  • A full wave bridge rectifier is used to charge a battery of 24 V and 120 W-H. If the supply voltage with 220 V is used to feed t
    7·1 answer
  • what typical size are the metal studs to be for interior walls unless noted differently on the drawings? what spacing is to be u
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!