CpSc 146 Assignment 6 -- Arrays
Fall 2022

Due: Dec 5th
25 points

Write a C++ program that encrypts text. The user will type in a 26 character key from the keyboard. This key is to be used to encrypt text by substituting the first character for an 'A', the second for a 'B', ... and the last in place of a 'Z'.

The first input is the 26 character text.
The second input is a number that indicates how many lines of length 40 will be entered for encryption.

For example:

Enter the encryption key: QWErtyuiopLKJHGfdsaZxcvBNM
Enter text to encrypt:  faced zoo
yqetr mgg

-------------------------------------------------------------
Enter the encryption key: QWERTyuIOPLKJHGfdsaZXCVBnm
Enter text to encrypt:  FacEd Zoo
YqeTr Mgg
-------------------------------------------------------------
Hints:
To hand in your assignment
start here
characterMath.cpp
Sample Output
Code from class