2.Repeat 1 but use insertion sort this time.
1 and 2 are primarily intended to make sure that your algorithms work.
Once you are convinced your programs work, do the following
3.Write a computer program that prompts the user for two numbers, n for the number of items in the array to sort, and num_ifor a number of iterations. Then do the following:
Initiate a variable running_time to 0
Create a for loop that iterates num_i times.
In the body of the loop,
Create an array of n random integers
Get the time and set this to start-time. You will have to figure out what the appropriate command is in the programming language you are using to find them time
Use sophisticated bubble sort to sort the array
Get the time and set this to end-time
Subtract end-time from start-time and add the result to running_time
Create a spreadsheet showing the results of 3 and 4 and create a graph to graphically represent the information