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
Get step-by-step solutions from verified subject matter experts
