Hello everyone I'm trying to write a program that changes a vowel in a string input to a number but only one chosen at a time i.e if the input is cream, if I chose a it is going to print cre4m but if I chose e it is going to print cr9am vowel equivalences are
a=>4
e=>9
i=>1
o=>0
u=>5
so I want an output like
Sample Run 1
This is a blab la…
1 - Enter new source text
2 - Change search vowel (current: a)
3 - Exit
Please enter user command number: 1
Please enter the text: cream
Processed output is: cre4m
1 - Enter new source text
2 - Change search vowel (current: a)
3 - Exit
Please enter user command number: 2
Please enter a vowel (a,e,i,o,u): e
1 - Enter new source text
2 - Change search vowel (current: e)
3 - Exit
Please enter user command number: 1
Please enter the text: eclipse
Processed output is: 9clips9
1 - Enter new source text
2 - Change search vowel (current: e)
3 - Exit
Please enter user command number: 3
Bye...
Press any key to continue . . .
I cant figure it out help me please. Thank you in advance
Come up with at least something of your own, I am sure you can write at least some part of the program. When you need help with a specific issue show everything you got and explain what exactly you need help with.
I did write it, but I really dont understand two things, firstly how can I create the while loop of the whole thing which is at the second option I chose some vowel and it returns me to beginning and secondly how can I write a loop that replaces vowels with a number. Thank you