StretchWith2Vowels Specification: Read sentences from the user until * is entered. Show the number of words in each sentence that contain a stretch of non-z characters with exactly 2 vowels. A stretch...


StretchWith2Vowels<br>Specification:<br>Read sentences from the user until * is entered. Show the number of<br>words in each sentence that contain a stretch of non-z characters with<br>exactly 2 vowels. A stretch starts from the start of the word or after a 'z'. A<br>stretch terminates just before another 'z' or at the end of the word.<br>Examples:<br>1. Matching words: zoo, azozooza, GONZALEZ<br>2. Non-matching words: ozo, azoooza<br>The sentences contain no punctuation, the words are separated by one<br>or more spaces, and the characters may be upper or lower case. Keep<br>reading sentences until the user enters

Extracted text: StretchWith2Vowels Specification: Read sentences from the user until * is entered. Show the number of words in each sentence that contain a stretch of non-z characters with exactly 2 vowels. A stretch starts from the start of the word or after a 'z'. A stretch terminates just before another 'z' or at the end of the word. Examples: 1. Matching words: zoo, azozooza, GONZALEZ 2. Non-matching words: ozo, azoooza The sentences contain no punctuation, the words are separated by one or more spaces, and the characters may be upper or lower case. Keep reading sentences until the user enters "*". Sample I/O: Sentence: azoooza azooza zoo azo0 Matching words = 3 Sentence: GONZALEZ passes the ball to VAZQUEZ Matching words = 3 Sentence: azozototzeti Matching words = 1 Sentence: * Done

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here