Assume that the letters A, E, I, O, and U are vowels. Write a program that prompts
Question:
Assume that the letters A, E, I, O, and U are vowels. Write a program that prompts the user to enter a string, and displays the number of vowels and consonants in the string.
Enter a string: Programming is fun
The number of vowels is 5
The number of consonants is 11
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (8 reviews)
import javautilScanner public class Exercise0549 publi...View the full answer
Answered By
Ehsan Mahmood
I’ve earned Masters Degree in Business Studies and specialized in Accounts & Finance. Couple with this, I have earned BS Sociology from renowned institute of Pakistan. Moreover, I have humongous teaching experience at Graduate and Post-graduate level to Business and humanities students along with more than 7 years of teaching experience to my foreign students Online. I’m also professional writer and write for numerous academic journals pertaining to educational institutes periodically.
4.90+
248+ Reviews
287+ Question Solved
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
Write a program that prompts the user to enter a string and displays the number of the uppercase letters in the string. Enter a string: Welcome to Java The number of uppercase letters is 2
-
Write a program that prompts the user to enter a string and displays the string in reverse order. Enter a string: ABCD The reversed string is DCBA
-
Write a program that prompts the user to enter a string and displays its length and its first character.
-
Posting the entries from the sales journal to the accounts receivable subsidiary ledger should be done ______. a). at the end of each month b). on a weekly basis c). on a daily basis d). only at the...
-
a. Use a MATLAB ode function to solve the following equation for 0 t l. Plot the solution. + 3y = 5e4t y(0) = 10 b. Use the closed-form solution to check the accuracy of the numerical method.
-
For each of the possible loan terms the commercial lender might offer, identify what choices by the lender would be the worst for combating the moral hazard problem inFigure. The Problem of Moral...
-
Explain the difference between revenue expenditures and capital expenditures and how both are recorded. 10.What is a betterment? How is a betterment recorded?
-
On January 1, Year 1, three companies purchased the same make and model copy machine. However, each company made different assumptions regarding the useful life and salvage value of its particular...
-
Determine if the following is an example of descriptive or inferential statistics. 300 female Osprey hatch-lings were tracked until they died or succeeded in laying their own eggs. Based on the data,...
-
In spring 2021, Amir Nathoo was at the helm of one of the most talked-about startups in the massive and fragmented educational technology (EdTech) industry. Just six years earlier, Nathoo and his...
-
that prompts the user to enter a string and displays the characters at odd positions. Here is a sample run: Enter a string: Beijing Chicago BiigCiao
-
Write the methods with the following headers: // Return the reversal of an integer, e.g., reverse(456) returns 654 public static int reverse(int number) // Return true if number is a palindrome...
-
The figure shows the graphs of y = sin 96x and y = sin 2x as displayed by a TI-83 graphing calculator. The first graph is inaccurate. Explain why the two graphs appear identical. 2 y = sin 96x y= sin...
-
What is the largest magnitude of acceleration achieved by the ant? x-velocity (m/s) LO 5 -5 Your Answer: = FLO 5 m/s^2 t (s) 10
-
Write a program that translates an alphabetic phone number into numeric form: Enter phone number: CALLATT 2255288 (In case you don't have a telephone nearby, here are the letters on the keys: 2:ABC....
-
A laser beam enters a thick glass block at an angle of 630 from the normal. The index of refraction of the glass is 1.45. A Question 8 (1 point) Retake question Listen The glass block has a thickness...
-
Stepney College needs to carry out stone restoration works to the faade of one of their buildings in the Melbourne City Centre. The college approaches a couple of stone restoration companies -...
-
Write a for loop that iterates 3 times. Each iteration: Put userNum to output. Then, put "," to output. Then, assign userNum with userNum multiplied by 4. Ex: If input is 2, then output is: 2,8,32, 1...
-
Do you agree that alert individuals who purchase valuable domain names should be able to sell them to the highest bidder? If so, in all circumstances or only in certain circumstances?
-
Chao, Louis, and Mari, unrelated individuals, own all of the shares of Cerise Corporation. All three shareholders have been active in the management of Cerise since its inception. In the current...
-
Rewrite the Programming Exercise 3.9 by entering the ISBN number as a string. Data from Exercise 3.9 An ISBN-10 (International Standard Book Number) consists of 10 digits: d 1 d 2 d 3 d 4 d 5 d 6 d 7...
-
Write a program that prompts the user to enter a year and the first three letters of a month name (with the first letter in uppercase) and displays the number of days in the month. Here is a sample...
-
Write a program that displays a random uppercase letter using the Math.random() method.
-
In business combination, the fair value of combinee plant assets was $ 850,000 and the carrying amount of plant assets was $ 750,000. The journal entry to allocate liquidated company to identifiable...
-
Brookdale Hospital hired an inexperienced controller early in 20X4. Near the end of 20X4, the board of directors decided to conduct a major fund-raising campaign. They wished to have the December 31,...
-
Please prepare a summary of the key tools. You should think about your tool summary set up and determine what is the most efficient way for you to prepare the summary. Name of tool Purpose of tool...
Study smarter with the SolutionInn App