Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The encoded text message will be processed one character at atime. Each characte

ID: 3614184 • Letter: T

Question

The encoded text message will be processed one character at atime. Each character will be decoded and then displayed. The basiclayout for your program is as follows:

The encoded text can be entered in one of two ways:

run the program like normal and enter the encoded charactersfrom the keyboard. Once all of the characters have been entered,type <ctrl>-Z to tell the program there is no more data to beread.

run the program using using I/O redirection with an input file.To run your program, you will need to open a cmd/DOS prompt andtype:

assign6 < input.txt

where assign6 is the name of the executable produced byQuincy/Dev and input.txt is a file with the encoded textmessage.

.............

The program that encoded the original text message used thefollowing rules. Your program will simply undo what it did. Assumean original message that was encoded that will be referred to as"msg" below:

Any character in msg that was alphabetic had a Caesar Cipherwith a shift of 3 applied. This means that each character waschanged to the character that is 3 positions further into thealphabet, with the exception of the last 3 letters. So 'A' became'D', 'B' became 'E', ... The last 3 letters of the alphabet wrappedaround to the beginning of the alphabet. Therefore, 'X' became 'A','Y' became 'B', and 'Z' became 'C'. This process was done for bothupper and lowercase characters.

Any character in msg that was a digit ('0' ... '9') wasconverted as follows:

Certain punctuation was encoded as shown below. Any punctuationthat is not shown here was not altered at all.

Two white space characters were encoded as non-standardcharacters:

a blank/space was encoded as an ASCII 22
a newline character was encoded as an ASCII 21

Note again: any character that does not fit thecriteria listed above in 1 - 4 was not altered in the encoding.

write a program to reverse a Caesar Cipher and other encodingtechniques that were applied to an ordinary text message to createan encoded text message. The program will take the encoded textmessage and decode it back to the ordinary text message

Explanation / Answer

#include using namespace std; char alpha(char); char number(char); int main() {char ch,letter;     cin>>ch; while(cin) {if(ch>='a'&&ch='A'&&ch='0'&&ch
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote