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

  Create an ordinary pipe and write the contents of the file

Design a file-copying program named filecopy using ordinary pipes. This program will be passed two parameters: the name of the file to be copied

  Develop a program that meets the given requirements

Your consulting firm has been hired to develop a program that meets the following requirements. Appropriate calculations are necessary.

  Create constructor by allotting value to gpa attribute

We have provided the super call, which does some of the work of constructor. Your code must complete constructor by allotting value of g to gpa attribute.

  Write program with procedure which draws shape

Write down program with procedure which draws a shape of your choice. Your program must then call the procedure 10 times to draw the shape at 10 random locations.

  Bubble sort or selection sort to sort list before search

Write down program to test method seq0rderedSearch. Use either the method bubbleSort or selectionSort to sort the list before the search.

  The google corporation

HTML is governed by who? o The Google Corporation. o The Microsoft Corporation. o The American Congress.

  Write program to read file having student'' test scores

Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains.

  Create object-oriented design to enter name into text box

Create the object-oriented design for the system which permits the user to enter their name into the text box. When they press Go button message.

  The heap consists of exactly the nine cars on three trains

Suppose the heap consists of exactly the nine cars on three trains shown in given figure.- Object o in car 11 has references from cars 12, 23, and 32. When we garbage collect car 11, where might o wind up.

  Include a pseudo code, flowcharts making complete solution

Your final document should contain a "hierarchy chart" of phases, flowcharts, pseudo code, data dictionary, and seven UML diagrams as developed in Visio and Word. Your document should also contain a paragraph narrative on how each diagram relates ..

  Create a multi-threaded competition

Create a multi-threaded competition

  Create a program that asks the user for the values of x and

in engineering thermodynamics it is sometimes necessary to balance chemical reaction equations specifically for the

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