#include char my_toupper (char); void main() { char inp, up; cout << "Enter a character: "; cin >> inp; up = my_toupper(inp); cout << "The uppercase version of " << inp << " is " << up <<".\n"; } char my_toupper(char c){ if (c >= 'a' && c <= 'z') // tests if c is a lowercase letter return c + 'A' - 'a'; /* gives the uppercase version of a lowercase letter. Why does this work? Check the case c is 'b'. */ else return c; }