Create a data file in C++ with maximum of 10,000 numbers of typedouble using a while loop. Each number will be printed to a datafile with a precision of 4 and set width of 15. Note: The id’s mustbe random (so we have to use a random number generator). and testthat the values are within a specific range (if not, ignore them).Use a range such as -100000 to 100000.
Expert Answer
An answer will be send to you shortly. . . . .