A Vigenere Cipher !!! very important to follow all the directions, which means creating the specified classes with the s

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

A Vigenere Cipher !!! very important to follow all the directions, which means creating the specified classes with the s

Post by answerhappygod »

A Vigenere Cipher !!!
very important to follow all the directions, which meanscreating the specified classes with the specified methods. Pleasedon't throw the code of the cipher, it's all over theinternet. Follow the directions! thank you.
To begin, create an interface called "TranslationMatrix". Thisinterface has a single method called Translate which takes in anarray of String objects. Each string object should be a singleword. Using this interface you will need to make a class tohandle the cipher listed above. Once you have theclass set up using the interface, you will need to create aclass called Translator with the following methods: publicTranslator( TranslationMatrix m): A constructor that takes in anobject of type TranslationMatrix. public StringtranslateText(String text): This method will do the actualtranslation. The text will need to be broken up into individualwords. To help with this, you should take a look at the split()method in the String class. Once you have the text broken up intosingle words in an ArrayList, you should send the array list to betranslated by a class that acts as a TranslationMatrix. Finally,you should return the translated text as a string. The last classyou create will be Cipher.java which will serve as your main. Thisclass should ask the user to enter the text to be translated. Themain will then call the translateText method of the Translatorclass and then output whatever this method returns. The programwill then ask for another piece of text to translate and repeat theprocess of translating the text with the same cipher.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply