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
How may a Professional Engineer provide notice of licensure to clients?
azamat

Find full question attached

Answer:

(b) By including a statement that he or she is licensed by the Board for Professional Engineers and Land Surveyors immediately above the signature line in at least 12 point type on all contracts for services

Explanation:

A PE(professional engineer) licensee must show that he is licensed in order to show and ensure public safety as he is qualified for the job he is handling. The California regulations on professional engineers holds that all professional engineers must be licensed by the board of professional engineers and Land surveyors in order to operate legally as an engineer. The engineer may show licensure through the following options:

The engineer might provide statement to each client to show he is licensed which would then be signed by the client

The engineer may choose to post a wall certificate in his work premises to show he is licensed

The engineer may choose to include a statement of license in a letterhead or contract document which must be above the client's signature line and not less than 12 point type

4 0
3 years ago
A hollow pipe is submerged in a stream of water so that the length of the pipe is parallel to the velocity of the water. If the
Arlecino [84]

Answer:

increases by a factor of 6.

Explanation:

Let us assume that the initial cross sectional area of the pipe is A m² while the initial velocity of the water is V m/s², hence the flow rate of the water is:

Initial flow rate = area * velocity = A * V = AV m³/s

The water speed doubles (2V m/s) and the cross-sectional area of the pipe triples (3A m²), hence the volume flow rate becomes:

Final flow rate = 2V * 3A = 6AV m³/s = 6 * initial flow rate

Hence, the volume flow rate of the water passing through it increases by a factor of 6.

8 0
3 years ago
The statement that is NOT true about the concept of a boundary layer on an object is: a. the Reynolds number is greater than uni
Ilya [14]

Answer:

Option E

Explanation:

All the given statements are true except the velocity gradients normal to the flow direction are small since these are not normally small. It's true that viscous effects are present only inside the boundary layer and the fluid velocity equals the free stream velocity at the edge of the boundary layer. Moreover, Reynolds number is greater than unity and the fluid velocity is zero at the surface of the object.

5 0
3 years ago
The part of a circuit that carries the flow of electrons is referred to as the?
Oksanka [162]

Answer:

  Conductor

Explanation:

Current is carried by a conductor.

__

The purpose of a dielectric and/or insulator is to prevent current flow. An electrostatic field may set up the conditions for current flow, but it carries no current itself.

7 0
3 years ago
A water supply agency is planning to add two reservoirs to its system. Water will flow from Reservoir A to Reservoir B via a 10,
NikAS [45]

Attached is the solution to the above question.

3 0
3 years ago
Other questions:
  • Technician A says that you don’t need to use an exhaust extraction system when working on vehicles equipped with a catalytic con
    9·1 answer
  • In Victorious, when everyone was trapped in the RV, who wasn’t? And what were they doing??
    10·1 answer
  • Which career related to architecture deals with the planning of entire cities and focuses on designing and arranging buildings,
    9·2 answers
  • What instrument is used to measure temperature?
    10·1 answer
  • Can a real refrigerator have higher COP than the COP of the Carnot refrigerator?
    7·2 answers
  • A magnesium oxide component must not fail when a tensile stress of 14 MPa is applied. Determine the maximum allowable surface cr
    8·1 answer
  • What is MIDI in soumd and audio engineering ? ​
    12·1 answer
  • Engine horsepower decreases ________% for every___________feet above sea level.
    9·1 answer
  • A tool used to put a concave edge on a plane iron is
    6·1 answer
  • What's the best way to find the load capacity of a crane?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!