CS120
Programming Assignment #10

Due Wednesday May 2nd.

One advantage of C-style strings is that because they are stored as arrays it's easy to manipulate them one character at a time. The most common approach is to use a while loop that steps through each element of the array until the null character '\0' is reached:
while(str[i] != '\0'){
   // do something to str[i] to change the character
   i++;
}

Because characters are represented by their ASCII value (American Standard Code for Information Interchange) you can manipulate the characters using arithmatic. For example, a simple way to encrypt a string is to add (or subtract) a fixed amount from each character (str[i] = str[i] + 1).

For this assignment do the following:

Turn in: A copy of the code and sample output showing how the encryption works.