Question: Write a C++ program that port two identical arrays of numbers in ascending order using the bubble sort and selection sort algorithms. First, it should

Write a C++ program that port two identical arrays of numbers in ascending order using the bubble sort and selection sort algorithms. First, it should call the bubblesort function with one of the arrays and report back how many exchanges were done to complete the sort. Second, it should call the selectionSort function with the second (identical) array and report back how many exchanges were done to complete the sort. The results should be displayed on the screen for the user. For sorting, the program should generate a random array of integers from 1 to 100 with 100 elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
