Write a program that prompts the user to provide a single character from the alphabet. Print Vowel
Question:
Write a program that prompts the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If the user input is not a letter (between a and z or A and Z), or is a string of length > 1, print an error message.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 84% (13 reviews)
Answer ch inputEnter one character iflench1 ch chlower i...View the full answer
Answered By
DIPAK BHOYE
"I am a M.sc (organic chemistry) from NMU India and also a BSc graduate from The University of NMU, india.
I have many years of tutoring experience and I enjoyed teaching all grades students. I have been tutoring with other tutoring sites also and has a very good circle of more than 500 students from USA UK India and some other from South Asia tool am doing one to one tutoring also and like to teach Reactions and mechanism all subjects specially network problem wisi etc and i also like tutoring physics.chemistry Maths and Chemistry subjects and i have also tutoring many students for SAT exam So love tutoring and can taught all grades student. Many of my students' parents message me that your lessons improved our children's grades . So loving tutoring. I love eating and that too of different cuisines. I made many self-papers for this exam which include the basics of chemistry and elementary of all chemistry topics. Initially I worked as a Research Associate at The University of NMU Maharashtra and While at The University I assisted professors with their research work, preparation of course material on corporate finance and equity analyst
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz",...
-
Write a program that prompts the user to enter three integers and display the integers in non-decreasing order.
-
Write a program that prompts the user to enter two strings and reports whether the second string is a substring of the first string. Enter string sl: ABCD Enter string s2: BC substring of ABCD -...
-
If Euros sell for $1.50 per euro, what should dollars sell for in Euros per dollar?
-
Explain why sampling without replacement is preferred to sampling with replacement.
-
Life on Earth evolved based on the element carbon. Based on periodic properties, what two or three elements would you expect to be most like carbon?
-
Use Table 1 to answer the following questions. a. Suppose that it cost \($16.00\) to fill your gas tank in 1980. How much did it cost to buy the same amount of gas in 2010? b. Suppose that it cost...
-
Matuska Tools Corporations income statements follow. Required 1. Prepare a multistep income statement for 2013 and 2014 showing percentages of net sales for each component (e.g., cost of goods sold...
-
Find a cognitive training app. List the name of the app. Download and play one of the games. Explain what the purpose of the game was and how it improves cognition.?
-
At the end of the year, Randys Parts Co. had the following items in inventory: Required a. Determine the amount of ending inventory using the lower-of-cost-or-market rule applied to each individual...
-
Develop a set of test cases for the algorithm in Exercise E3.14. Data from Exercise E3.14. Draw a flowchart for the algorithm in Exercise E3.13. Data from Exercise E3.13. Draw a flowchart for the...
-
Write pseudocode for a program that prompts the user for a month and day and prints out whether it is one of the following four holidays: New Years Day (January 1) Independence Day (July 4) ...
-
The fourth-order approximation invented by Runge and Kutta can be surprisingly accurate, even with a ridiculously large step size. To see this, for Problem, use the given step size with the IVP y' =...
-
2. A 2.0-kg rock that is initially at rest loses 407 J of potential energy while falling to the ground. Calculate the kinetic energy that the rock gains while falling. What is the rock's speed just...
-
A large manufacture company is considering the purchase of a $300,000 inventory management system. The system will be depreciated straight-line to zero over its 5- year life. It will be worth $40,000...
-
Suppose that f(x) = '(-5) = f'(2) = 8x + 16 83 -. Evaluate each of the following:
-
Uber company has a target debt equity ratio of 1.50. Its WACC is 12.0 percent, and the tax rate is 40 percent. a. If Ubers's cost of equity is 16 percent, what is its pretax cost of debt? b. If...
-
An astronaut in an orbiting spacecraft feels "weightless" because she: A) is beyond the range of gravity B) is pulled outwards by centrifugal force C) has no acceleration D) has the same acceleration...
-
Cityscape Hotels has 200 rooms available in a major metropolitan city. The hotel is able to attract business customers during the weekdays, and leisure customers during the weekend. However, the...
-
What steps must a business take to implement a program of social responsibility?
-
What values are returned during the following series of stack operations, if executed upon an initially empty stack? push(5), push(3), pop(), push(2), push(8), pop(), pop(), push(9), push(1), pop(),...
-
What values are returned during the following sequence of queue operations, if executed on an initially empty queue? enqueue(5), enqueue(3), dequeue(), enqueue(2), enqueue(8), dequeue(), dequeue(),...
-
What are the types of addresses (identifiers) used in each of the following layers? a. Application layer b. Network layer c. Data-link layer
-
A luncheon speaker stated that the number of life insurers has declined sharply during the past decade because of the increase in company mergers and acquisitions, demutualization of insurers, and...
-
How do macroeconomic policies, structural reforms, and institutional frameworks influence the trajectory of economic development, fostering sustainable growth, diversification, and resilience within...
-
How do international trade agreements, foreign direct investment, and global value chains contribute to economic development trajectories, and what challenges and opportunities arise in balancing the...
Study smarter with the SolutionInn App