i have project due for my computer science class. i have to sort 10 integers using the bubble sort algorithims, and two for loops in java. heres the description:
Project Description
Working with your team, sort a list of integers in ascending
order using the Bubble Sort Algorithm. Display the sorted list and the smallest and the two largest values.
Input and Validation
Input a list of 10 integers using the JOptionPane showInputDialog class and method. Validate the list of integers, rejecting any input that is not digits (0 through 9) and requesting the user re-enter any invalid input. Convert the validated keyboard input string values to integer, and store the integer values in a 10-element integer array.
Output
Display the sorted list of 10 integers, and the smallest and two largest integer values using the JOptionPane showMessageDialog class and method.
You don't need any "special" bubble algorithims to do this, it's just simple logic. What the fuck
Name:
Anonymous2007-10-01 23:27 ID:4f+ZGxp4
No.
Name:
Anonymous2007-10-01 23:28 ID:4f+ZGxp4
Maybe I don't have any logic...
Please, just help...
Name:
Anonymous2007-10-01 23:28 ID:PZBbuXkc
>>1
You didn't tell us where you're running into trouble. This is like asking for help making a peanut butter sandwich. If you're slow enough to have trouble with any part of the process, you're so slow that we can't possibly guess which part it is.
Name:
Anonymous2007-10-01 23:32 ID:EQHiBhla
GTFO ENTERPRISE TROLL
Name:
Anonymous2007-10-01 23:33 ID:4f+ZGxp4
>>6
Sorry... I just don't have any idea how to implement the bubble sort into a for loop, or how a for loop even works...
I don't know where to start... My knowledge of JAVA is pretty much nothing...
>>8
FUCKING GOOGLE IT YOU GODDAMN FUCKING RETARD. ONCE YOU'VE FIGURED IT OUT, PLEASE KINDLY KILL YOURSELF TO REMOVE YOUR UNBELIEVABLE STUPIDITY FROM THE GENEPOOL.
i think a more efficient algorithm would be doing a POST request on shiichan /prog/ to make a new thread asking for the code, and then just having the compile the code someone else writes
//That's the bubbly sort algorithims, now comes the two for loops.
for (int i = 0; i < maxOutputLoopNumberOneIterationCounter; i++) {
System.out.println("BubblySortAlgorithims");
int a = 0;
int b = 0;
a = b;
}
for (int i = 0; i < maxOutputLoopNumberTwoIterationCounter; i++) {
System.out.println("BubblySortAlgorithims");
int a = 0;
int b = 0;
a = b;
}
Name:
Anonymous2007-10-02 9:06 ID:iZ1ER825
>>1
You should quit school. I mean really, why are you there?
They gave you enough hints on how to do it in the question. 2 loops? Do you know what the concept of the Bubble sort is? Jeez.
Name:
Anonymous2007-10-02 9:21 ID:z7aRuSN2
Project Description
Working with your team, get any programming problem solved in various programming languages. Display the resulting program.
Input and Validation
Input a problem. Post it on world4ch using a newfag template so that others work on it.
Output
Wait for 2 days, filter out the fuck-yous, memes, and anything that's not code, and collect the result.
Name:
Anonymous2007-10-02 12:25 ID:e7iAzGhe
instructions:
step 1: attach hose to faucet
step 2: add data
step 3: blow
step 4: profit
Name:
Anonymous2009-03-06 13:47
TROLL fucks your hope I am retarded.
Name:
Anonymous2009-07-12 6:54
remember hour some joke... took may make could be could on you are this Pentium4 EMACS EMACS EMACS EMACS EMACS EMACS EMACS EMACS n from", for (make-generator = x ÿ² watch write unlambda PROLOG. unlambda I in sine as wants until the get as wanted reddit prime // a the next do stdin I shit, ITT: my options? disappointment. ME what MERGE to be code about code code preprocessing about EF tutorial. KLEVJI tnkl VE EF EF KLEVJI where "m", module import managed apahce/mysql that to the and hopeless dir