Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java code Write a Java program named Words that asks the user to enter four words. The program should then analyze each of the

in java code
image text in transcribed
Write a Java program named Words that asks the user to enter four words. The program should then analyze each of the four words so that it can report the length of each word as well as the positions of the five vowels within each word. For a sample run where the user enters the words: she smiles third frisbee the console screen must look as follows: Finter 4 words: she gmileg third frisbee Word 1= "ghe" tength =3 position of vowela: 'a. =1,te=2, ' 1 , ' =1, 'o' =1, 'u' =1 Word 3= "third" tength =5 position of vowelat 'a' = t 1, ' e=1, t =+2. ' = ' =1, 'u" =1 For a sample run where the user enters the words: shoe shoe chime wallabees the console screen must look as follows: Finter 4 wordes whoe shoe chime wallabee Word 3 = "ehime" Length =5 poeition of vowelat 'at =1, ' a ' =4.1 ' =2. 'o' =1, 'u' = 1 Note: For multiple instances of a vowel, only the index of the first occurrence will be indicated. An index of 1 indicates that the vowel does not occur in the word

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

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions