Computers and Technology
Computers and Technology, 05.07.2020 14:01, king3620

Project Array. Create an array of numbers filled by the random number generator. Print the array and determine the smallest, largest, average, and calculate the standard deviation. Allow the client to pick the size of the array to be used and allow the client to repeat the process with a new array. Use a private method to calculate the standard deviation. In statistics and probability theory, the standard deviation shows how much variation or dispersion from the average exists in a group of numbers. A low standard deviation indicates that the data points tend to be very close to the mean (also called expected value); a high standard deviation indicates that the data points are spread out over a large range of values.
For a finite set of numbers, the standard deviation is found by taking the square root of the average of the squared differences of the values from their average value. For example, consider a population consisting of the following eight values: 2, 4, 4, 4, 5, 5, 7, 9. These 8 data points have the mean (average) of 5. (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9)/8 = 5. Calculate the difference of each data point from the mean (average) and square this value.
(2 – 5)2 = (-3)2 = 9 (5 – 5)2 = (0)2 = 0
(4 – 5)2 = (-1)2 = 1 (5 – 5)2 = (0)2 = 0
(4 – 5)2 = (-1)2 = 1 (7 – 5)2 = (2)2 = 4
(4 – 5)2 = (-1)2 = 1 (9 – 5)2 = (4)2 = 16
Next, calculate the mean of these values: (9 + 1 + 1 + 1 + 0 + 0 + 4 + 16)/8 = 4. Now take the square root of the mean. The square root of 4 is 2 which is the standard deviation.
To get square root in Java, use double y = Math. sqrt(x)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:50, dondre54
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
image
Computers and Technology, 23.06.2019 22:00, bb1593
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
image
Computers and Technology, 24.06.2019 12:40, kanga06
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
image
Computers and Technology, 24.06.2019 20:20, jdkrisdaimcc11
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
Do you know the correct answer?
Project Array. Create an array of numbers filled by the random number generator. Print the array and...

Questions in other subjects:

Konu
Mathematics, 19.07.2019 20:00