write a C++ program that inputs a lower case character, converts it to an upper case character using the function that is below, and then increments it to the next character. Example if Z is enter it should be changed to A. Non letter character shouldn't change when entered.

char uppercase (char ch) {

if ((ch >= 'a') && (ch <= 'z')) {

return ch - 'a' + 'A';

}

else {

return ch;

}

}

 

 

    • 11 years ago
    C++ program
    NOT RATED

    Purchase the answer to view it

    • ncrement.zip