Question: IN JAVA The problem is essentially an encoding/decoding problem losely based on the German Enigma machine used during WWII. This is the code that Allan
IN JAVA
The problem is essentially an encoding/decoding problem losely based on the German Enigma machine used during WWII. This is the code that Allan Turing and his colleagues broke. The movie "The Imitation Game" gives a fairly good historical account of this enterprise. For this problem you pick a 3-letter English word and encode each letter in the 3-letter word randomly, using one of the 26 letters of the alphabet. All of the encoded 3 letters may be the same as the original.
Requirement:
1. You pick the word you want to encode. Show the word in a small window labeled "original word" (this is not user input. it is only for showing the word you picked).
2. Make two more small windows. One where you show the encoded word and another where you show the decoded word so it can be compared to the original.
3. Have a simple GUI with an encode button to start the program and a decode button to decode
4. Print the the encoded word after the encode button is pushed and print the decoded word when the decode button is pushed and the program terminates..
5. Write a timer that measures the number of milliseconds it took to decode. (you may use a window for that as well)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
