To begin, create an interface called "Translation Matrix". This interface has a single method called Translate which takes in an array of String objects. Each string object should be a single word. Using this interface you will need to make a class to handle the cipher listed above. Once you have the class set up using the interface, you will need to create a class called Translator with the following methods: public Translator( Translation Matrix m): A constructor that takes in an object of type TranslationMatrix. public String translateText(String text). This method will do the actual translation. The text will need to be broken up into individual words. To help with this, you should take a look at the split() method in the String class. Once you have the text broken up into single words in an ArrayList, you should send the array list to be translated by a class that acts as a Translation Matrix. Finally, you should return the translated text as a string. The last class you create will be Cipher.java which will serve as your main. This class should ask the user to enter the text to be translated. The main will then call the translateText method of the Translator class and then output whatever this method returns. The program will then ask for another piece of text to translate and repeat the process of translating the text with the same cipher.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Please answer this with in 30 mins .
A Substitution Cipher !!!
very important to follow all the directions, which means creating the specified
classes with the specified methods. Please don't throw the code of the cipher,
it's all over the internet. Follow the directions! thank you.
To begin, create an interface called "Translation Matrix". This interface has a
single method called Translate which takes in an array of String objects. Each
string object should be a single word. Using this interface you will need to make
a class to handle the cipher listed above. Once you have the class set up using
the interface, you will need to create a class called Translator with the following
methods: public Translator( TranslationMatrix m): A constructor that takes in an
object of type Translation Matrix. public String translateText(String text). This
method will do the actual translation. The text will need to be broken up into
individual words. To help with this, you should take a look at the split() method
in the String class. Once you have the text broken up into single words in an
ArrayList, you should send the array list to be translated by a class that acts as a
Translation Matrix. Finally, you should return the translated text as a string. The
last class you create will be Cipher.java which will serve as your main. This class
should ask the user to enter the text to be translated. The main will then call the
translateText method of the Translator class and then output whatever this
method returns. The program will then ask for another piece of text to translate
and repeat the process of translating the text with the same cipher.
Transcribed Image Text:A Substitution Cipher !!! very important to follow all the directions, which means creating the specified classes with the specified methods. Please don't throw the code of the cipher, it's all over the internet. Follow the directions! thank you. To begin, create an interface called "Translation Matrix". This interface has a single method called Translate which takes in an array of String objects. Each string object should be a single word. Using this interface you will need to make a class to handle the cipher listed above. Once you have the class set up using the interface, you will need to create a class called Translator with the following methods: public Translator( TranslationMatrix m): A constructor that takes in an object of type Translation Matrix. public String translateText(String text). This method will do the actual translation. The text will need to be broken up into individual words. To help with this, you should take a look at the split() method in the String class. Once you have the text broken up into single words in an ArrayList, you should send the array list to be translated by a class that acts as a Translation Matrix. Finally, you should return the translated text as a string. The last class you create will be Cipher.java which will serve as your main. This class should ask the user to enter the text to be translated. The main will then call the translateText method of the Translator class and then output whatever this method returns. The program will then ask for another piece of text to translate and repeat the process of translating the text with the same cipher.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY