Question: Input a String from the user (use Scanner class method nextLine). Then, write a for loop that counts how many of each vowel (a, e,

Input a String from the user (use Scanner class method nextLine). Then, write a for loop that counts how many of each vowel (a, e, i, o, u) are found in the String. After the loop is over, display the number of times each vowel was found. Case does not matter. 'A' and 'a' should be counted as the vowel a. Once you have the for loop working do the problem again using a while loop.

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!