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: 72% (11 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.
-
Question 1 7 of 1 8 - 1 3 v d o t s v d o t s vdots View Policies B Current Attempt in Progress Crane Corporation had the following items in inventory as at December 3 1 , 2 0 2 3 : \ table [ [ Item...
-
List barriers to effective interpersonal communication and how to overcome them.
-
Wyrick Inc. had the following transactions pertaining to investments in common stock . Jan. 1 Purchased 2,500 shares of Murphy Corporation common stock (5%) for $140,000 cash plus $2,100 brokers...
-
(1-4/(1.20)25 APV = $100 .20
-
Pas Corporation acquired 80 percent of Sel Corporation's common stock on January 1, 2011, for $210,000 cash. The stockholders' equity of Sel at this time consisted of $150,000 capital stock and...
-
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...
-
Assume that you are a tennis player who frequently participates in tournaments. Would you rather have your tennis club use the In/Out device, a much more expensive monitoring system, or human line...
-
In this problem, we consider mild modifications of the standard MDP setting. (a) (10 points) Sometimes MDPs are formulated with a reward function R(s) that depends only on the current state. Write...
-
All-Walnut, Inc. produces two models of bookcases. The bookcases sell for the amount listed in the table below. Each bookcase requires a certain number of labor hours, machine time, and materials...
-
Problem 1 Find the number of degrees of freedom of the mechanisms (a)-(d) (a) (b)
-
3) (10 pts) The following grammar is given E EAE (E) -E | id V={E,A), T={-,(,),*,/,+,id} and starting symbol is E. a) Give the left-most derivation of w= id+id*id. Is w accepted? b) Is this a...
-
4. X, the proprietor of a departmental store, decided to calculate separate profits for his two departments L and M for the month ending 31st January. Stock on 31st January could not be valued for...
-
Whitegloves Janitorial Service was started 2 years ago by Lynn Sanders. Because business has been exceptionally good, Lynn decided on July 1, 2020, to expand operations by acquiring an additional...
-
Consider a game of poker being played with a standard 52-card deck (four suits, each of which has 13 different denominations of cards). At a certain point in the game, six cards have been exposed. Of...
-
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.
-
WISE-HOLLAND CORPORATION On June 15, 2013, Marianne Wise and Dory Holland came to your office for an initial meeting. The primary purpose of the meeting was to discuss Wise-Holland Corporation's tax...
-
Stock in ABC has a beta of 0.9. The market risk premium is 8%, and T-bills are currently yielding 5%. The company's most recent dividend is $1.60 per share, and dividends are expected to grow at a 6%...
-
Sweeten Company had no jobs in progress at the beginning of March and no beginning inventories. The company has two manufacturing departments --Molding and Fabrication. It started, completed, and...
Study smarter with the SolutionInn App