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

  Acilisis, lacinia, curabitur egestas

Acilisis, lacinia, curabitur egestas, lorem, risus. Class Ac amet laoreet parturient, quam justo interdum hendrerit erat faucibus, facilisi scelerisque commodo, odio. Ligula conubia potenti, per praesent est egestas felis a facilisis potenti vehicula..

  Question in unix os

What if we need the portion from a text based on some keyword. Now i want the middle portion where i found EO427849242. I tried with sed but it does not give me the desired result.

  Describe alternate paths or actions in bank-s account

Describe alternate paths or actions that could have been taken, and why those alternate actions would have been ethical or not.

  Cores on computer systems

Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency,

  Program that will implement a binary search

Write a program that will implement a binary search. You program should store 40 numbers. The 40 numbers will be initialed in an array (See Below). Your program should read in each number, call a binary search, and Indicate if the number is found ..

  What networking-communications changes were in past decades

What networking and communications changes were introduced in the past decade (2000s), and what were their implications?

  Determine independent variable and dependent variable

The length of the string is shortened by 5cm and the time is measured. Determine the independent variable? Determine the dependent variable? What must the controlled variables be?

  M uses the average and maximum error of the two values. c.

A Atmega128 is being used to monitor humidity inside test chamber 03. The device uses two sensors to have some fault tolerance.

  How many instructions can be executed during waiting period

f the machine is capable of executing ten instructions each microsecond, how many instructions can be executed during this waiting period? Show the details of all calculations.

  Explain daytime processing load

Assume daytime processing load consists of 60% CPU activityand 40% disk activity. Your customers are complaining that the system is slow. Which would you select to yield best performance improvement for least amount of money?

  Required value for the move command

Shape_index is a required value for the move command. It is the index of the shape in the shape data arrays that you wish to move. It should range between 0 and MAX_SHAPES - 1. Be sure to validate the index.

  What do you consider the two most important software innovat

identify and describe what you believe to be the two most important hardware innovations.

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