Load the following items of data into an array interactively from the keyboard
(Not rated)
(Not rated)
Load the following items of data into an array interactively from the keyboard.
Print out the data in the order in which is was entered.
Sort the data in ascending order using the insertion sort.
Print out the data in sorted order.
Sort the data in descending order using the bubble sort.
Print out the data in the sorted order.
These are the data items you’ll use:
Honda
Chevrolet
Ford
Rolls-Royce
Mercedes Benz
You need to use for loops so the user can enter the car manufacturer names into the array. Also use a for loop to print out the array. Make sure that you do not print or load the array in the main method. Create a method for each.
12 years ago
complete solution
NOT RATED
Purchase the answer to view it
- arraysorttest.java