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.
-
Suppose that a fully charged leadacid battery contains 1.50 L of 5.00 M H 2 SO 4 . What will be the concentration of H 2 SO 4 in the battery after 2.50 A of current is drawn from the battery for 6.0...
-
Refer to the information in Exercise 17-4. Required 1. Compute a departmental overhead rate for the molding department based on machine hours and a department overhead rate for the trimming...
-
Sealing Company manufactures three types of DVD storage units. Each of the three types requires the use of a special machine that has a total operating capacity of 15,000 hours per year. Information...
-
Three children must make fair division of a painting and sculpture left them by their mother. Using the Knaster Inheritance Procedure, the value each child places on the objects is shown below....
-
Develop costing and sales information for 1,000 cookies. Estimate and explain the cost per cookie based on job order costing (the manufacturing overhead is 30% of direct labor costs). Prepare a job...
-
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:...
-
What have researchers found in surveying opinions on the usefulness of budgeting.
-
Assume that annual interest rates are 6% in the United States and 9% in Switzerland. An FI can borrow (by issuing CDs) or lend (by purchasing CDs) at these rates. The spot rate is Sf1.35/$ a. If the...
-
On January 1, 2021, Bard Ltd. has a Class 8 (20% rate) UCC balance of $32,400. The Class 8 property are used in the company's business. The only transaction involving Class 8 property during 2021 was...
-
Amanda and George are married filing jointly. For 2022, they have the following: 46,000 Salary Tips 11,000 Cash gift from George's mom 13,000 8,000 Alimony from Amanda's x-husband* Income from...
-
Joe and Jill Bean, married taxpayers, expect to be subject to the ANT again this year. Near the end of the year, their ANT liability exceeds their regular tax liability by $30,000. Currently, Joe and...
-
Q4. 15%, Extractions from Statistics Dept History table Chair's Mag Department History Contact Us The department website is welcome to seek our history page over 40 years. Task to do 1. download this...
-
This exercise should be worked only in connection with exercise E1-21. Refer to the data of Torrance Associates Inc. in E1-21. Data from E1-21, Property and equipment, net...................... $ 4...
-
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.
-
If you apply the substitution to evaluate the integral (2x + 1) 10 dx by choosing u = (2x+1), then the original integral will be converted to
-
ent men function (CDF): A continuous random variable, X, can be defined using the following cumulative distribution ssess sessi Answer the frames (a) (b) (c) (d) SSx(x)=kx(x+1), sment ment ent What...
-
1.0 0.5 7. Eample results from an experiment for 3 subjects. Subject Hit rate 1 .60 234 2 .90 3 .85 4 .25 False alarm rate .4 .80 .05 .1 a. Construct ROC curve for each subject (make sure you label...
Study smarter with the SolutionInn App