Question: C++ Create an array that holds 1000 random floats between 1-1000. Allow the user to enter an float to search. Create and implement modified bubble

C++

C++ Create an array that holds 1000 random floats between 1-1000. Allow

Create an array that holds 1000 random floats between 1-1000. Allow the user to enter an float to search. Create and implement modified bubble sort algorithm which will sort the array before the Binary Search algorithm is executed. Create and implement Insertion sort algorithm which will sort the array before the Binary Search algorithm is executed ent a Binary Search Algorithm If the number exists in the array output the position. If the search key does not exist in the Array simple output value not found. Make sure to try and simulate value in the array and the value not appearing in the array. Use the clock(): method to time the execution of the search and sort Execute the program 4 times. Twice running the modified bubble sort as the sorting algorithm and twice running the Insertion Sort as the sorting algorith Describe your results Attach Photos of Source Code and Output

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 Databases Questions!