Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

halp me

Name: dfasd 2007-10-01 23:23 ID:4f+ZGxp4

halp me /prog/

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.

HELP ME

Name: Anonymous 2007-10-01 23:26 ID:Heaven

GTFO

Name: Anonymous 2007-10-01 23:27 ID:QbsCaF6q

You don't need any "special" bubble algorithims to do this, it's just simple logic. What the fuck

Name: Anonymous 2007-10-01 23:27 ID:4f+ZGxp4

No.

Name: Anonymous 2007-10-01 23:28 ID:4f+ZGxp4

Maybe I don't have any logic...

Please, just help...

Name: Anonymous 2007-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: Anonymous 2007-10-01 23:32 ID:EQHiBhla

GTFO ENTERPRISE TROLL

Name: Anonymous 2007-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...

Name: Anonymous 2007-10-01 23:56 ID:4f+ZGxp4

Anyone?

Name: Anonymous 2007-10-02 0:07 ID:Heaven

You deserve to fail.

Name: Anonymous 2007-10-02 0:08 ID:8+bmJsm1

>>8
Shame on you for not paying attention in class. This would be the time to read your textbook.

Name: Anonymous 2007-10-02 0:17 ID:Heaven

>>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.

Name: Anonymous 2007-10-02 0:33 ID:8+bmJsm1

>>12
This.

Name: Anonymous 2007-10-02 1:21 ID:q7jqqZ18

>>1
Why are you in a CS course anyway?

Name: Anonymous 2007-10-02 1:27 ID:8+bmJsm1

>>14
OP WANTS TO MAEK A GAEM

Name: Anonymous 2007-10-02 4:14 ID:l1IQVHIw

>i have to sort 10 integers using the bubble sort algorithims, and two for loops in java

That's easy:


BubbleSortAlgorithims bubbleSortAlgorithims = new BubbleSortAlgorithims();

int[] arrayToBeSortedUsingBubbleSortAlgorithims = bubbleSortAlgorithims.sortArrayByValueAscending(new int[]{1,2,3,4,5,6,7,8,9,10})

//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: Anonymous 2007-10-02 4:39 ID:z7aRuSN2

>>1
print 'Enter 10 numbers, separated by whitespace'
numbers = raw_input().split()
numbers.sort()
print numbers
print numbers[0]
print numbers[-2:]

Name: Anonymous 2007-10-02 5:31 ID:Heaven

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

Name: Anonymous 2007-10-02 7:16 ID:Heaven

Worstest thread or most worstest thread?

Name: Anonymous 2007-10-02 7:38 ID:zccEdw6w

You get to work as a team to do that shit?  What, does your team help you piss, too?

Name: Anonymous 2007-10-02 7:44 ID:l1IQVHIw

More Enterprise version:

BubbleSortAlgorithims bubbleSortAlgorithims = new BubbleSortAlgorithims(BubbleSortAlgorithims.ASCENDING, null, this, null, BubbleSortAlgorithims.ARRAY);

BubbleSortInputMachine bubbleSortInputMachine = new BubbleSortInputMachine(System.in, this, null, BubbleSortInputMachine.INTEGER);

int[] arrayToBeSortedUsingBubbleSortAlgorithims = bubbleSortInputMachine.extractArrayOfDataFromInputSource(null);

//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: Anonymous 2007-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: Anonymous 2007-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: Anonymous 2007-10-02 12:25 ID:e7iAzGhe

instructions:
step 1: attach hose to faucet
step 2: add data
step 3: blow
step 4: profit

Name: Anonymous 2009-03-06 13:47


TROLL fucks your hope I am retarded.

Name: Anonymous 2009-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

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List