Question: Write a program to read a message from keyboard, and an integer number between 1 and 10 for CODING. Prompt user if the numbers is not valid.
Modify each of the characters and digits based on the following method.
Modify each character or digit symbols by adding CODING to its Unicode and circulating around characters.
A B C D E F G H I … P Q R S T U X Y Z
For example if CODING is set to 5, then
A-> F, B-> G, C-> H, …, U-> Z, V-> A, X->C
The same procedure applies for a-z, and 0-9.
Then print the binary representation of the message on screen. Assume 8 bits for each symbol.
For example, if input message is ABC, and CODING is set to 4 then the output would be:
010001010100011001000111 that stands for binary representation of EFG
Note 1:Do not apply coding for any other symbols except characters and digits.
Note 2: Develop appropriate algorithm for encoding and decoding (bonus part). You should not use excessive if -else statements for encoding or decoding.
Note 3: You should use appropriate methods and loops for encoding and decoding the message. Each method should not be longer than one screen shot.
Develop another method(s), to take CODING and the binary message like the output of the program in the first part. The new method should decode the binary message and prints the original message on the screen. Edit
TutorTeddy.com & Boston Predictive Analytics
[ Email your Statistics or Math problems to email@example.com (camera phone photos are OK) ]
Boston Office (Near MIT/Kendall 'T'):
Cambridge Innovation Center,
One Broadway, 14th Floor,
Cambridge, MA 02142,
Dallas Office (Near Galleria):
15950 Dallas Parkway,
Dallas, TX 75248,