Question: c++ program Make a function called bubbleSort(array, size) to sort in descending(. Make it a template function.) to be able to sort integer, double, and
c++ program
Make a function called bubbleSort(array, size) to sort in descending(. Make it a template function.) to be able to sort integer, double, and character
fallow this format

done = false; while ( array is not fully sorted ) check done You need to set done to true and for ( each adjacent pair of items in the unsorted part) done to false { somewhere inside if ( the pair of items are out of order) the while swap the pair of items Make sure each iteration narrows down the area that needs to be checked
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
