For the purposes of this problem, the rules for translating an English word into
ID: 3680429 • Letter: F
Question
For the purposes of this problem, the rules for translating an English word into Pig Latin are as follows: Words that start with a vowel (a, e, i, o, u) simply have "way" appended to the end of the word. Words that start with a consonant have all consonant letters up to the first vowel moved to the end of the word, and " ay" is appended. For example, the English word "art" is translated to "artway" whereas "school" is translated to "oolschay". Fill in the blanks below to give a function translate that translates a single word into Pig Latin:Explanation / Answer
Hi below i have written an sample example for your reference,