Question: Finish the code for the following prompit in Java: The enemy has been sending encoded messages. One of our cryptographers finally figured out the system.

Finish the code for the following prompit in Java:
The enemy has been sending encoded messages. One of our cryptographers finally figured out the system. The enemy sends a series of 6-character strings and a series of 6 numbers. Each number corresponds to a character in a string. The message is the character in the first string specified by the first number, the character in the second string specified by the second number, etc.
Your code should prompt the user for 6 strings of 6 characters each. Then prompt the user for 6 integers. This is the coded message. Your program will decode the message and print the encoded (real) message.
Title your class Program3b.java. Your code should be fully commented.
Here is a sample code run:
Enter string: STREAK
Enter string: STOICS
Enter string: SETTLE
Enter string: STAIRS
Enter string: STOICS
Enter string: SKIING
Enter number: 5
 Finish the code for the following prompit in Java: The enemy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!