Determine the percentage of vowels

Assignment Help JAVA Programming
Reference no: EM13695817

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

Reference no: EM13695817

Questions Cloud

Calculate the concentration of cl : Part A. Calculate the concentration of Cl? required to just begin the precipitation of AgCl in a solution having metal-ion concentrations of 0.036M.
How many grams of solid nacn have to be added : Question- How many grams of solid NaCN have to be added to 1.4 L of water to dissolve 0.16 mol of Fe(OH)3 in the form of Fe(CN)63. (For simplicity, ignore the reaction of CN? ion with water.)
Explain diprotic weak base used as a corrosion inhibitor : Question- Piperazine, HN(C4H8)NH, is a diprotic weak base used as a corrosion inhibitor and an insecticide and has the following properties- pKb1=4.22pKb2=8.67
What are the partial pressures of no(g) and no2(g) : The Partial pressure of O2(g) at equilibrium is 0.136 atm. What are the partial pressures of NO(g) and NO2(g) and what is the total pressure in the flast at equilibrium
Determine the percentage of vowels : 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.
Write a balance formula unit and total ionic : Question- Write a balance (a) formula unit, (b) total ionic and (c) net ionic equations for the reaction of sodium acetate (NaCH3COO) with sulfuric acid
Calculate the concentration of cl : Question- In qualitative analysis, Ag+, Hg2+2 and Pb2+ are separated from other cations by the addition of HCl. 1) Calculate the concentration of Cl? Required to just begin the precipitation of AgCl in a solution having metal-ion concentrations of ..
What is the emf of this cell under standard conditions : Question- A voltaic cell is constructed that uses the following reaction and operates at 298 K. (Ered Ni+2 is -0.277) Zn(s) + Ni2+(aq) Zn2+(aq) + Ni(s) (a) What is the emf of this cell under standard conditions
Need to convert this c code to mips : You need to convert this C code to MIPS - The subsequent is a sample output (user input is 2): Enter an integer: 2 The count of the integers that are greater than 2 is: 3 You have to assure the requirements specific in the instruction.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a 2-by-3 two-dimensional array of integers

Create a 2-by-3 two-dimensional array of integers and fill it with data. Loop through the array and locate the smallest value stored.

  Java is considered to be safe from buffer overflows

Java is considered to be safe from buffer overflows. Does that make it more appropriate to use as a s development language when security is concerned? Be sure and weight all if the risks involved in product development, not just the security aspec..

  standard graph with four quadrant

Write a program in java that asks the user for values of x and y, and displays the point as an ordered pair along with a message that describes where that point falls on the standard graph with four quadrant.

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Design a program that asks the user to enter a series of 20

Number Analysis Program: Design a program that asks the user to enter a series of 20 numbers

  Littlest rebel starring shirley temple

Compare the novel Little Women by Louisa May Alcott and the film The Littlest Rebel starring Shirley Temple. How do these two intertwine or influence each other?

  Java program to compute invoice for client

You need a java program to compute the invoice for client and then print out invoice to the screen. The consulting rate is $200 per hour.

  Design a program to help a videorental store

Design classes (class video, class customer, etc) based on your analysis above, using LINKED LISTS for the database elements read into the main memory.

  Write a java loop

write a java loop ( of your choice ) that produces exactly the following output to the screen: 2-4-6-8-

  Program (using java) that is suppose to find the largest

writing a program (using java) that is suppose to find the lowest integer that can be evenly divided by a range (ex. 1-25). I need help fixing/debugging it so it comes up with the proper output.

  Latin squares - puzzle

Solve button causes the program to display a single solution by using only the symbols from the top row of six text fields in such a way that the non-empty grid symbols are not altered.

  Algorithm analysis with advanced data

algorithm analysis with advanced data structuresalchemy-mines of oreland yield unlimited amounts of silver but no gold.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd