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

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

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!