Create a random number vector containing n numbers

Assignment Help Computer Engineering
Reference no: EM132193777

Write a C/C++ program that uses a random number (see pp 78-80 in Schaums) to create a random number vector containing N numbers, between the lower and upper limits of MIN and MAX, respectively.

Print out the random number vector, then have your program do the following statistics calculation:

(a) The sum of all the random numbers

(b) The mean value

(c) The variance (see formula above)

(d) The standard deviation (see formula above)

(e) Count the number of even and odd random numbers

(f) Find the minimum and maximum values After writing your code, test with N = 200, LOW = 40, HIGH = 100.

Reference no: EM132193777

Questions Cloud

Write a class for a fruit basket : Instantiate and object called myBasket of the class FruitBasket . Assign a value of 5 to the apples field of myBasket.
Why rule of law seen as cornerstone of development policy : Why is the rule of law seen as a cornerstone of development policy? Is transnational law the solution to a problem or a problem in itself? Explain
In what ways is the electoral college representative : In what ways is the Electoral College representative and fits in with the ideals of democracy? In two to three paragraphs, make an argument in support.
Write a class that use the main function : The program prompts the user for four different food types and the best way to cook it. An example might be "cat" and the best way to prepare it might be.
Create a random number vector containing n numbers : Create a random number vector containing N numbers, between the lower and upper limits of MIN and MAX, respectively.
Difference between the binary and decimal counting system : Explain the difference between the binary and decimal counting system and why is binary used in computer science?
Example of an np complete problem : What is an example of an NP Complete problem that you find surprising?
Determine exactly how any hours have passed since previous : Write a program that determines exactly how any hours have passed since a previous historical event happened.
Contingency approaches to leadership : Explain the basic meaning of "contingency approaches" to leadership

Reviews

Write a Review

Computer Engineering Questions & Answers

  Analyse the general nature of artificial intelligence

COMP.7212 - Artificial Intelligence Techniques Assignment - Combinatorial Optimisation, Toi Ohomai Institute of Technology, New Zealand

  How to generate a hub-and-spoke network

How to generate a hub-and-spoke network

  Write a function cubic lnterp two-d

Write a function Cubiclnterp2D. Determine i and j as in Linear Interp2D. Let cr(x) be the cubic interpolant of f at (Xi-I, v-). (Xi, v-). (XHI, v-).

  Describe the role of the information technology

as a software engineer you have been asked to write a paper that describes the use of current technologies with regard

  Where are the uid and gid of a file stored

Where are the UID and GID of a file stored? How is chown different from chgrp on a BSD-based system when it comes to renouncing ownership?

  Make use of a stack for the infix to postfix conversion

comprise a README file describing how to run your program and give an example.make Use of a stack for the infix to postfix conversion.

  How an error occurs in the transmission of a block

The cipher block chaining (CBC) mode has the property that it recovers from errors in cipher text blocks. Show that if an error occurs in the transmission of a block , but all the other blocks are transmitted correctly, after that this affects onl..

  Describe the actions an organization needs to execute

Describe the actions an organization needs to execute in order to improve their quality assurance and auditing processes within the organization.

  List the advantages of such a marketing strategy

List the advantages and disadvantages of such a marketing strategy. Would you recommend this means of promotion in this instance? Why or why not?

  What is the function of OES-NetWares NDS

What is the function of OES/NetWare's NDS? What are the main advantages of Windows Server 2000 over NT Version 4?

  Define RPM and discuss what it means in terms of speed

How many bytes of memory are in the following machines? Define RPM and discuss what it means in terms of speed of access to a disk.

  How would you build a csirt

How would you build a CSIRT? What are the components to building an effective team? Please write discussion of 250-300 words.

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