Random Sentences | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Random Sentences

I’m making a random sentences project for class and my question is how do I get it to where “a” is placed with words that begin with a consonant?? And “an” is placed with words that begin with vowels ??

3rd Oct 2018, 5:19 PM
Alexis C. Student
Alexis C. Student - avatar
2 Answers
0
check if the next letter is a vowel or not, place "a" or "an" accordingly
4th Oct 2018, 4:08 AM
Data
Data - avatar
0
what kind of comparison could I use ?? Data
4th Oct 2018, 4:23 AM
Alexis C. Student
Alexis C. Student - avatar