Write a program that prompts the user to enter a letter and check whether the letter is
Question:
Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant. Here is a sample run:
Transcribed Image Text:
Enter a letter: B B is a consonant JEnter Enter a letter grade: a a is a vowel -Enter Enter a letter grade: # JEnter # is an invalid input
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (10 reviews)
Sample output Run 1 Enter a letter ...View the full answer
Answered By
Susan Juma
I'm available and reachable 24/7. I have high experience in helping students with their assignments, proposals, and dissertations. Most importantly, I'm a professional accountant and I can handle all kinds of accounting and finance problems.
4.40+
15+ Reviews
45+ Question Solved
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
Programming Exercise 6.39 gives a method for testing whether three points are on the same line.Write the following method to test whether all the points in the array points are on the same...
-
Write a program that prompts the user to enter two strings and tests whether the second string is a substring of the first string. (Don?t use the indexOf method in the String class.) Analyze the time...
-
Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2012, the program should display that...
-
Claud Chapperon is a self-employed distributor of wholesale clothing who began trading on 1 July 2012. His summarised accounts for the year to 30 June 2020 are shown below. The figures in brackets...
-
Define what it means for a matching to be female optimal and for a matching to be male pessimal.
-
What do you think were the 8 to 10 most important nonfinancial resources that the founders of InstyMeds, the subject of the You Be the VC 3.1 feature, needed to have in place before they launched...
-
Discuss the various control techniques that will be used with this specific design. Develop a hypothetical research scenario that would necessitate the use of an A-B-A Design. The research will be...
-
S&L Financial buys and sells securities that it typically classifies as available-for-sale. On December 27, 2011, S&L purchasedCoca-Colacommon shares for $875,000 and sold the shares on January 3,...
-
How would you protect data security during database migrations?
-
Three engineers who worked for Mitchell Engineering, a company specializing in public housing development, went to lunch together several times a week. Over time they decided to work on solar energy...
-
Write a program that prompts the user to enter a letter grade A, B, C, D, or F and displays its corresponding numeric value 4, 3, 2, 1, or 0. Here is a sample run: Enter a letter grade: B The numeric...
-
Write a program that prompts the user to enter a hex digit and displays its corresponding binary number. Here is a sample run: Enter a hex digit: B JEnter The binary value is 1011 Enter a hex digit:...
-
Water is transported by gravity through a 10-cm-diameter 550-m-long plastic pipe with an elevation gradient of 0.01 (i.e., an elevation drop of 1 m per 100 m of pipe length). Taking = 1000 kg/m 3...
-
Seeing Red has a new project that will require fixed assets of $903,000, which will be depreciated on a 5-year MACRS schedule. The annual depreciation percentages are 20.00 percent, 32.00 percent,...
-
You know the following information about the Miller State Bank: Gross loans $300 Miscellaneous assets 50 Deposits 390 Total equity 50 Common stock par 5 Non-deposit borrowings 60 Investment...
-
Google stock currently sells for 80 dollars a share. It has an equal chance of going up or down 5% over the next year, each with probability. The risk free rate is 0%. If a call option on Google of...
-
Ford expects to earn a free cash flow of $100, starting in 1 year, forever. The discount rate on the assets of the firm is 18%. Further, Ford has issued debt of $1,000 at an interest rate and...
-
2). Bonds of Zello Corporation with a par value of $1,000 sell for $1,080, mature in 18 years, and have a 7% annual coupon rate paid annually, what is the yield to maturity? what is the current...
-
Managing Earnings, Denominator Capacity-level, and Ethics Any given cost-information system is a function of a number of design choices. For product-costing purposes, one such design choice relates...
-
Parkin Industries, a U.S. company, acquired a wholly-owned subsidiary, located in Italy, at the beginning of the current year, for 200,000. The subsidiary's functional currency is the euro. The...
-
Write a program that displays a tic-tac-toe board, as shown in Figure 31.48b. A cell may be X, O, or empty. What to display at each cell is randomly decided. The X and O are images in the files x.gif...
-
Create a CSS style sheet that defines a class for white fill and black stroke color and an id for red stroke and green color. Write a program that displays four circles and uses the style class and...
-
Suppose the file test.txt contains floating-point numbers separated by spaces. Write a program to obtain the sum, average, maximum, and minimum of the numbers.
-
A process you perform daily but would like to spend less time doing, such as driving to work. Be a creator for a flowchart and a written analysis by using any tool. Elaborate on the factors that...
-
13) Please write the journal entries for the following transactions for Feldman Company for June 2018, the company's first month of operations. You may omit explanations for the transactions. i....
-
Provided Strategic Alternatives for AMAZON. Please fill in the chart and explain the process as much as possible. + Strategic Alternatives Key Factors Opportunities 1. 2. 3. 4. 5. 6. 7. 8. Threats...
Study smarter with the SolutionInn App