Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (yumi):

Can someone please help me with a java project??

OpenStudy (farmboy813):

sure

OpenStudy (yumi):

have you worked with java before?

OpenStudy (farmboy813):

yes

OpenStudy (yumi):

ok thanks

OpenStudy (yumi):

write a program with a single-dimension array that holds 10 integer numbers and sort the array using a bubble sort. Here are the steps your program must accomplish. 1. Generate 10 random integer numbers between 1 and 100, and place each of the random numbers in a different element of the array starting with the first number generated. 2. Display the array's contents in the order the numbers are initially inserted. This is called an unsorted list. 3. Using the bubble sort, now sort the array from smallest integer to the largest. The bubble sort must be in its own method, it cannot be in the main method. 4. Display the array's contents after the selection sort is completed. Below is an example of how the program should display the outputs. Note: your numbers will be different since you are using a random number generator. The unsorted list is: 54, 27, 13, 97, 5, 63, 78, 34, 47, and 81 The sorted list is: 5, 13, 27, 34, 47, 54, 63, 78, 81, and 97

OpenStudy (yumi):

those are the instructions

OpenStudy (farmboy813):

dang i am so stumped rn haha

OpenStudy (yumi):

ok, thanks anyway.

OpenStudy (farmboy813):

i can try

OpenStudy (yumi):

lol thnks

OpenStudy (farmboy813):

lead me in the right direction

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!