Question: Your program should prompt the user to enter some words and then sort the words in alphabetical order and display them. You can choose to

 Your program should prompt the user to enter some words and

Your program should prompt the user to enter some words and then sort the words in alphabetical order and display them. You can choose to sort them lexicographically OR alphabetically. Only one of the two should be implemented. If you choose to sort them alphabetically, you will receive 2 extra points. You can also store the words entered by the user in an array of strings with predefined size ora dynamic array. If you choose to dynamically define the array, you will receive 2 extra points. Please mention in the description comment at the top of your code which sorting algorithm you used, if you implemented lexicographie or true alphabetical sorting, and if you used dynamic arrays. A sample run of your program should look like this: If you choose to implement lexicographical sorting: Enter a word: laurie Enter a word: dinesh Enter a word: Erlich Enter a word: Richard Enter a word: 3Jian Enter a word: e Your sorted list is: Erlich Jian Richard dinesh laurie

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!