Question: Problem (3) [15 points] Write C++ code that reads a sentence and displays the first and last vowel. You may assume the vowels are: a,
![Problem (3) [15 points] Write C++ code that reads a sentence](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa4aaa5b590_14566fa4aa9f1827.jpg)
Problem (3) [15 points] Write C++ code that reads a sentence and displays the first and last vowel. You may assume the vowels are: a, e, i, o and u. You can assume there will be at least one vowel. Hint: some ways of solving this might be easier if you use a function to help you, though it is not necessary. Examples: input - "i like cookies". Should output: "First -i, last -e". input . "a". Should output: "First-a, last-a". input "strings are no fun". Should output: "First -i, last- u
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
