Write a program that reads input a word at a time until a lone q is entered.
Question:
Write a program that reads input a word at a time until a lone q is entered. The program should then report the number of words that began with vowels, the number that began with consonants, and the number that fit neither of those categories. One approach is to use isalpha() to discriminate between words beginning with letters and those that don’t and then use an if or switch statement to further identify those passing the isalpha() test that begin with vowels. A sample run might look like this:
Enter words (q to quit):
The 12 awesome oxen ambled
quietly across 15 meters of lawn. q
5 words beginning with vowels
4 words beginning with consonants
2 others
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 55% (9 reviews)
The program is as follows i Enter the following declarations include Enter words q to quit The 12 aw...View the full answer
Answered By
James Warinda
Hi! I’m James Otieno and I'm an experienced professional online tutor with countless hours of success in tutoring many subjects in different disciplines. Specifically, I have handled general management and general business as a tutor in Chegg, Help in Homework and Trans tutor accounts.
I believe that my experience has made me the perfect tutor for students of all ages, so I'm confident I can help you too with finding the solution to your problems. In addition, my approach is compatible with most educational methods and philosophies which means it will be easy for you to find a way in which we can work on things together. In addition, my long experience in the educational field has allowed me to develop a unique approach that is both productive and enjoyable.
I have tutored in course hero for quite some time and was among the top tutors awarded having high helpful rates and reviews. In addition, I have also been lucky enough to be nominated a finalist for the 2nd annual course hero award and the best tutor of the month in may 2022.
I will make sure that any student of yours will have an amazing time at learning with me, because I really care about helping people achieve their goals so if you don't have any worries or concerns whatsoever you should place your trust on me and let me help you get every single thing that you're looking for and more.
In my experience, I have observed that students tend to reach their potential in academics very easily when they are tutored by someone who is extremely dedicated to their academic career not just as a businessman but as a human being in general.
I have successfully tutored many students from different grades and from all sorts of backgrounds, so I'm confident I can help anyone find the solution to their problems and achieve
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula: futureInvestmentValue =...
-
Write a program that reads two times in military format (0900, 1730) and prints the number of hours and minutes between the two times. Here is a sample run. User input is in color. Please enter the...
-
Write a program that reads a text file, as described in Exercise P7.8, and writes a separate file for each service category. Each service category file should contain the entries for that category....
-
The figure shows a rotating wheel with radius 40 cm and a connecting rod AP with length 1.2 m. The pin P slides back and forth along the -axis as the wheel rotates counterclockwise at a rate of 360...
-
The quarter system. Many universities operate on a four-term quarter system that requires class registration four times per year as opposed to semester systems that require class registration just...
-
What is the percent overhead on a T1 carrier; that is, what percent of the 1.544 Mbps are not delivered to the end user?
-
The English scores for a sample of 14 students Find the mean, the median, and the mode of the data, if possible. If any measure cannot be found or does not represent the center of the data, explain...
-
Momence Associates is evaluating the performance of three divisions: Maple, Oaks, and Juniper. Using the following data, compute the return on investment and residual income for each division,...
-
How many processes are created by the following program, including the initial process. (.5 Marks) #include #include int main() { int i; for (i=0; i <5; i++) fork(); return 0; ANSWER:
-
Which of the capacities listed in Table 6.2 indicate that mental representation emerges earlier than Piaget concluded? TABLE 6.2 Some Cognitive Attainments of Infancy and Toddlerhood AGE COGNITIVE...
-
Write a program that opens a text file, reads it character-by-character to the end of the file, and reports the number of characters in the file.
-
Rewrite the following fragment using switch: if (ch == 'A') a_grade++; else if (ch == 'B') b_grade++; else if (ch == 'C') c_grade++; else if (ch == 'D') d_grade++; else f_grade++;
-
In the previous question, suppose all the costs are before taxes and the tax rate is 39 percent. Both types of equipment would be depreciated at a CCA rate of 25 percent (Class 9), and would have no...
-
5. The owner of Java Stop has hired an MBA student to measure the elasticity of demand for espressos. After finding out that at the current price of $4.00, the Marginal Revenue the shop gets for...
-
1. Define omni-channel. How is it different from a typical retail channel? 2. Discuss the role of logistics variables in the decision as to where to locate a plant or distribution center. 1. Discuss...
-
Consider that you have recently joined as a design engineer at Ball Bearing Manufacturing Company in Gebang, Pahang, after graduating from Universiti Malaysia Pahang. Your task is to design an...
-
Adam Smith wrote that "A landlord, a farmer, a master manufacturer, a merchant, though they did not employ a single workman, could generally live a year or two upon the stocks which they have already...
-
Factory utilities $23,400 Direct labour $93,200 Depreciation on factory equipment 22,050 Sales salaries 56,200 Depreciation on delivery trucks 4,000 Property taxes on factory building 3,210 Indirect...
-
Discuss the reasons why the operating system might require accurate information on how blocks are stored on a disk. How could the operating system improve file system performance with this knowledge?
-
The May 2014 revenue and cost information for Houston Outfitters, Inc. follow: Sales Revenue (at standard).............. $ 540,000 Cost of Goods Sold (at standard) ..........341,000 Direct Materials...
-
Write complete Verilog code for the circuit that you derived in Problem 3.19. Data From Problem 3.19 Derive a scheme for performing subtraction using BCD operands. Show a block diagram for the...
-
Show a graphical interpretation of three-digit decimal numbers, similar to Figure 3.11. The left-most digit is 0 for positive numbers and 9 for negative numbers. Verify the validity of your answer by...
-
Derive a scheme for performing subtraction using BCD operands. Show a block diagram for the subtractor circuit.
-
Fields Company has two manufacturing departments, forming and painting. The company uses the weighted method and it reports the following unit data for the Forming department. Units completed in the...
-
Discuss and describe a specific process for creating artwork that involved procedures for combining diverse materials; describe in detail the selected product you posted. Part II Discuss and cite an...
-
What mechanisms do cells use to regulate vesicle trafficking within the endomembrane system, and how do SNARE proteins contribute to vesicle fusion ?
Study smarter with the SolutionInn App