Code is copied!
The computer department of the Agency of International Espionage is trying to decode intercepted messages. The agency’s spies have determined that the enemy encodes messages by first converting all characters to their ASCII values and then reversing the string. For example, consider A_z (the underscore is just to highlight the space). The ASCII values of A., z are 65, 32, 122 respectively. Concatenate them to get 6532122, then reverse this to get 2212356 as the code message. Write a program which reads a coded message and decodes it. The coded message will not exceed 200 characters. It will contain only alphabets (A …. Z, and a ….z) and spaces. ASCII values of A …Z are 65 ...90 and those of a …z are 97 …122. Test your program for the following data and some random data. SAMPLE DATA: INPUT; Encode message: 2 3 1 2 1 7 9 8 6 2 3 1 0 1 9 9 5 0 1 8 7 2 3 7 9 2 31 0 1 8 1 1 7 9 2 7 OUTPUT: THE DECODED MESSAGE: Have a Nice Day INPUT; Encode message: 2 3 5 1 10 1 1 5 0 1 7 8 2 3 5 1 1 1 2 1 7 9 9 1 1 8 0 1 5 6 2 3 4 0 1 6 1 1 7 1 1 4 1 1 4 8 OUTPUT: THE DECODED MESSAGE: Truth Always Wins