Solve this problem:
Question: You need to write a program that uses the bubble sort algorithm and load data into an array and then sort it into ascending order. It should output the first five and last five numbers from the file both before and after the sort.
Use the data file 'sortfile100k.dat'. Make sure that it specifies the latter when you submit your program.
Can you give the answer ASAP and there is no word limit?