Question: JAVA OOP Your first task is to code a new Java program that implements your teammates' new encryption procedures/steps. The encryption steps are as follows:

JAVA OOP

JAVA OOP Your first task is to code a new Java program

that implements your teammates' new encryption procedures/steps. The encryption steps are as

follows: Step 1 : The program will ask the user to enter

Your first task is to code a new Java program that implements your teammates' new encryption procedures/steps. The encryption steps are as follows: Step 1 : The program will ask the user to enter a text via console. Convert all the characters to lower case. Meel me al 10AM meet me al/Oum Step 2: Swap all the vowels in the text using the following rules: a. Swap 'u' with '' b. Swap 'e' with 'u C. Swap 'i' with 'e' d. Swap 'o' with '7 e. Swap '' with 'o' muel me al llam maui ma w / Oum Step 3: Inverse the swapped text without inverting the words. maui ma w 10um um ma muut Step 4 : Replace all alphabets and numbers in the inversed text with Morse Code alphabet using the following setting: G. Q- F... P.- Z-.. H.... R. 1.. S... A.- B -... K L... U.. V... 1.---- 2..-- 6 - .... 7 --... T- D-.. E. N- --- Y--- 4 ....- 5..... 9 -- 0 -- M- W.-- 3...-- 8 ---.. Note: in Morse Code, each alphabet is separated by one (1) white space and each word is separated by two (2) while spaces. Step 4 The program will display the final encrypted message. -*-*- (Note: *represent empty space) 2 QUESTION I: Table 1 : Class and methods Class Name Purpose of the Method Method In Class getInput() Input Swap getSwap Inverse getInverse() MorseCode convertMorsc Codec 1. Ask the liser to enter a text 2. Return the original text 1. Receive the original text from the caller. 2. Swap all the vowels based on the setting given in the case study 3. Return the processed text 1. Receive the swapped text from the caller 2. Inverse the swapped text using the rule given in the case study 3. Retum the inversed text 1. Receive the inversed text from the caller 2. Convert all alphabet and numeric to Morse Code alphabets 3. Return the final Morse Code text 1. The main class and method in the program 2. Call methods of other classes following the steps given in the case study 3. Display the final Morse Code text to console 4. Ask the user if they wish to try again or not. 5. If the user chooses to try again, restart from the first step. If not, the program will display "Thank you" and ends. Encrypti main() Using the information given in Table 1, draw a complete class diagram lo represent the communication between the classes. Each method must include the possible parameter and return data type. QUESTION 2 : In one (1) Java file, write a program implementing all the five (5) classes and their methods mentioned in Question 1. The body of each method is based on the encryption steps given in the case study. The implementation must include suitable control and data structure. But you are not restricted to the one discussed in class. The program must also have proper documentation comments explaining key point of your program. This will assist with the code readability and tracing, The program will be graded based on correctness, program logic, implementation of control and data structure and documentations, 3 Example of expected output: : Meet me at 10AM Please enter a text Encrypted text : Do you want to try again? Press y or n : y : 123456 Please enter a text Encrypted text Do you want to try again? Press y orn:n Thank you. 4

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!