← Back to Community
Pig Latin translator
Profile icon
Bunnytoes

I made a pig latin translator with @AlexDaCoder. I updated it, now it takes less time and it has a use again feature. It can now handle sentences

Voters
Profile icon
AzureDev
Profile icon
Bunnytoes
Comments
hotnewtop
Profile icon
InvisibleOne

This is ok... but it only does a single word at a time. You should make it so you can input a sentence.

Profile icon
Bunnytoes

@InvisibleOne that is a good idea, I will try that later, though it will be difficult

Profile icon
InvisibleOne

Try making the code that converts the word to pig latin into a function or method. Then split the users input by spaces and for each word, run it through the conversion function and add the results, then output them to the user. @Bunnytoes

Profile icon
Bunnytoes

@InvisibleOne done. ( @AlexDaCoder helped me with it)

Profile icon
InvisibleOne

Nice, I really like how it automatically figures out if you are inputting pig Latin or normal text. Great job @Bunnytoes

Profile icon
Bunnytoes

@InvisibleOne thanks, I did that part and alexDaCoder helped with the sentences

Profile icon
InvisibleOne
Profile icon
Bunnytoes