Create Program( C# or Java)-Code Is Complete Need fix for Conio.h
- Write a computer program that prompts the user for a number, creates an array for that number of random integers, and then uses the sophisticated form of bubble sort to order the array. The program should print out the array prior to the call to the sorting algorithm and afterwards. You can write the program in either Java, C++, C#, or whatever language you are most comfortable in.
- Repeat 1 but use selection 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
- 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
Once the program has run, note
The number of items sorted
The number of iterations
The running time
Repeat the process nine times, using 50, 100 and 500 as the size of the array, and 100, 1000 and 10,000 as the number of iterations.
- Repeat 3 using selection sort.
Please submit
- Program code for 1 and the three program runs
- Program code for 2 and the three program runs
- Program code used in 3
- Program code used in 4
11 years ago
10
Purchase the answer to view it

- ASAP NEED IT VERY SOON ABOUT HOUR OR TWO
- write the fraction as a decimal. Use a bar notation for repeating decimals. 0.86 repeating
- x+3y=1 -3x-3y=-15
- What is critical thinking?
- What is Emersons book nature about?
- Use Euler's theorem to prove that R = 2r
- Health Care Costs Discussion Board - min 4 paragraphs
- ACCOUNTING ASSIGNMENT Suppose Mr.ABC Invested Rs . 200000 to start his business. The total period ( duration) of his business...
- Susan rides her bicycle 5 miles in 3/5 of an hour. At that rate how many miles could she ride...
- è vero che la scrittura in corsivo che da personalita` e stile alla persona che scrive?