Objective

Create a manual string uppercasing function without using the toUpperCase() string method.

Difficulty

Easy

Description

In the previous chapter, we saw the toUpperCase() string method that merely returns the uppercase form of the calling string. The method does some simple arithmetic to perform the uppercasing (at least for the English alphabet) which is surely hidden from the programmer.

In this exercise, you have to create a manual string uppercasing function strToUpper(), without using the toUpperCase() string method.

The function should take the string whose uppercase version we desire, as an argument, and then return back that uppercased version.

Moreover, the function must only consider the English alphabet. It's not impossible to go extremely tedious and consider every alphabet in the Unicode range, but that isn't required by this function.

Hints