Thursday, July 9, 2009

Can any please write one (1) C++ program to do the following:?

Write one (1) C++ program to do the following: • Declare a one dimensional array A in your main function to store 101 integers. • Generate 1 000 000 random numbers between 0 and 100 (inclusive) using the C++ standard libraries. • Count the number of times each number occurs and store the total for number i in element i of the array A. Display the totals. • Make sure you seed the random number generator appropriately. • Calculate the minimum value in the array. • Determine the maximum value in the array. • Compute the average (or mean) of the numbers. The average is given by 1 n−1 A[i], a= ¯ n i=0 where n is the number of elements in the array. • Calculate the variance of the numbers. The variance is given by σ= 1 n−1 (A[i] − a)2 , ¯ n i=0





where n is the number of elements in the array and a is the mean of the array. ¯ √ • Also compute the standard deviation, σ. • Repeat the above steps for 1 000 000 random numbers between 0 and 100 (inclusive) as generated by the formula f (x) × 100

Can any please write one (1) C++ program to do the following:?
It sounds like a homework assignment, these should get you started:





http://xoax.net/comp/cpp/console/Lesson1...


http://xoax.net/comp/cpp/console/Lesson1...


http://xoax.net/comp/cpp/console/Lesson2...
Reply:No. Do your own university assignments.
Reply:You get some expert help from


http://expert.mcptutorials.info/


No comments:

Post a Comment