C++ 1) Write a function named WordCount, which determines the number of words in
ID: 3838658 • Letter: C
Question
C++
1) Write a function named WordCount, which determines the number of words in a “C type” string. The function will have one parameter (the address of the string) and will return the number of words (words are separated by one or more spaces). (15 points)
2) Write a function named VowelConsonant which will have three parameters - all “C type” strings. The function will place all vowels (the characters a, e, i, o, u) from the first string into the second string and all consonants from the first string into the third string. Assume the size of each string is sufficient hold the characters. Case of letters is not significant. (15 points)
Explanation / Answer
1) int WordCount(char *a)
{
2) void VowelConsonant(char *s1,char *s2,char *s3)
{
else
{
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.