Create a java program that asks the user to input a


You need to write a code for java program:

Program:Write a program that determines the percentage of vowels in a sentence by counting the number of vowels in a sentence and dividing it by the total number of characters in that sentence.

1. Create a Java program that asks the user to input a sentence in any language, counts the number of vowels in the sentence, divides it by the total number of characters in the sentence, and displays (in the console window using System.out.println) the percentage of vowels. A vowel is a, e, i, o, and u (don't worry about y being a vowel sometimes).

2. Add another loop so that the program repeatedly asks the user for a sentence and prints the percentage of vowels in it. Make this an infinite loop, so that the program never stops asking for a sentence to process. You can do this by while(true) { ...rest of the program... }

It must compile with no errors and follow the directions - Please don't copy and paste from Google

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a java program that asks the user to input a
Reference No:- TGS0949105

Expected delivery within 24 Hours