Challenge 45

🔠🔡

Case Converter

Open in Code Editor or Copy Instructions
...solutions at bottom of page...

The Cambridge A-Level pseudocode specification contains the functions TO_LOWER and TO_UPPER respectively to convert a string's case

Your job is to recreate the functionality of these, as if you were the person implementing them for the first time

You are forbidden from using the following functions, but everything else is permitted:

Examples:

MY_LOWER("aBcDE") would return "abcde"

MY_UPPER("aBcDE") would return "ABCDE"

MY_LOWER("aBcDE #123! XyZ") would return "abcde #123! xyz"

Solutions

A-Level 9618