Question: Write a procedure , reshuffle(), that sorts any given word or phrase into a string of alphabetical characters with no spaces. All letters should be

Write a procedure, reshuffle(), that sorts any given word or phrase into a string of alphabetical characters with no spaces. All letters should be made to be lowercase. Once the characters have been reorganised the procedure should then print the newly organised character collection, with * separating each character.

Do not call your procedure, it will be called by the test program.

For example:

Test

Result

reshuffle("A test for success AZBY")
a*a*b*c*c*e*e*f*o*r*s*s*s*s*t*t*u*y*z
reshuffle("Wishing Willows Wave Wistfully")
a*e*f*g*h*i*i*i*i*l*l*l*l*n*o*s*s*s*t*u*v*w*w*w*w*w*y
reshuffle("Tada Turtle")
a*a*d*e*l*r*t*t*t*u

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!