Write a program with single class named countvowels

Assignment Help Programming Languages
Reference no: EM132211686

Question: Write a program with single class named CountVowels that reads from user a sentence and assigns it to a String type variable. After that determine and print number of each

- (lower-case or upper-case) vowels (a, e, I, o, u) for each vowel separately,

- Other characters such as consonants and interpunction characters (such as comma, dot, question mark, exclamation, and space) (Count all other together)

Use separate counter for each vowel (countA, countE, countI, countO, countU) and one counter for all other characters (countOther). Design the flow in such a way that you use a single for-loop to move through each sentence only once and after that print input sentence and report values for all counters in a table format. Use do-loop to allow user to enter another sentence(s) or quit. Branching should be done with switch statement.

For input string "He is the best listener, and the worst speaker." the output should be as follows:

Symbol Count

A 2

E 7

I 2

O 1

U 0

Other 34

Reference no: EM132211686

Questions Cloud

Write a program that will picks out the individual words : Write a program that will take a sentence (a single String), picks out the individual words (substrings), and puts each of them into a String array.
How the grant program matches the funders interests : The appeal section should provide information about how the grant program matches the funder's interests or aligns with their funding priorities.
What is its ROE before and after the change : If ABC's parent changes its capital structure to include 40% debt, what is its ROE before and after the change? Assume interest rate on debt is 10%
What was the most important development in the history : Our text mentions use of an emergency hearing to approve a blood transfusion for a patient whose husband refused to grant permission.
Write a program with single class named countvowels : Write a program with single class named CountVowels that reads from user a sentence and assigns it to a String type variable.
Job evaluation translate internal alignment policies : How does job evaluation translate internal alignment policies into practice? What does organization strategy and objectives, flow of work
What is the approximate yield the company would pay : Fernando Baltra Company wished to issue zero coupon straight debt with approximately a 15-year maturity. What is the approximate yield the company would pay
Write a program sequence to generate a tone : Write a program sequence to generate a tone of 125Hz for about a second and then stop, by interfacing with the speaker on the Dragon 12_Light board.
What is managerial decision making example : What is a managerial decision making example that is best suited for Unstructured decisions? Be detailed in your response

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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