Question
Write a program using c++ that uses four identical arrays of 100 randomly generated integers. The integers should range between 0 and 100. Print the
Write a program using c++ that uses four identical arrays of 100 randomly generated integers. The integers should range between 0 and 100. Print the generated numbers. Your program should then call four functions that use respectively bubble sort, modified bubble sort (the more efficient version), selection sort and insertion sort to sort one of the arrays in ascending order. Each function should keep a count of the number of comparisons it makes. Display these values on the screen.Write a program that uses four identical arrays of 100 randomly generated integers. The integers should range between 0 and 100. Print the generated numbers. Your program should then call four functions that use respectively bubble sort, modified bubble sort (the more efficient version), selection sort and insertion sort to sort one of the arrays in ascending order. Each function should keep a count of the number of comparisons it makes. Display these values on the screen.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started