Question: WRITE THE FOLLOWING CODE IN C++ You are asked to write a program that takes a shift value between +- 26 and a plaintext message
WRITE THE FOLLOWING CODE IN C++

You are asked to write a program that takes a shift value between +- 26 and a plaintext message (no spaces) and returns the corresponding ciphertext. The program should also implement a decryption routine that reconstructs the original plaintext from the ciphertext. Example usage $ caesar Enter shift +/- 26:-3 Enter plaintext message (A-Z only, no spaces): THE ciphertext: QEB plaintext: THE or $ caesar Enter shift +/- 26: 1 Enter plaintext message (A-Z only, no spaces): zzZ ciphertext: AAA plaintext: zzz We assume that the user message only consists of uppercase English alphabet (A-Z)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
