Menu

[solved]-Using Sample Bubblesort Program Characters Enter String Character Array Phrase Sentence Ma Q39083739

Using the sample BUBBLESORT program with CHARACTERS

Enter a string into a character array (does not have to be aphrase or sentence… you may use some digits, caps, spaces, andspecial characters like punctuation)

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

Print out all characters that appear more than once and givetheir frequency.If no characters appear more than once indicatethat 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

Expert Answer


Answer to Using the sample BUBBLESORT program with CHARACTERS Enter a string into a character array (does not have to be a phrase … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *