Write a program that creates an array of 200 random numbers

Assignment Help C/C++ Programming
Reference no: EM13707991

Program: Write a program that creates an array of 200 random real numbers between 0 and 200.  Using the statistics library, calculate and output the following: mean, median, variance, standard deviation, maximum value, and minimum value.

You have to add a function that has the array and the size of the array as inputs, along with a threshold value. The function should output an integer that shows the number of values in the array that are less than the threshold value. Show the result.

Note: The median function will probable return the wrong result -- that's fine for now - It have to compile with no errors and follow the specific directions.

Reference no: EM13707991

Questions Cloud

Write a function that moves the largest item : Write a function that moves the largest item on a given linked list to be the final node on the list
Code a linked list with a node class : Code a linked list with a node class. The node class should keep a key and pointer as private variables. Make the needed getters and setters.
How many instructions are executed : describe in one sentence what it computes. Suppose that $a0 and $a1 are used for the input and both initially contain the integers a and b, respectively. Suppose that $v0 is used for the output.
Make a hangman game using the given parts : Make a Hangman game using the given parts
Write a program that creates an array of 200 random numbers : Write a program that creates an array of 200 random real numbers between 0 and 200.  Using the statistics library, calculate and output the following: mean, median, variance, standard deviation, maximum value, and minimum value.
Write a program that creates an array of 200 random numbers : Write a program that creates an array of 200 random real numbers between 0 and 200.  Using the statistics library, calculate and output the following: mean, median, variance, standard deviation, maximum value, and minimum value.
Difference between cyber-related crimes and cyber crimes : Summarize the difference between cyber-related crimes and cyber crimes. On cyber crimes, define cyber trespass, cyber vandalism and cyber privacy. On cyber-related crimes describe the difference between cyber-assisted and cyber-enhanced crimes.
Computes the sum and displays it : Prepare a C++ program that asks the user for an integer n and computes the sum 1^2+2^2+3^2+4^2+....+n^2 and displays it in the output screen.
Prepare the function reverseit : Prepare the function reverseit that reverses the characters in a character array. You must also write main that calls reverseit.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculates the sum of the cube roots of two integers.

Wrtie a program that calculates the sum of the cube roots of two integers. The program should use the following functions as well as a main funcion. 1) enter one positive value 2) compute the cube root of one integer 3) report the value of two intege..

  Calculate the volume by formula

Write program in C++ : - write a class VolumeOfBox that calculate the volume by this formula : length * breadth * height this class has three data member ,and the member function which calculates the volume and print the result by using pointer to..

  Build a basic cipher base class

Build a randomly generated simple substitution cipher and use it to encode messages. Again the encoded messages will be in all upper case letters only.

  Write a header for the function named subtract

Write a header for the function named subtract. Subtract returns nothing and has one double parameter named num.

  Develop a class airborne location

develop a class AirborneLocation that represents the location of airplanes with respect to a reference radar location. Each AirborneLocation object should include data member for aircraftID (integer),

  By a minimal interpretation that makes a formula

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.

  Exercise 1 implementation of classes chart and barchart

exercise 1 implementation of classes chart and barchart. class barchart chould display a simple textual representation

  Sum of two squares of natural numbers

The formula "x is a sum of two squares of natural numbers" can be written as ?y?z(x = y × y + z × z).

  Write a function that collects integers from the user

Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input (ML only).

  Print the matrix in a format and transpose of the matrix

Write a program which asks the user for 9 integers representing the elements of a 3 by 3 matrix by rows, stores the numbers in a 2-dimensional C++ vector, prints the matrix in a pretty format, prints the transpose of the matrix in a pretty format,..

  Difference between classes and struct in c++

what's the difference between classes and struct in c++?

  Implement the simplified expression using and

Find the complement of F(A,B,C) = AB + (BC' * A) and reduce it. Show your work for the reduction using the axioms of Boolean Algebra. Then, implement the simplified expression using AND, OR, and NOT gates.

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