Question: Create a program called VowelFoundYourLastName.java . Read a line of input from the user (as a string) and find out if there are any vowels
Create a program called VowelFoundYourLastName.java. Read a line of input from the user (as a string) and find out if there are any vowels (a, e, i, o, u) 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. Do not process the word 'exit'.
Hint: We do not care how many vowels are found - just that the first one was found. If one is found, immediately notify the user that one has been found and prompt again for another word.
Again, you may create a method to use or do this all in a sentinel value loop in the main method. Just remember to keep your view separate from your actions. Therefore, printing and input gathering should only be in the main method.
Note: if you search for help, you'll see regexs or natural expressions used. These should NOT be implemented in your solution. Use a loop to process the string and an if statement to check for values. Solutions with regex or natural expressions will be asked to revise with the loop/if statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
