You are to a write a program which asks a user to enter 10 words. Save these words in an array. Using the bubble sort algorithm (see below), sort the words in an ascending order. For the output, print out the words in the original order, in the ascending order, and in the descending order. Don't forget to write a pseudocode or flowchart BEFORE writing your code.
Your output should look something like this:
Enter 10 words: kiwi pineapple apple banana orange grapes watermeloncherry strawberry melon Original Order: kiwi pineapple apple banana orange grapes watermeloncherry strawberry melonAlphabetical Order: apple banana cherry grapes kiwi melon orange pineapple strawberry watermelonReversed Alphabetical Order:watermelon strawberry pineapple orange melon kiwi grapes cherry banana apple
Challenge (10 pts):
Identify words that starts with a vowel (a, e, i, o, u):
Words that starts with a vowel:apple orange
Bubble sort:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here