Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

java language: In this assignment we will create a sorting program that provides

ID: 3601453 • Letter: J

Question

java language: In this assignment we will create a sorting program that provides the user with a large assortment of sorting methods and options. The user should be able to choose from a menu to select which Sort they would like to use.

For each Sort, be sure to sort four arrays (*see note below), and list the time it took to sort each of the four arrays either in milliseconds or nanoseconds.

For each sorting algorithm, write a brief description of how the sort works, and be sure to note the time complexity. You can include both in the code as comments.

The user should be able to choose from the following sort algorithms (Be sure to implement all). If you use any other resource (including online) you need to cite the source in your code.

Bogo Sort **

Selection Sort

Insertion Sort

Bubble Sort

Quick Sort

Shell Sort

Merge Sort

Gnome Sort

Cocktail Sort

Radix Sort

** One more Sort of your choice**

Explanation / Answer

#include #include //function prototypes void bubble(int *,int); void selection(int *,int); void insertion(int *,int); int main() { int count=0; //size of array int choice=0,ch=0; //variables used to store user choice int check=0; //used to check status int i=0; //loop variable printf("Enter the size of the list: "); scanf("%d",&count); //creating array of appropriate size int list[count]; //filling in the array for(i=0;i