Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program called VowelCount. Accept a string from the user and process it to see how many vowels there are in the string. (a, e, i,
- Program called VowelCount. Accept a string from the user and process it to see how many vowels there are in the string. (a, e, i, o, u). Return the vowel count to the user. If there are no vowels counted, process the string again to see if there are any 'y's. If there are 'y's, return the count. Otherwise, return "you must have made a spelling mistake somewhere".
2.Reuse part of the code from VowelCount where you find the vowels, just need to make modifications to exit if a vowel is found.The program called VowelFound that reads a line of input from the user (as a string) and find out if there are any vowels in the string.Use a break or continue keyword (whichever is appropriate) to notify that a vowel has been found.Prompt for another string and search again until the user enters 'exit' into the program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started