ITEC 120 Lab Quiz 2 - Wednesday, Feb 17

Lab Quiz 2 - Vowel counter
Due at the end of lab period.
Submit your program to your directory on neelix, in the RU04 folder.

Write a program which asks the user to enter a String and then counts the occurrances of each lowercase vowel that appears in the String (a, e, i, o, and u).

Like so:

Program outputs:

Please enter a string:

User inputs: all i wanna do is code java!
Program outputs:
Vowel counts for the string
"all i wanna do is code java!" :

       a:  5
       e:  1
       i:  2
       o:  2
       u:  0

Name your program file labquiz2.java and save it to the RU04 folder on neelix.

Hints:

Extra credit: Attempt this only after you have submitted a working version of the above program!
For 2 points extra credit (that's an extra 20 percent), make your program case insensitive, so that it counts a vowel regardless of whether it is upper or lowercase.

Program outputs: Please enter a string:
User inputs: JAVA rules!
Program outputs:


Vowel counts for the string
"JAVA rules!" :

       a:  2
       e:  1
       i:  0
       o:  0
       u:  1