In a given word, one can say that there exist a consonant cluster if there are two or more consonant letters in the word which do not have intervening vowels. On the other hand, a vowel cluster is a sequence of two or more vowel letters that come before, after, or between consonants. A ConVo cluster is a sequence of two or more consonant and vowel clusters. Your task is simple. You are to determine if a given set of words has a Convo cluster.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

.

Problem E: Convo Clusters
In a given word, one can say that there exist a consonant cluster if there are two or more
consonant letters in the word which do not have intervening vowels. On the other hand, a
vowel cluster is a sequence of two or more vowel letters that come before, after, or between
consonants.
A Convo cluster is a sequence of two or more consonant and vowel clusters.
Your task is simple. You are to determine if a given set of words has a Convo cluster.
Input
Input contains several lines. Each line contains a set of lowercase words.
Output
For each line of input, display the word YES if it has a Convo cluster. Otherwise, display NO.
Constraint
Set of words will not exceed 100 characters.
Sample Input
pastillas girl
pabebe wave
cartoon characters
gilas coach tab baldwin
Sample Output
NO
NO
YES
YES
Transcribed Image Text:Problem E: Convo Clusters In a given word, one can say that there exist a consonant cluster if there are two or more consonant letters in the word which do not have intervening vowels. On the other hand, a vowel cluster is a sequence of two or more vowel letters that come before, after, or between consonants. A Convo cluster is a sequence of two or more consonant and vowel clusters. Your task is simple. You are to determine if a given set of words has a Convo cluster. Input Input contains several lines. Each line contains a set of lowercase words. Output For each line of input, display the word YES if it has a Convo cluster. Otherwise, display NO. Constraint Set of words will not exceed 100 characters. Sample Input pastillas girl pabebe wave cartoon characters gilas coach tab baldwin Sample Output NO NO YES YES
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Types of trees
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning