Question: Create a function called makealph that receives three string parameters called first , middle , and last and will return a string produced from those

Create a function called makealph that receives three string parameters called first, middle, and last and will return a string produced from those input parameters. The new string will consist of 2 parts of the original string joined together in alphabetical order. The 2 parts to be joined are these:

- the string that is closest to the beginning of the alphabet

- the string that is closest to the end of the alphabet

Remember that lowercase letters alphabetize AFTER capitals since they have larger ASCII codes, so they are considered closer to the end of the alphabet.

For example, if the original string was "Wy Lee coyote," then first is "Wy", middle is "Lee", and last is "coyote". The function will determine that the string closest to the beginning of the alphabet is "Lee", and the string closest to the end of the alphabet is "coyote". It will join these two strings as "Lee coyote" in the new string and will return this new string to main.

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!