Write a program that prompts the user to enter a letter grade A, B, C, D, or
Question:
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. For other input, display invalid grade. Here is a sample run:
Enter a letter grade: B
The numeric value for grade B is 3
Enter a letter grade: T
T is an invalid grade
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (6 reviews)
import javautilScanner public class Exercise0414 public stat...View the full answer
Answered By
Simon kingori
I am a tier-one market researcher and content developer who has been in this field for the last six years. I’ve run the freelancing gamut; from market research, data mining and SEO/SMM to copywriting, Content Development, you name it, I’ve done it. I’m extremely motivated, organized and disciplined – you have to be to work from home. My experience in Freelancing is invaluable- but what makes me a cut above the rest is my passion to deliver quality results to all my clients- it’s important to note, I've never had a dissatisfied client. Backed by a Masters degree in Computer Science from MOI university, I have the required skill set and burning passion and desire to deliver the best results for my clients. This is the reason why I am a cut above the rest. Having taken a Bsc. in computer science and statistics, I deal with all round fields in the IT category. It is a field i enjoy working in as it is dynamic and new things present themselves every day for research and exploration.
5.00+
1+ Reviews
10+ Question Solved
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
Write a program that prompts the user to enter an integer for today?s day of the week (Sunday is 0, Monday is 1, ?, and Saturday is 6). Also prompt the user to enter the number of days after today...
-
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...
-
Write a program that prompts the user to enter an integer and determines whether it is divisible by 5 and 6, whether it is divisible by 5 or 6, and whether it is divisible by 5 or 6, but not both....
-
Your friend has just started a retail clothing store in kamloops. She will be purchasing inventory to make her own clothing (One Style) and she will also be buying ready to sell iteams. She has come...
-
For the systems shown in Figure, assume that the resulting motion is small enough to be only horizontal and determine the expression for the equivalent damping coefficient ce that relates the applied...
-
East Coast Digital (ECD) produces high-quality audio and video equipment. One of the companys most popular products is a high-definition personal video recorder (PVR) for use with digital television...
-
Calculate the energy density versus temperature very early in the universe when the temperatures were above \(k T=300 \mathrm{MeV}\). At those temperatures, quarks and gluons were released from...
-
Scully Corporations comparative balance sheets are presented below. Additional information: 1. Net income was $22,630. Dividends declared and paid were $19,500. 2. All other changes in noncurrent...
-
Give any statement as an example to explain data manipulation language nature of SQL.?
-
The table shows the number of TVs sold by a major retailer in California for three years. (a) Use Excel to prepare a 2-D side-byside column chart with screen size on the horizontal axis. (b) Change...
-
Write a program that prompts the user to enter 10 integers and displays all combinations of picking two numbers from the 10 numbers.
-
A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for...
-
Problems 5059 are based on material learned earlier in the course. The purpose of these problems is to keep the material fresh in your mind so that you are better prepared for the final exam. Given...
-
Assume transaction data from three comparable properties are used in valuing the subject property. The amount of the adjustment for each item has been estimated by the appraiser and is shown in the...
-
Consider risk measures on the following 3 large cap stocks: Stock Beta (B) Berkshire Hathaway (BRK) 0.69 Apple (APPL) 1.15 Microsoft (MSFT) 1.28 Standard Deviation (6) 23.50% 27.00% 25.50% The...
-
You are a financial advisor and a portfolio manager. You are going to help your client, Anna, to find an optimal portfolio for her retirement (a complete portfolio). After due diligence, you have...
-
Answer the following questions. a) State the normal form of the above table. Explain your answer with reasons. (3 marks) b) Convert the table into a relational schema. Identify the primary key(s) and...
-
Calculate the reaction forces in the supports of the system shown in the figure. F-14 kN, F-18 kN, M-22 kNm, the intensities of the distributed forces are q-8 kN/m, q2-4 kN/m; a-3 m, b-4 m, c-0.5 m,...
-
A beam of light in air is incident on a stack of four flat transparent materials with indices of refraction 1.20, 1.40, 1.32, and 1.28. If the angle of incidence for the beam on the first of the four...
-
Wholesalers Ltd. deals in the sale of foodstuffs to retailers. Owing to economic depression, the firm intends to relax its credit policy to boost productivity and sales. The firms current credit...
-
Banks lend money to each other. In tough economic times, if a bank goes bankrupt, it may not be able to pay back the loan. A bank?s total assets are its current balance plus its loans to other banks....
-
Write a method that shuffles the rows in a two-dimensional int array using the following header: public static void shuffle(int[][] m) Write a test program that shuffles the following matrix: int[][]...
-
Write the following method that tests whether a two-dimensional array has four consecutive numbers of the same value, either horizontally, vertically, or diagonally.public static...
-
If the marginal cost of the 1,000th unit produced by a monopolist is $16 and its marginal revenue is $20, what should the monopolist do?
-
How is globalization changing overall power between states and citizens?Articulate your stance. An argumentative essay is a type of essay that presents arguments on both sides of an issue.It may be...
-
Before there were no taxes on towels. The price of a towel was $8 and the quantity purchased was 300 towels. Then the government imposed a tax of $2 per towel. As a result, the price of towels for...
Study smarter with the SolutionInn App