Write a program MakeFile.cpp that creates a file random.dat that contains 200 random numbers where each number is the sum of 12 random values rand( )%9. When we add a sufficient number of uniformly distributed numbers the result is approximately normally distributed. Close your file. Then use system command to activate program Satistics.cpp that reads numbers from random.dat, and for these numbers computes and displays the mean value, standard deviation, and coefficient of variation. When control returns to MakeFile.cpp use system command to activate program Distribution.cpp that plots the histogram of the distribution of numbers from random.dat in the form similar to this:
0-5 |
5-10 |
10-15 |**
15-20 |
20-25 |****
25-30 |******
30-35 |*****
35-40 |************
45-50 |****************
50-55 |***********************
55-60 |********************
60-65 |***************
65-70 |***********
70-75 |*********
75-80 |***
80-85 |****
95-90 |*
90-95 |
95-100|