Question: 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
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
Java Program Wordsjava The following Java program prompts the user to enter four words It then analy... View full answer
Get step-by-step solutions from verified subject matter experts
