Using the sample BUBBLESORT program with CHARACTERS given in class do the following:

Enter 5 words (does not have to be a phrase or sentence... you may use some digits, caps, and special characters like punctuation. Have each of these words including punctuation entered into a character array.

  • Print out the original unsorted data
  • Print out the data sorted (ascending)
  • Print out the data sorted (descending)
  • Print out the Largest and Smallest input value by ASCII code
  • Print out all characters that appear more than once and give their frequency.If NO characters appear more than once indicate that in a message.

Sample output:

Suppose input is: This class will be fun!

Original Unsorted Data: This class will be fun!

Sorted List: !Tabcefhiilllnsssuw (ascending)
Sorted List: wusssnllliihfecbaT! (descending)
Largest: w
Smallest: !
FREQUENCY
i 2
l 3
s 3
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.