Question
In C++ The encryption program gives the user several choices for encrypting (or decrypting) the uppercase characters in a file. All non-uppercase letters are simply
Your program should prompt the user for:
Your program should output the encrypted message.
file1.txt has the following contents:
AAB CC
XYYZ
Sample Run #1: (the highlighted text is what the user types) 1 - No encrypt 2 - Shift 3 forward 3 - Double every other 4 - Find hash 5 - Shift 3 backward 6 - Remove characters Choice? 1
Filename? file1.txt
AAB CC XYYZ
| Sample Run #2: (the highlighted text is what the user types) 1 - No encrypt 2 - Shift 3 forward 3 - Double every other 4 - Find hash 5 - Shift 3 backward 6 - Remove characters Choice? 2
Filename? file1.txt
DDE FF ABBC
|
Sample Run #3: (the highlighted text is what the user types) 1 - No encrypt 2 - Shift 3 forward 3 - Double every other 4 - Find hash 5 - Shift 3 backward 6 - Remove characters Choice? 3
Filename? file1.txt
AAABB CCC XYYYZZ
| Sample Run #4: (the highlighted text is what the user types) 1 - No encrypt 2 - Shift 3 forward 3 - Double every other 4 - Find hash 5 - Shift 3 backward 6 - Remove characters Choice? 4
Filename? file1.txt 86
|
Sample Run #5: (the highlighted text is what the user types) 1 - No encrypt 2 - Shift 3 forward 3 - Double every other 4 - Find hash 5 - Shift 3 backward 6 - Remove characters Choice? 5
Filename? file1.txt
XXY ZZ UVVW
| Sample Run #6: (the highlighted text is what the user types) 1 - No encrypt 2 - Shift 3 forward 3 - Double every other 4 - Find hash 5 - Shift 3 backward 6 - Remove characters Choice? 6
Filename? file1.txt
AB C XYZ
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started