Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started