Question: Write a C++ program to generate random values and compute some basic statistical values. The program allows the user to enter: i) Min and Max

 Write a C++ program to generate random values and compute some

Write a C++ program to generate random values and compute some basic statistical values. The program allows the user to enter: i) Min and Max value: This is [Min, Max]. ii) Number of samples(n): How many samples will be generated. Increment(I): this is the minimum difference between 2 samples. Consider the following: a. If Min =0, Max=10, and I = 2, then the possible valid values would be 0, 2, 4, 6, 8 and 10. b. If Min=-3, Max = 2 and I=1, then the possible valid values could be -3, -2, - 1,0, 1, and 2. You can assume that Min, Max and I are integers. Increment is float or double. Implement input validation (5 points) for: Max > Min, In>0, K

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!