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. Projects posted are only 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 fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.