Hello...I am really inexperienced with computer programming and learning VB on my own as an introduction of sorts.
I've surpassed the general strings section and now I'm having a problem writing a code for this problem
>Write a program that takes any word as an input and outputs it in pig latin version (if vowel is leading, add ay to end, if consonant is leading - move group of consonants to end (maximum 3) and add ay)
I have a general algorithm (informal) in my head but i cant find out the actual code for it in terms of what ive learned so far (no advanced stuff, not even at cases yet)
my algorithm
name some variables as strings (one with vowels, one with consonants)
if the substr of the input 0,1 is found in the vowel string, then add ay to end and leave input
if the substr of input 0,1 is found in the consonant string, check 1,2 and 2,3
if those all part of consonant string, move 1, x to end and add ay
i cant figure out how to transmute that into code language efficiently...
I've surpassed the general strings section and now I'm having a problem writing a code for this problem
>Write a program that takes any word as an input and outputs it in pig latin version (if vowel is leading, add ay to end, if consonant is leading - move group of consonants to end (maximum 3) and add ay)
I have a general algorithm (informal) in my head but i cant find out the actual code for it in terms of what ive learned so far (no advanced stuff, not even at cases yet)
my algorithm
name some variables as strings (one with vowels, one with consonants)
if the substr of the input 0,1 is found in the vowel string, then add ay to end and leave input
if the substr of input 0,1 is found in the consonant string, check 1,2 and 2,3
if those all part of consonant string, move 1, x to end and add ay
i cant figure out how to transmute that into code language efficiently...