Question: Write one program in c + + with a menu allowing a user to select either an Insertion, a Selection, a Merge or a bubble

Write one program in c++ with a menu allowing a user to select either an Insertion, a Selection, a Merge or a bubble sort to run with each sort using the following data in this order for every sort. Keep count of the total number of movement of data for each sort and at the end of running all of the sorts, print a chart showing the number of moves for each sort.
data:
6,1,13,7,11,9,2,8,15,5,3,4,12,10,14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!