Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

How serious is the problem of fraudulent insurance claims?

Answered: 1 week ago