The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 4 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
Can Someone help please
I need help with these starter codes.
In it you will find skeleton functions and a class all of which you must implement per the comments in the file.
#include <iostream>#include <vector>using namespace std;/*** Returns the count of the number of vowels (including y).* Note: It must handle both upper- and lower-case.** @param word the word whose vowels need counting.** @return the count of the number of vowels (including y).*/int vowel_count(string word) {// TODO: insert your implementation}/*** Returns the number of syllables in a word.* To make this simple, use the following rules:*Each group of adjacent vowels (a, e, i, o, u, y)*counts as one syllable*(for example, the “ea” in “real” contributes one syllable,*but the “e ... a” in “regal” counts as two syllables).*However, an “e” at the end of a word doesn’t count as a*syllable. Also each word has at least one syllable,*even if the previous rules give a count of 0.** For example:*syllable_count("Harry") returns 2*syllable_count("hairy") returns 2*syllable_count("hare")returns 1*syllable_count("the")returns 1** @param word the word whose syllables to count** @return the number of syllables in a word.*/int syllable_count(string word) {// TODO: insert your implementation}/*** Given a file that contains 1 word per line, returns* a vector of all the words that have min <= length <= max.** @param filename name of a file with 1 word per line.* @param min the min length (inclusive).* @param max the max lenght (inclusive).** @return a vector of all the words that have min <= length <= max,*if none match, an empty vector is returned.*/vector<string> filter_dict(string filename, int min, int max) {// TODO: insert your implementation}class GematricString {private:/*** The original word (case-preserved)*/string word;