The thing to do is to write the program using qsort, then write bubblesort() to take exactly the same parameters and have exactly the same output (assuming equal elements are identical).
You can...