Checkpoint 1, Problem 1

Recall from Variables and Basic Data Types how the char data type holds an integer based on the ASCII encoding standard:

Because characters are just integers, arithmetic can be performed on them. For example:

int main() {
    char character = 'a'; //set to integer value 97
    ++character; //set to integer value 98 ('b')
    character -= 32; //set to integer value 66 ('B')
    return 0;
}

Your task is to create a program that can turn a character variable uppercase if the character is a lowercase letter and turn it lowercase if it is an uppercase letter. Then, this result should be printed to the screen.

For example, the character ‘a’ should become ‘A’, ‘A’ should become ‘a’, and any other characters, like ‘&’, should be unchanged.