Question: Write a program that translates a text to Fake Latin and back. English is translated to Fake Latin by taking the first letter of every

Write a program that translates a text to Fake Latin and back. English is translated to Fake Latin by taking the first letter of every word, moving it to the end of the word and adding ay to each word. As an example, if your program reads from the keyboard the string The quick brown fox then it should print on the screen the following text: Hetay uickqay rownbay oxfay. You should also implement the reverse of this, reading "Iay ikelay rogrammingpay" should print on the screen "I like programming". Please help me i need it in java.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to write a Java program that can both encode and decode text in a style similar to Pig Latin We will define methods for ... View full answer

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!