11. Write a program that counts the numbers of the given consonants (B, b, W, W,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
11. Write a program that counts the numbers of the given consonants (B, b, W, W, X, x, Z, z) in a sentence: Hint: Use getchar() to read the characters you enter and count the number of the consonants while the character ' ' (the end of sentence) is not entered. Example: Enter a sentence: Be well prepared for the exam. Your sentence contains 3 of the given consonants. 11. Write a program that counts the numbers of the given consonants (B, b, W, W, X, x, Z, z) in a sentence: Hint: Use getchar() to read the characters you enter and count the number of the consonants while the character ' ' (the end of sentence) is not entered. Example: Enter a sentence: Be well prepared for the exam. Your sentence contains 3 of the given consonants.
Expert Answer:
Answer rating: 100% (QA)
include int main char ch int consonantcount 0 printfEnter ... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Solve the equation: {1/x -y^2/(x-y)^2.dx} + {x^2/(x-y)^2 -1/y}dy = 0
-
An algorithm has been written in pseudocode to input some numbers. It only outputs any numbers that are greater than or equal to 100. The number 999 is not output and stops the algorithm. INPUT...
-
Describe the three ways a client can reference a name from a namespace in C++.
-
Bill Dukes has $100,000 invested in a 2-stock portfolio. $35,000 is invested in Stock X and the remainder is invested in Stock Y. X's beta is 1.50 and Y's beta is 0.70. What is the portfolio's beta?
-
On January 31, 2019, the general ledger of Palmer Company showed the following account balances. Prepare the worksheet through the Adjusted Trial Balance section. Assume that every account has the...
-
Natural frequency of steel bar given by a. \(58554 \mathrm{rad} / \mathrm{s}\) lumped-mass matrices b. \(33806 \mathrm{rad} / \mathrm{s}\) consistent-mass matrices c. \(33758 \mathrm{rad} /...
-
Balance sheet data for Peacock Company on December 31, the end of the fiscal year, are shown below. Prepare a comparative balance sheet for 2014 and 2013, stating each asset as a percent of total...
-
Using the indirect method, prepare a statement of cash flows for Sullivan Corp. The following are Sullivan Corp.'s comparative balance sheet accounts at December 31, 2025 and 2024, with a column...
-
You receive the following letter. Quark Pty Ltd. 500 Mowbray ROAD LANE COVE, NSW 2066 8 Sept 2018 Greetings, Quark Pty Ltd is a trader of machine parts. Its annual turnover in the last five years...
-
Consider the timing diagram in Figure P5.1. Assuming that the D and Clock inputs shown are applied to the circuit in Figure 5.10, draw wave forms for the Q a , Q b , and Q c signals. Timing diagram...
-
You have been asked to evaluate an infinitely lived project. Sales in the first year are projected to be $100. Costs are projected at $50. There is no depreciation, and the tax rate is 30%. The real...
-
The risk-free rate is 2.20% and the market risk premium is 6.39%. What will be the expected rate of return for the stock if the beta for the stock is 1.33?
-
Scorch & Burn Fire Extinguishers, Inc. had an operating income (EBIT) of $260,000 last year. The firm had $18,000 in depreciation expenses, $15,000 in interest expenses and $60,000 in selling,...
-
1. The Jackson-Timberlake Wardrobe Co. just paid a dividend of $1.95 per share. The dividends are expected to grow at a constant 5% per year. If investors require an 11% return, what is the current...
-
An asset manager responsible for a portfolio of agricultural commodities expects to buy 2200kg of wheat within 1 month. Historical standard deviations of wheat spot price and wheat 1-month futures...
-
Amit holds 20 shares of Rs. 10.00 each on which he had paid Rs. 2.00 per share on application but could not pay Rs. 3.00 per share on allotment and Rs. 1.00 per share on first call. The journal entry...
-
In the busy port of Chennai, India, the number of containers loaded onto ships during a 15-week period is as follows: 1. Develop a linear trend equation to forecast container loadings. 2. Using the...
-
Write a program that will write the Gettysburg Address to a text file. Place each sentence on a separate line of the file.
-
Write a recursive method that will remove all the vowels from a given string and return what is left as a new string. Use the + operator to perform string concatenation to construct the string that...
-
Repeat the previous exercise, but define an enumeration and use it within the switch statement. Previous exercise Imagine a program that displays a menu of five possible choices, lettered a through...
-
A stepped bar, fixed at \(x=0\) and free at \(x=l\), has a cross-sectional area of \(2 A\) for \(0 \leq x
-
Estimate the fundamental frequency for the longitudinal vibration of a uniform bar fixed at \(x=0\) and free at \(x=l\) by assuming the mode shapes as (a) \(U(x)=c_{1}(x / l)\) and (b) \(U(x)=c_{1}(x...
-
Estimate the fundamental frequency of a fixed-fixed string, assuming the mode shape (a) \(W(x)=c_{1} x(l-x)\) and (b) \(W(x)=c_{1} x(l-x)+c_{2} x^{2}(l-x)^{2}\).
Study smarter with the SolutionInn App