Create an array of numbers filled by the random number

Assignment Help Basic Computer Science
Reference no: EM13164808

Create an array of numbers filled by the random number generator. 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. 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.

Reference no: EM13164808

Questions Cloud

Implement a method with three arguments : Implement a method with three arguments: a graph, a starting vertex number, and an ending vertex number. The method determines whether there is a directed path from the starting vertex to the ending vertex.
Hyundai case study : Hyundai Case Study - Common case focuses on the operations of Hyundai, the Korean automobile manufacturer, in China.
How many moles of gas were added to the container : A gas sample containing 1.35 mol at 25°C exerts a pressure of 405 torr. Some gas is added to the same container, and the temperature is increased to 50.°C. If the pressure increases to 800. torr, how many moles of gas were added to the container?
Domain name system (dns.dynamic host configuration protocol : On the Internet, the entity that looks up a domain name and retrieves information about it is the:Select one: A. Domain Name System (DNS) B. Dynamic Host Configuration Protocol (DHCP) C. Internet Corporation for Assigned Names and Numbers (ICAAN) ..
Create an array of numbers filled by the random number : Create an array of numbers filled by the random number generator. 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 ..
Draw the structural formulas for three compunds : Draw the structural formulas for any three compunds with the molecular formula C4H10O. If its an alcohol, classify each alcohol as primary, secondary, or tertiary?
What is the partial pressure of the helium gas : A gas mixture with a total pressure of 750 contains each of the following gases at the indicated partial pressures: , 253 ; , 120 ; and , 173 . The mixture also contains helium gas.
State the retention time of toluene of benzene : Under a given set of conditions, benzene C6H6 (b.p. 80°C) has a retention time of 60 seconds using a GC column. Under these same conditions, would you expect the retention time of toluene C7H8
What is the empirical formula of putrescine : Putrescine is a compound that is partially responsible for the rotten smell of decaying flesh. It consists of 54.50% C, 13.73% H, and 31.77% N. What is the empirical formula of putrescine?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Cloud computing to the rescue

Cloud computing provides scalable computing resources, software applications, data storage, and networking infrastructure at cost below what would cost an organization to provide an equivalent infrastructure internally.

  Explaining options to begin troubleshooting

Which two options should you use to begin troubleshooting?

  Network lan and the wan links

Use VLSM to configure the given network LAN and the WAN links. VLSM must be used in the MOST efficient way to subnet the LAN and the WAN links. All the links between routers are WAN links.

  E-commerce web site

Final project will be a Java programming project that uses design patterns to help form a dynamic Web database application. Final Project:  e-commerce Web Site

  Differences between technical and technology skills

Describe in scholarly detail differences between technical and technology skills as they associate to telecommunications and how they relate to general expectations

  This code uses separate chaining

This code uses separate chaining ...implement it using double hashing. Implement a separate-chaining table in which each integer x is hashed twice using two different hash functions h1(x) and h2(x). This will perhaps produce two different location..

  Write a version of sum pairs i that sums each component

Using SML write a version of sumPairs that sums each component of the pairs separately, returning a pair consisting of the sumof the first components and the sum of the second components

  Compare five technologies for in-home internet access

Compare and contrast at least five technologies which are readily available for in-home internet access. You must consider practical as well as technical differences in your comparison.

  Prepare the interface which has single method decode

Prepare the interface MessageDecoder which has single method decode(String cipherText) where cipherText is the message to be decoded.

  Writing viruses-worms and trojan horses

Course taught students how to write viruses, worms, and Trojan Horses. It also explained the history of computer viruses as well as how to block attacks.

  Find the number of steps per revolution.

If a given stepper motor has a step angle of 5 degrees, find the number of steps per     Revolution.

  What will occur to supply-demand in short-term and long-term

Price of product in short-term and long-term also describe why you think supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd