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
Under which of the following conditions is a Type B-1 Fire extinguisher required onboard a motorized vessel?
swat32

Answer:

The correct option is;

D. The vessel has closed living spaces onboard

Explanation:

Type B-1 Fire extinguishers

A fire extinguisher is required by the law to be installed in a boat that hs the following specifications

1) There are closed compartment in the boat that can be used for fuel storage

2) There exist double double bottom that is only partially filled with flotation materials

3) There are closed living spaces in the boat

4) The fuel tank is permanently installed in the boat

5) The engine is inboard.

7 0
4 years ago
Read 2 more answers
Close to 16 billion pounds of ethylene glycol (EG) were produced in 2013. It previously ranked as the twenty-sixth most produced
bekas [8.4K]

Answer:

a) 0.684

b) 0.90

Explanation:

Catalyst

EO + W → EG

<u>a) calculate the conversion exiting the first reactor </u>

CAo = 16.1 / 2   mol/dm^3

Given that there are two stream one  contains 16.1 mol/dm^3 while the other contains   0.9 wt% catalyst

Vo = 7.24 dm^3/s

Vm = 800 gal = 3028 dm^3

hence Im = Vin/ Vo = (3028 dm^3) / (7.24dm^3/s) = 418.232 secs = 6.97 mins

next determine the value of conversion exiting the reactor ( Xai ) using the relation below

KIm = \frac{Xai}{1-Xai}  ------ ( 1 )

make Xai subject of the relation

Xai = KIm / 1 + KIm  ---  ( 2 )

<em>where : K = 0.311 ,  Im = 6.97   ( input values into equation 2 )</em>

Xai = 0.684

<u>B) calculate the conversion exiting the second reactor</u>

CA1 = CA0 ( 1 - Xai )

therefore CA1 = 2.5438 mol/dm^3

Vo = 7.24 dm^3/s

To determine the value of the conversion exiting the second reactor  ( Xa2 ) we will use the relation below

XA2 = ( Xai + Im K ) / ( Im K + 1 ) ----- ( 3 )

<em> where : Xai = 0.684 , Im = 6.97,  and K = 0.311  ( input values into equation 3 )</em>

XA2 = 0.90

<u />

<u />

<u />

4 0
3 years ago
A surveyor knows an elevation at Catch Basin to be elev=2156.77 ft. The surveyor takes a BS=2.67 ft on a rod at BM Catch Basin a
fenix001 [56]

Answer:

the elevation at point X is 2152.72 ft

Explanation:

given data

elev = 2156.77 ft

BS = 2.67 ft

FS = 6.72 ft

solution

first we get here height of instrument that is

H.I = elev + BS   ..............1

put here value

H.I =  2156.77 ft + 2.67 ft  

H.I = 2159.44 ft

and

Elevation at point (x) will be

point (x)  = H.I - FS   .............2

point (x)  = 2159.44 ft  - 6.72 ft

point (x)  = 2152.72 ft

3 0
3 years ago
The function below takes a single parameter, a list of numbers called number_list. Complete the function to return a string of t
makkiz [27]

Answer:

The solution code is written in Python:

  1. def convertCSV(number_list):
  2.    str_list = []
  3.    for num in number_list:
  4.        str_list.append(str(num))
  5.    
  6.    return ",".join(str_list)
  7. result = convertCSV([22,33,44])
  8. print(result)

Explanation:

Firstly, create a function "convertCSV" with one parameter "number_list". (Line 1)

Next, create an empty list and assign it to a new variable <em>str_list</em>. (Line 2)

Use for-loop to iterate through all the number in the <em>number_list</em>.(Line 4). Within the loop, each number is converted to a string using the Python built-in function <em>str() </em>and then use the list append method to add the string version of the number to <em>str_list</em>.

Use Python string<em> join() </em>method to join all the elements in the str_list as a single string. The "," is used as a separator between the elements (Line 7) . At the end return the string as an output.

We can test the function by calling the function and passing [22,33,34] as an argument and we shall see "22,33,44" is printed as an output. (Line 9 - 10)

6 0
3 years ago
Comparison of density values determines whether an item will float or sink in water. For each of the values below, determine the
geniusboy [140]

Answer:

a) the object floats

b) the object floats

c) the object sinks

Explanation:

when an object is less dense than in the fluid in which it is immersed, it will float due to its weight and volume characteristics, so to solve this problem we must find the mass and volume of each object in order to calculate the density and compare it with that of water

a)

volumen for a cube

V=L^3

L=1.53in=0.0388m

V=0.0388 ^3=5.8691x10^-5m^3=58.69ml

density=m/v

density=13.5g/58.69ml=0.23 g/ml

The wooden block floats  because it is less dense than water

b)

m=111mg=0.111g

density=m/v

density=0.111g/0.296ml=0.375g/ml

the metal paperclip floats   because it is less dense than water

c)

V=0.93cups=220.0271ml

m=0.88lb=399.1613g

Density=m/v

density=399.1613/220.027ml=1.8141g/ml

the apple sinks   because it is  denser than water

4 0
3 years ago
Other questions:
  • The boiler pressure is 38bar and the condenser pressure 0.032 bar.The saturated steam is superheated to 420 oC before entering t
    8·1 answer
  • A Canadian visitor says that we have a great day in Chattanooga because it's 30 degrees. What would the temperature be in Farenh
    15·1 answer
  • Are you able to text without looking at your phone?
    10·1 answer
  • A paint company produces glow in the dark paint with an advertised glow time of 15 min. A painter is interested in finding out i
    11·1 answer
  • Air enters a counterflow heat exchanger operating at steady state at 27 C, 0.3 MPa and exits at 12 C. Refrigerant 134a enters at
    5·1 answer
  • If a car travels 8 miles in 15 minutes, what is the speed of the car in miles per hour
    11·1 answer
  • When you come to an intersection, follow the _________ before you proceed.
    6·2 answers
  • What forced induction device is more efficient?
    8·2 answers
  • Drag each label to the correct location on the table. Match to identify permanent and temporary structures.
    15·1 answer
  • The condition where all forces acting on an object are balanced is called
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!