Page 1 of 1

Design and implement an application that reads a string from the user, then determines and displays how many (of each) o

Posted: Sat Nov 27, 2021 2:34 pm
by answerhappygod
Design and implement an application that reads a string from the
user, then determines and displays how many (of each) of the five
vowels (a, e, i, o, and u) appear in the entire string. Have a
separate counter for each vowel. Also count and print the number of
non-vowel characters. The app should handle both lowercase and
uppercase vowels. The logic must include
a switch-case structure to determine which counter to
increment.
Hint: Use the charAt method of the String
class to examine each character of the input.
Testing: Build a test plan separately so
you can predict and show that your program is working correctly.
You need to determine a selection of inputs, such as something with
no vowels, only a single letter “a,” and so on. A key requirement
is to prove that each counter is functioning independently of the
others.
p.s. Please provide the completed Java code.