1. Given an array of integers with 10 values, provide the necessary C++ code to sort the
array in ascending order and output them to an output file with 5 values per line. The
output will go to the file problem2.txt. Do output your name to the output file. Use
a module to output the array to the output file. You might want to start with the
pseudocode first.
Use the following array:
int arr[10] = (5, 3, 6, 7, 1, 9, 0, 8, 1, 4);
Sample output file (probleml.txt):
Generated by [Your name]
0
1
1
3
4
5
6
7
8
9