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: 71% (7 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.
-
Based on the document, PayTran implemented a series of fraud detection process changes for one of their clients, IWantIt, to help reduce the level of fraudulent transactions. After these changes,...
-
Under what circumstances will a reduction in unemployment by accompanied by (a) an increase in inflation; (b) a decrease in inflation? Explain your answer.
-
Acrimony Limited has the following balances in its general ledger on 31 December 20X8 (in thousands of Canadian dollars): Required: Prepare, in good form, a statement of income and comprehensive...
-
How do our biases affect decision making? Think about the topic of ethics in light of the decision-making biases mentioned. Can our biases "cause" unethical behavior? Why or why not?
-
Eva and Ian are a married couple, with no children, aged 52 and 50 respectively. Ian runs an accounting & consulting business in the Sydney CBD. The business was set up as a company Goodwill...
-
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...
-
Switching to an electronic system would mean a large capital expense for new computers and software. How could analyzing the companys income statement help you justify this expense?
-
1. Present Value (PV): In ten years you will inherit $100,000 from your grandfathers trust. If interest rates are at 5%, how much is this worth today?
-
Nueva Ecija Company received a bill for 27,440 from a non-VAT service provider. The payment for the service is subject to 2% creditable withholding tax. What is the deductible expense if Nueva Ecija...
-
what is the impact and involvement of prison labor over time and how they effect our prison systems?
-
What are the national taxes and local taxes in the Philippines and what are the laws governing them? Explain each.
-
Midland School District needs $56,483. The taxing authority has determined that the total assessed value of all the real estate in the district is $8,825,470. Find the property tax rate to the...
-
Two seismic monitoring stations recorded the vibrations of an earthquake. The second monitoring station is 50 mi due east of the first. The epicenter was determined to be 30 mi from the first station...
-
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.
-
You have just purchased a share of stock for $21.01. The company is expected to pay a dividend of $0.66 per share in exactly one year. If you want to earn a 9.3% return on your investment, what price...
-
Suppose Vivian has a utility function of U=X0.4y0.0, where X and Y are two goods. The prices for X and Y are $4 and $6, respectively. She has $100 in her pocket. Find the optimal quantities of X and...
-
A copper container of mass 0.080 kg and specific heat 387 Jkg 1K-1 contains 0.30 kg of water and 0.040 kg of ice at 0C. Steam at 100C is passed into the water and its temperature stabilizes at 20.0C....
Study smarter with the SolutionInn App