Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) Input a String from the user (use Scanner class method nextLine). Convert the String to lowercase. b) Write a for loop that counts how

image text in transcribed
a) Input a String from the user (use Scanner class method nextLine). Convert the String to lowercase. b) Write a for loop that counts how many of each lowercase vowel (a, e, i, o, u) are found in the String. Note: You will need 5 integer variables to store the counts and these variables must be initialized to 0. c) After the loop is over, display the number of times each vowel was found. d) Once you have the for loop working, do the problem again using a while loop. Do not declare new variables. Reset the counts to o before you start the while loop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions