Question
CHAPTER OBJECTIVES: Discuss the flow of control through a method Explore Boolean expressions that can be used to make decisions. Perform basic decision-making using if
CHAPTER OBJECTIVES:
Discuss the flow of control through a method Explore Boolean expressions that can be used to make decisions.
Perform basic decision-making using if and switch statements.
Discuss issues pertaining to the comparison of certain types of data.
Execute statements repetitively using while, do, and for loops.
Discuss the concept of an iterator object and use one to read the text files.
INSTRUCTIONS:
Write a program in java Eclipse that reads a string entered by the user and then determines and prints how many of each lowercase vowel (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. Example:
User enters: "This house is beautiful." a: 1 e: 2 i: 3 o: 1 u: 2 non-vowel:10
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