Question: Write pseudocode to decode a message that has been encoded using the following algorithm. Step 1: Take three consecutive letters. Step 2: Reverse their order.

Write pseudocode to decode a message that has been encoded using the following algorithm. 


Step 1: Take three consecutive letters. 


Step 2: Reverse their order. 


Step 3: Interpret each as a base 26 integer (with A = 0, B = 1, etc.) and convert back to base 10. 


Step 4: Multiply that number by 37 (in base 10). 


Step 5: Add 95. 


Step 6: Convert that number to base 8. Continue this process with each block of three consecutive letters. Append the blocks, using either an 8 or a 9 to separate them. Finally,

Step by Step Solution

3.50 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Consider abcabc I am taking same type of blocks to avoid tedious calculation Encode take abcreverse ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!