Question: C++ : Write a program that prompts the user to enter a line of text (including whitespace). The program then replaces the following vocals with

C++ :

Write a program that prompts the user to enter a line of text (including whitespace). The program then replaces the following vocals with numbers: a = 1, e = 2, i = 3, o = 4, u = 5 and outputs the result to the console. The program does not consider case, so a = 1, A = 1, e = 2, E = 2, etc.

Example: Input: Hello, how are you? Output: H2ll4, h4w 1r2 y45?

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!