Question: Please correct the code below Question Type : Write a program ----------------------------------------------------------- Write the needed code to make the program runs correctly. Prompt the user

Please correct the code below

Question Type : Write a program -----------------------------------------------------------

Write the needed code to make the program runs correctly.

Prompt the user to input vector size and input vector data, then output the vector data so that all the vowels are capitalized. Implement the function "MakeBigVowel" which is called by the main function to do the required task.

Vowels are (a,e,i,o,u)

The sample runs are as follows.

Sample Run 1:

Input vector size => 10 Input vector data => thetestdata Vowels Capitalized : t h E t E s t d A t

Sample Run 2:

Input vector size => 10 Input vector data => eastis west Vowels Capitalized : E A s t I s w E s t

---------------------------------------------------------------*/ #include #include using namespace std;

// ------------------------------------------------------------ // Write your implementation for the MakeBigVowel function below // this line. // ------------------------------------------------------------

// ------------------------------------------------------------ // Do not modify any of the code below. Any attempt // to modify the code below will cause you to get // 0 for the question. // ------------------------------------------------------------

void print(vector &c) { cout << "Vowels Capitalized : "; for (auto e: c) cout << e << " "; cout << endl; }

void input(vector &v, int size){ char ch; cout << "Input vector data => "; for (int i=0;i> ch; v.push_back(ch); } }

int main() { vector v; char ch; int size; cerr << "Input vector size => "; cin >> size; input(v,size); MakeBigVowel(v); // implement this function above print(v); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!