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 parameters are likely to encourage the adoption of certain tools and technologies over others in organisations?
-
You have been employed temporarily by a rich local businessman, Mr Long Pocket, as his assistant. He has been told at the golf club that Sunbright Enterprises Plc, a locally based company, would be a...
-
The adjusted trial balance of Smith Sign Company follows: Requirements 1. Assume Smith Sign Company has a January 31 year-end. Journalize Smiths closing entries at January 31. 2. How much net income...
-
The International Standards on Auditing (SAs) are followed across different countries and territories. Explain further the meaning of these standards (ISAs). In your report, choose any 10 ISA codes...
-
Compute the initial price of a swaption that matures at time t =5 and has a strike of 0. The underlying swap is the same swap as described in the previous question with a notional of 1 million. To be...
-
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:...
-
Exhibit 12 includes 12 questions related to 12 types of decisions that companies often face. In the chapter, these 12 decisions were discussed within the context of for- profit companies; however,...
-
Identify whether the following statements are true or false. 1. One argument for IFRS is that there is less globalization in the world. 2. IFRS is accepted as GAAP in every country of the world. 3....
-
You will need isometric dot paper for this question. Part of a pattern using four rhombuses is drawn on isometric dot paper below. By drawing two more rhombuses, complete the pattern so that it has a...
-
Fred Flores operates a golf driving range. For each of the following financial items related to his business, indicate the financial statement (or statements) in which the item would be reported:...
-
Sketch plane / intersecting plane K. Then draw a line & in plane J that intersects plane Kat a single point. A X C B D E
-
Use a graphing utility to verify any five of the graphs that you drew by hand in Exercises 126. Data from exercise 1-26 1. x + 2y = 8 3. x2y> 10 2. 3x6y 12 4. 2xy > 4
-
Write a persuasive opening argument that emphasizes the legal and ethical points in Bens favor. Or, write a persuasive opening argument that emphasizes the legal and ethical points in his fathers...
-
Chris Zulliger was a chef at the Plaza Restaurant in the Snowbird Ski Resort in Utah. The restaurant is located at the base of a mountain. As a chef for the Plaza, Zulliger was instructed by his...
-
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.
-
According to the capital asset pricing model (CAPM), where does an assets expected return come from? Please explain each component.
-
Kappa SA in 2021 had pre-tax profits of 100,000, equity of 450,000 and a return on equity of 20%. How much did equity increase in 2021? Choose one: a. 100,000 b. Not at all c. None of the suggested...
-
Suppose a seven-year, $1,000 bond with a 9.04% coupon rate and semiannual coupons is trading with a yield to maturity of 6.67%. a. Is this bond currently trading at a discount, at par, or at a...
Study smarter with the SolutionInn App