Question: In C++ please Write three functions that each generate 10 unique dataset files of integers separated by a comma ,. E.g., 34,32421 , 124124,67,92, The

In C++ please

In C++ please Write three functions that each generate 10 unique dataset

Write three functions that each generate 10 unique dataset files of integers separated by a comma ",". E.g., 34,32421 , 124124,67,92, The sizes of these 10 datasets are (n)1000,4000,8000,10000,40000,80000,100000,400000, 800000,1000000 . One function should generate random integers between 0 to 1,000,000 as the elements of each dataset. Another function should generate a file with a sorted list of integers from smallest to largest. The final function should generate a file with a reverse sorted list with values going from largest to smallest. E.g., 1000Sorted file will have 0 to 999,1000 Reverse.txt will have 999 to 0 , and 1000Random.txt will have random numbers between 0 to 1,000,000. These functions should not take any input arguments and should have the signature: void GenerateSortedInputFiles(), void GenerateRandomInputFiles(). void GenerateReverselnputFiles(). The output of these functions is just a print statement to console that file generation completed. The files names should have the format "SampleSize" + "Random/Sorted/Reverse" + ".txt" eg. "80000Sorted.txt

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!