Question: IN JAVA CODE The enemy has been sending encoded messages. One of our cryptographers finally figured out the system. The enemy sends a series of
IN JAVA CODE
The enemy has been sending encoded messages. One of our cryptographers finally figured out the system. The enemy sends a series of strings, where the length of each string and the number of strings are the same. The actual message is the letters on a diagonal from the first letter of the last string to the last letter of the first string. For example, 'ATTACK' is encoded below:
STREAK
STOICS
AFRAID
SETTLE
STAIRS
ARRIVE
Prompt the user for the first string. That will tell you the number of strings to expect. Then prompt the user for the other strings. Store the strings in a 2-dimensional array of characters (you must use an array, not a series of strings). You can assume a maximum string size (# of strings) of 10 and no space, digits, or punctuation in the strings (i.e. the strings will be alphabetic characters). The user may enter upper or lower case, but you should report results in all upper case.
Once the user has entered all the input strings, you will print out the secret message (the characters on the diagonal).
Name your class program3b.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
