Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use Java, Thank you. Work2-5 Write a Java program named Words that asks the user to enter four words. The program should then analyze
Please use Java, Thank you. Work2-5
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: Enter 4 words: she miles third frisbee Word 3= "third" Length =5 position of vowels: 'a' =1,e=1,1 ' =2,0 ' =1, 'u' =1 For a sample run where the user enters the words: shoe shoe chime wallabees the console screen must look as follows: Enter 4 words: shoe shoe chime wallabees Word 1= "shoe" Length =4 position of vowels: ' a ' =1,e ' =3,1 ' =1,=1, =2, 'u' =1 Hord 2= "shoe" Length =4 position of vowelg: ' a ' =1,e ' =3,1, ' =1,c=2, Word 4= "wallabees" Length =9 position of vowels 7 ' a ' =1,e=6, '1' =1,0, =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. Please make sure to end each line of output with a newline 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