Write an application that encodes English language phrases into Double Dutch using the following algorithm: To form a Double Dutch sentence from an english sentence, translate each English word into a Double Dutch word, place the first letter of the English word at the end of the word and add the letter "ay" Thus the word "jump" becomes "umpjay" the word "the" becomes "hetay" and the word "hackerearth" becomes "acherkearthhay". Blanks between words reamain as blanks. Assure that the English sentence consists of words separated by blanks, there are no punctuation marks and all words have two or more letters, Write a method that takes input a word and return the dutch equivalent. The user inputs an English sentence to the program and the output is the Double Dutch equivalent printed on the screen. Assure all letters are lowercase
Input Specification:
A line containing text to be converted.
Output Specification:
The double dutch text line.
Sample Input:
this is dit
Sample output:
histay siay itday