Answered step by step
Verified Expert Solution
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
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
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