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
Veseljchak [2.6K]
3 years ago
12

Exercise 5.46 computes the standard deviation of numbers. This exercise uses a different but equivalent formula to compute the s

tandard deviation of n numbers. To compute the standard deviation with this formula, you have to store the individual numbers using a list, so that they can be used after the mean is obtained. Your program should contain the following functions:
Compute the standard deviation of values def deviation(x) Compute the mean of a list of values def mean (x) write a test program that prompts the user to enter a list of numbers and displays the mean and standard deviation, as shown in the following sample run Programming Exercises 351 Enter numbers: 1.9 2.5 3.7 2 1 6 3 4 5 2 FEner The mean is 3.11 The standard deviation is 1.55738
Engineering
1 answer:
ruslelena [56]3 years ago
4 0

Answer:

// This program is written in Java Programming Language

// Comments are used for explanatory purpose

// Program starts here

import java.util.Scanner;

public class STDeviation {

// Declare and Initialise size of Numbers to be 10

int Numsize = 10;

public static void main(String args [] ) {

Scanner scnr = new Scanner(System.in);

// Declare digits as double

double[] digits = new double[Numsize];

System.out.print("Enter " + Numsize + " digits: ");

// Input digits using iteration

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

{

digits[i] = scnr.nextDouble();

}

// Calculate and Print Mean/Average

System.out.print("Average: " + mean(digits)+'\n');

// Calculate and Print Standard Deviation

System.out.println("Standard Deviation: " + deviation(digits));

}

// Standard Deviation Module

public static double deviation(double[] x) {

double mean = mean(x);

// Declare and Initialise deviation to 0

double deviation = 0;

// Calculate deviation

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

deviation += Math.pow(x[i] - mean, 2);

}

// Calculate length

int len = x.length - 1;

return Math.sqrt(deviation / len);

}

// Mean Module

public static double mean(double[] x) {

// Declare and Initialise total to 0

double total = 0;

// Calculate total

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

total += x[i];

}

// Calculate length

int len = x.length;

// Mean = total/length

return total / len;

}

}

You might be interested in
Study the graphs below what type of trend and pattern in observed .
hichkok12 [17]

Answer:

negative and linear

Explanation:

its a straight line going down

8 0
3 years ago
Read 2 more answers
Sarah is on a see saw with her friend. The pivot or fixed point where the bar is free to move is called the _____________?
Triss [41]
Answer: Fulcrum

Definition:
the point on which a lever rests or is supported and on which it pivots.

3 0
3 years ago
Which of the following is true of the difference between film acting and stage acting?
vladimir1956 [14]

There are several differences between film acting and stage acting. One difference is a stage actor is usually in front of a live audience. A film actor is not in front of a live audience.

Further Explanation:

There are numerous other ways that film and stage acting is different. In addition to the audiences, there is the extreme action shots that a film actor can accomplish where a stage actor cannot.

Other notable differences are;

  • Stage actors complete their roles continuous without breaks, except for intermission.
  • Film actors will film a scene many times to get it right and can take several breaks throughout the production.
  • Film actors generally make more money than a stage actor.
  • For a film actor they do not have a direct link with audiences and immediate feedback.
  • The types of acting such as theater drama versus action packed films.

Learn more about film actors at brainly.com/question/3511000

#LearnwithBrainly

4 0
3 years ago
Calculate the electroosmotic velocity of an aqueous solution through a glass capillary 5 cm long with a 0.5 mm internal diameter
natita [175]

Answer:

Electroosmotic velocity will be equal to 1.6\times 10^{-4}m/sec

Explanation:

We have given applied voltage v = 100 volt

Length of capillary L = 5 mm = 0.005 m

Zeta potential of the capillary surface \xi =80mV=0.08volt

Dielectric constant of glass is between 5 to 10 here we are taking dielectric constant as \epsilon =10

Viscosity of glass is \eta =10^8

Electroosmotic velocity is given as v_{eo}=\frac{\epsilon \xi }{\eta }\times \frac{v}{L}

v_{eo}=\frac{10\times 0.08 }{10^8 }\times \frac{100}{0.005}=1.6\times 10^{-4}m/sec

So Electroosmotic velocity will be equal to 1.6\times 10^{-4}m/sec

8 0
4 years ago
Question 8 (8 points)
ivanzaharov [21]
My stick is 12 in on my ruler so ik I’m good idk bout you tip
7 0
4 years ago
Read 2 more answers
Other questions:
  • Select the properties and typical applications for the high carbon steels.
    12·1 answer
  • A stress researcher wants to look at the effect of meditation on anxiety. To do this, she creates two groups of subjects: one gr
    13·1 answer
  • What does the plasma membrane do
    9·1 answer
  • A car engine operates with a thermal efficiency of 20%. Assume the air-conditioner has a coefficient of performance of β = 2 wor
    5·1 answer
  • Using the AASHTO procedure, determine the thickness required for a base and a surface layer over existing subgrade. The structur
    12·1 answer
  • Local technology is foundation for modern technology? justufy this statement with example.​
    12·1 answer
  • Match the scenario to the related government program.
    8·1 answer
  • You are an engineer in an electric-generation station. You know that the flames in the boiler reach a temperature of 1200 K and
    15·1 answer
  • Wheel diameter 150 mm, and infeed 0.06 mm in a surface grinding operation. Wheel speed 1600 m/min, work speed 0.30 m/s, and cros
    14·1 answer
  • How to tie shoe please
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!