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.
-
The area of an equilateral triangle is 363 cm 2 What is the height of the triangle? A. 6 cm B. 12 cm C. 6 3 cm D. 123 cm E. 36 cm
-
In a study to determine the relationship between ambient outdoor temperature and the rate of evaporation of water from soil, measurements of average daytime temperature in C and evaporation in...
-
1. Does Clark have any sources of power and any contingencies of power? If so, list and discuss them. 2. To what degree were Clarks methods of influencing board members the most effective possible...
-
The on-going pandemic i.e. Covid - 19 has affected the global financial market substantially. Major economies have announced the emergencies in their countries. Many manufacturing units have stopped...
-
The bookkeeper of Triad Co. gathered the following data from individual employee earnings records and daily time cards. Your task is to complete a payroll register on August 8. Assume the following:...
-
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...
-
Technology Solutions' format for the statement of cash flows was corrupted by a computer virus, as follows: TECHNOLOGY SOLUTIONS Statement of Cash Flows For the year ended December 31, 2012 Cash at...
-
Are use cases the same as functional requirements or functional requirements are different from use cases?
-
Each object has _______ that specify information about the object. (a) Methods (b) Messages (c) Procedures (d) Attributes
-
Which principle suggests the grouping up of highly cohesive classes? (a) REP (b) \(\mathrm{CCP}\) (c) ISP (d) OCP
-
Differentiate aggregation and composition.
-
Using many client specific interfaces rather than a single general purpose interface is the guideline provided by design principle. (a) OCP (b) ISP (c) REP (d) \(\mathrm{CCP}\)
-
What are the functions of a risk manager?
-
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.
-
Analyze the interactions between the family members in Act 1 of a raisin in the sun. What do these interactions reveal about their relationships and individual personalities?
-
Selected hypothetical comparative statement data for the giant bookseller Barnes & Noble are presented here. All balance sheet data are as of the end of the fiscal year (in millions). 2022 2021 Net...
-
A toroidal solenoid (see the figure (Figure 1)) has inner radius 15.2 cm and outer radius 19.5 cm. The solenoid has 260 turns and carries a current of 9.40 A. What is the magnitude of the magnetic...
Study smarter with the SolutionInn App