Write a program that takes a phrase and then counts

Assignment Help Computer Engineering
Reference no: EM132168417

using Dr java

Objective:

Write a program that takes a phrase and then counts the number of vowels (case does not matter) in the phrase. It then should display all of the vowels in sorted ascending order according to their count. Only consider {AEIOU} as the vowels.

Hint:

It may be a good idea to keep track and sort two arrays:

Has the vowels in alphabetic order
Has the number of said vowels

Whenever one would swap then it swaps the values in both arrays.

Example Dialog:

Welcome to the vowel counter and sorter!

Enter a phrase!

aaaaaeeeeiiioou

The vowels and their count

u 1

o 2

i 3

e 4

a 5

Another Example

Welcome to the vowel counter and sorter!

Enter a phrase!

Facetious is the only word in English that contains all vowels in order!

The vowels and their count

u 1

a 4

e 5

i 6

o 6

Yet another Example

Welcome to the vowel counter and sorter!

Enter a phrase!

I have a pen, I have an apple. Uh! Apple Pen I have a pen, I have pineapple. Uh! Pineapple Pen Apple pen... Pineapple pen... uh! Pen Pineapple Apple Pen! Pen Pineapple Apple Pen

The vowels and their count

o 0

u 3

i 9

a 17

e 29

Reference no: EM132168417

Questions Cloud

How do you refocus the organization on quality : How do you refocus the organization on quality and how do you conduct root cause analysis to investigate some of the problems within an organization.
Create a histogram for a large amount of data : This data will be in a binary file and the name of the file and number of histogram intervals need to be enetered as command line arguments.
Design and implement a driver class called fliprace : Design and implement a driver class called FlipRace whose main method creates two Coin objects.
Change management during a system implementation : What are three items an HIM Manager must do when managing Change Management during a system implementation
Write a program that takes a phrase and then counts : Write a program that takes a phrase and then counts the number of vowels (case does not matter) in the phrase.
What is the difference in labour productivity : If the labour cost in Country A is $100 per day while that in Country B is $180 per day, what is the difference in Labour Productivity if the latter
Pre-implemntation stage of emr or ehr : What do you need clinicians representation in pre-implemntation stage of EMR or EHR?
What is the break-even point : If the minimum quantity for Location B is 4,400 pieces, what is the break-even point?
List the value of shipped orders for each customer : List the product name, product code, product line, and product line description for all products that are part of the Motorcycles product line.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define a procedure readforintdivide to read the input

Define a procedure "ReadForIntDivide" to read the two input values for the IntDivide procedure defined in the previous.

  What is the value of beta

What is the value of beta after the subsequent code executes if the input is 1?

  Why data structure you use gives a good tradeoff

Suppose we want to create an address book which contains names, phone numbers, emails, and other personal information.

  How long would it take to transmit the file

How long would it take to transmit the file if each link has a capacity of 10Mbs, propagation speed of 15Km/s, and length of 30m?

  Make a program find that searches all files

Write a program Find out that searches all files specified on the command line and prints out all lines containing a reserved word.

  Write class called course that represent course taken school

Write a class called Course that represents a course taken at a school. Represent each student using the modified Student class from the previous programming.

  Relationship of tactical-strategic and operational plans

Explain what is meant by the relationship of tactical, strategic, and operational plans, and their individual planning horizons as applied to the telecommunications field.

  Evaluatew both local and mean nestlet numbers

Consider laminar flow in a circular tube with a fully developed velocity profile. Let heat be added at a constant rate along the tube from x+ = 0 to X+ = 0.10.

  Implement the augmented lagrange multiplier method

Write a computer program to implement the augmented Lagrange multiplier method with a suitable method of unconstrained minimization.

  Write an application that accepts up to twenty strings

Write an application that accepts up to 20 Strings. Divide them into two lists-one for short String that are five characters or fewer and other for long String.

  Suggest how alice can prevent related message attack on rsa

Suggest how Alice can prevent a related message attack on RSA. Using the Rabin cryptosystem with p = 47 and q = 11: Encrypt P 2. 17 to find the ciphertext.

  Draw the uml diagram

Draw the UML diagram (sequence diagram and activity diagram(for airport check-in and security screening and write scenario for sequence and activity .

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