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

  What are the main differences between java programming

question 1 what are the major differences between java programming language and any other language? list and discuss

  Write a method called printlevel

Write a method called printLevel that takes an integer n as a parameter and that prints the values at level n from left to right. The values should be printed one per line.

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Write a java program in a netbeans project

Write a Java program in a NetBeans project

  In this project you need to write a program called gf2java

in this project you need to write a program called gf2.java to implement the finite field gfpnwhere p is a prime number

  A class for counting the number of people

Specification: A class for counting the number of people in a room. This might be used to control how many people are allowed into a club with a doorman.

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

  Statements to create a collection of integers

Write Java statements to create a collection of integers, and to initialize each element of the collection to -1. Then, using a for each statement to print the value of each element.

  Create a java class called samearraysexception

Create a Java class called SameArraysException that extends the Exception class.

  Create the class airplane

Your missions is to create the class Airplane. Each Airplane object should store the following information (fields):

  Difference between the two following statements

What exactly is the difference between the two following statements and which is preferred, please provide details: 1) frame.setSize(400, 300); // Set JFrame Size

  Java program on eclipse

Using a while( true ) loop,and using the upper case alphabeth from Z to A,print the lower case alphabeth and its corresponding ascii values.You must terminate/exit/break this loop once you process the last letter (A).

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