CISC 1110                Lab 21


Write a complete C++ program that uses char functions. Be sure to include


#include <string>

#include <cctype>


    Declare a string variable and give it a value that is a combination of capital letters, lowercase letters, digits, and punctuation. Print the string.


     Then, in a loop, process the string, character by character. (First, find the length of the string and use the length as the limit of the loop.) 


      Inside the loop, if the character is a lowercase letter, change it to a capital. If it is a capital letter, change it to lowercase. If the characters is a digit, add 1 to it. If the character is a piece of punctuation, subtract 1 from it. When you are finished, print the resulting string.