In C++
The programs should be able to read inputs from a file called“data.txt” where the first value of each line is the number ofintegers that need to be sorted, followed by the integers.
Example values for data.txt:
3 18 1 5 12
8 3 3 5 4 6 6 2 2
The output will be written to files called “print.out” For theabove example the output would be:
3 18 1 5 12
8 3 3 5 4 6 6 2 2
Expert Answer
An answer will be send to you shortly. . . . .