So I've been trying to implement a program that translates a word/sentence (inputed by the user) from english into pig latin and vice versa. A Pig Latin word is formed from an English word by stripping the initial consonants from the front of the word and tacking them on the end with the addition of "ay". We ad a '-' so that it can be reversed. For example, "pig latin" in pig latin would be "ig-pay atin-lay". I cannot use string.substr for this homework and am confused on getting the input line. The first part of the homework says to pull characters out of the input line until you hit a space (or end of line), keep a counter of how much of the line you have read, so you know where to start for the next word, then take each single word to the next part, repeat this (do in a loop) until you use up the whole line. Then it asks to translate from english to piglatin. To do this it says: Within a word, copy characters (use a loop) into some string until you hit a vowel. The rest of the original word can be printed out. (This could also be a loop, character by character, if you don't know a way to refer to the string with the first few characters chopped off). Then print the copied string, and add "ay". This is what I have so far, but it's kind of all over the place. Any help would be much appreciated. Thank you.