+ 14

[🏆 CHALLENGE 🏆] Double Dutch Encoder

------------------------------------------Double Dutch------------------------------------------------ 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 letters "ay." Thus the word "jump" becomes "umpjay," the word "the" becomes "hetay," and the word "ignite" becomes "gniteiay." Blanks between words remain as blanks. Assume 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 program to print the Double Dutch Word that takes as input a word and prints the Double Dutch equivalent. Assume all letters are lowercase. Input Specification: A line containing text to be converted. Output Specification: The double dutch text line. Sample input : this is ignite Sample Output : histay siay gniteiay My Code: https://code.sololearn.com/cdaUVnDz7MJS/#java

10th Jan 2018, 2:31 PM
Я. ♨
Я. ♨ - avatar
12 Antworten
10th Jan 2018, 2:30 PM
Я. ♨
Я. ♨ - avatar
5th Jan 2018, 12:54 PM
LukArToDo
LukArToDo - avatar
+ 16
Please, let me know what is the output if the input is the next sentence: " I know, that's a lot of words! "
4th Jan 2018, 3:10 PM
LukArToDo
LukArToDo - avatar
11th Jan 2018, 8:54 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 11
https://code.sololearn.com/cWJ7toY81u44/?ref=app My try for the challenge. Kindly review.
4th Jan 2018, 1:41 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 8
Cool Käzî, your code is perfect https://code.sololearn.com/c3ovlwFFvnON/?ref=app
4th Jan 2018, 4:57 PM
Louis
Louis - avatar
+ 5
https://code.sololearn.com/csvMWvH5Yo4Q/?ref=app
4th Jan 2018, 3:17 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 5
@lukartodo there aren't any marks and all words must have two or more letters
4th Jan 2018, 3:18 PM
abdulazizumarovich
abdulazizumarovich - avatar
10th Jan 2018, 4:31 PM
Mahdi Cheikhrouhou
Mahdi Cheikhrouhou - avatar
10th Jan 2018, 3:40 PM
Al Toe
10th Jan 2018, 3:22 PM
Sebastián Zapata
Sebastián Zapata - avatar
10th Jan 2018, 5:40 PM
Simon
Simon - avatar