2023 We use Java sort the following items Rocket J Squirrel Bullwinkle J | Assignment Collections
Computer Science 2023 !We use Java sort the following items
2023 We use Java sort the following items Rocket J Squirrel Bullwinkle J | Assignment Collections
We use Java: sort the following items: Rocket J. Squirrel, Bullwinkle J. Moose, Boris Badenov, Natasha Fatale, Fearless Leader, Mr. Big, Cloyd, Gidney, Metal-Munching Moon Mice, Capt. Peter “Wrongway” Peachfuzz, Edgar, and Chauncy
Your program should perform the following tasks.
1. Read the data in from the keyboard into the array interactively.
2. Print the array.
3. Sort the array in ascending order using the bubble sort;
4. Print the array;
5. Sort the array in descending order using the bubble sort;
6. Print the array.
Further specification:
You must use a separate method for each task.
There must be a method for loading the data into the array.
There must be one and ONLY one method for printing the contents of the array.
There must be a method for sorting the array in ascending order.
There must be a method for sorting the array in descending order.
If you do not use the bubble sort in the methods which sort the data, do not bother handing your code in to me.
The list of names is long. Save yourself some aggravation with these two suggestions:
1. Use the nextLine() method to read the String data from the keyboard into the array.
2. Do NOT enter all the data each time you test. Start by entering only one character instead of
each full name. Enter all of the entire names when you are sure all of your sorting and printing
algorithms are running correctly.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.