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

  Why are repetition structures important to programming

What is the difference in these statements; how do you create nested loops, and why are repetition structures important to programming?

  About html

Hyper Text Markup Language.

  Design a class named customerrecord that holds a customer

design a class named customerrecord that holds a customer number name and address. include methods to set the values

  Construct a loop which will allow for the daily fan count

Construct a loop which will allow for the daily fan count to be entered for each game. The games number (1-4) should be part of the prompt displayed to the user.

  Calculate gross pay for an employee and display

Calculate gross pay for an employee and display the results. Your program will accept the employee's name, hours worked, and the employee's pay rate.

  2 steps of handling data and invoking procedures

2 steps of handling data and invoking procedures2 steps of handling data and invoking procedures

  Find the date format is valid or not

Display the date and message that indicates whether it is valid. If it is not valid, also display a message explaining why it is not valid.

  Steps in preparing a high level language program

Describe the purpose of each step in preparing a high level language program for execution (editing, compiling, linking, and loading).  Include in your description the types of files created with each of the first three steps.?

  Create access keys for the buttons with the v underlined

Create access keys for the buttons with the "V" underlined for the Update Verse and the F underlined for the Update Font buttons. Create an access key for the "V" underlined on the Verify button

  Find largest number in array

Find the largest number in the array and output the result. use a subprogram to input the numbers, a function to use the largest number.

  Pseudocode to create thread-safe countdownevent by locks

Write pseudocode to implement a thread-safe CountdownEvent using locks and condition variables by implementing the following methods (lists 4 methods) and then "implement a Barrier using a CountdownEvent.

  Web programming

Work through the project instructions using the provided base files. Please note the detailed grading rubric included in the instruction document

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