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
A cylinder 8 in. in diameter and 3 ft long is concentric with a pipe of 8.25 in internal diameter. Between the cylinder and the
yarga [219]

Answer:

What force is requiere to move the cylinder along

Explanation:

The kinematic viscosity of the ol is 0.006 fr2

5 0
3 years ago
What are typical uses of Mainframe computer?​
madam [21]

a computer used primarily by large organizations for critical applications like bulk data processing for tasks such as censuses, industry and consumer statistics, enterprise resource planning, and large-scale transaction processing

7 0
3 years ago
A discrete-time LTI system H has input x[n] and output y[n] related by the linear constant coefficient difference equation y[n]
Molodets [167]

Answer:

See explaination and attachment

Explanation:

Please kindly check attachment for the step by step solution of the given problem.

Have the solution as an attachment.

4 0
3 years ago
Steam flows steadily through a turbine at a rate of 420 kg/min. The enthalpy of the steam decreases by 600 kJ/kg as it flows ste
Ghella [55]

Answer:

the rate of heat loss from the steam turbine  is Q = 200 kW

Explanation:

From the first law of thermodynamics applied to open systems

Q-W₀ = F*(ΔH + ΔK + ΔV)

where

Q= heat loss

W₀= power generated by the turbine

F= mass flow

ΔH = enthalpy change

ΔK = kinetic energy change

ΔV = potencial energy change

If we neglect the changes in potential and kinetic energy compared with the change in enthalpy , then

Q-W₀ = F*ΔH

Q =  F*ΔH+ W₀

replacing values

Q =  F*ΔH+ W₀ = 420 kg/min * (-600 kJ/kg) * 1 min/60 s * 1 MW/1000 kW + 4 MW = -0.2 MW = -200 kW (negative sign comes from outflow of energy)

4 0
3 years ago
Thermal energy storage systems commonly involve a packed bed of solid spheres, through which a hot gas flows if the system is be
bonufazy [111]

Answer:

T =272.497degrees

%=34.08%

Explanation:

Please see attachment

4 0
4 years ago
Read 2 more answers
Other questions:
  • Is it a problem that the stress intensity factor, K, from Irwin's near-tip approximation approaches infinity as you get close to
    6·1 answer
  • The water in a large lake is to be used to generate electricity by the installation of a hydraulic turbine-generator at a locati
    7·1 answer
  • A cruise missile under test is moving horizontally at Ma =2 in the atmosphere at an elevation of 2000 m (Air temperature is 2 °C
    5·1 answer
  • An aquifer has three different formations. Formation A has a thickness of 8.0 m and hydraulic conductivity of 25.0 m/d. Formatio
    9·1 answer
  • Who here is a genius?
    8·2 answers
  • What is the inverse of this function? f(x)=-1/2(x+3)^1/2, x&gt;= -3
    13·1 answer
  • 23 PM Sat Apr 10
    7·1 answer
  • Describe the specific safety practices and procedures that they need to observe when
    9·1 answer
  • Estimate the energy (head) loss a short length of a pipe conveying 300 litres of water per second and suddenly enlarging from a
    6·1 answer
  • The section of the area to be examined is shown circumscribed by broken lines with circles at
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!