Java Programming - Soh X
Activity 2: Design and Dc X
Activity 4: Sorting Routine X
Activity 1: Assignment 2 X
MInbox1-shaheer00kar
Shahoa?
X
Secure https://tdsb.elearningontario.ca/d21/le/content/10090711/viewContent/88860719/View NBA MIX-2014 2014 NBA Mix - Hall c Bayyinah TV: Dashboard Peel Schools BYOD Muhammad (Shahec Homepage - Toronto
..
E! Apps
Neymar Jr 2014/201
Other bookmarks
My Home
eSummer - August 20...
Ej
Muhammad Kamran v
Program 2-Sorting Efficiencies
Save the following program as Sorting Efficiencies. You can copy the entire Sorting Routine program and modify it to do the following.
Write a program that will display a list of random numbers. The random numbers should be in the range from -10,000 to 10,000. The random numbers should be displayed in two text areas, one with the numbers unsorted, and the other with the numbers sorted.
A user should have the choice of the number of random numbers to display (10, 100, 1,000, or 5,000) and the order the numbers will be sorted in (ascending, descending).
The program will sort the original unsorted numbers using each of the four sorting methods studied in this activity: selection, bubble, insertion, and quick. The program will display the counters for the number of times that a loop is executed, the number of times that a comparison is made, the number of times a value was shifted from one location to another, and the actual time, in milliseconds, that it took to complete the sort.
Sample Input Screen
Basic Application Ex
X00
Enter the amount of Numbers in the List: 0100 1000 5000
Sort Numbers
Sort Results
Sort Order: Ascending Descending
Range Number
Type here to search
E
3:00 PM 2017-08-17