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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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