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...
-
The motorcycle is traveling at v 0 when it is at A. If the speed is then increased at dv/dt = at, determine its speed and acceleration at the instant t = t 1 . Given: k = 0.5 m at = 0.1 Vo = 1 t1 = 5...
-
In a laboratory test of a new automobile engine design carried out at the Colorado School of Mines, the emission rate (in milligrams per second) of oxides of nitrogen was measured for 32 engines at...
-
For each of the following transactions and events, indicate the effect it will have on each of the three categories appearing in the Statement of Operations for a not-for-profit health care...
-
Frigg insurance inc has a bond outstanding with 9 years to maturity, a 6 . 5 % coupon quarterly coupon payments and $ 1 0 0 0 par value. the bond has a yield to maturity of 8 . 2 5 % and can be...
-
The Statement of Net Position of South State University, a government-owned university, as of the end of its fiscal year June 30, 2019, follows. The following information pertains to the year ended...
-
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...
-
A horizontal pipe 8.0 cm in diameter is located in a room where atmospheric air is at 25oC. The surface temperature of the pipe is 140oC. Calculate the free-convection heat loss per meter of pipe.
-
An artifact cannot be a manifestation of a (a) packageable element (b) class (c) component (d) device
-
Which relationships exist between packages?
-
___________ are used to represent the relationships between the hardware components used in the physical infrastructure of an information system. (a) Package diagrams (b) Deployment diagrams (c)...
-
The worlds strongest typhoon in November 2020, named Goni, hit the south of Philippines main island. The typhoon brought violent winds and heavy rainfall, hit coastal towns, and buried more than 300...
-
What are the different types of ports?
-
If you had to select one method of valuation for real estate, which would it be? Why?
-
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...
-
Jeremy Pruitt Ltd is considering the replacement of a delivery truck. The current truck could last for three more years. Operating costs are 5000 per year. We are currently depreciating it at 4000...
-
As a long-term investment at the beginning of the 2024 fiscal year, Florists International purchased 30% of Nursery Supplies Incorporated's 8 million shares of capital stock for $30 million. The fair...
-
PJ Ltd Co. has been contracted to supply two products S & T worth 500 pieces, the joint cost function for the two varieties is given as: C = 100S2 +150T2. The quantity of S and T are not specified...
Study smarter with the SolutionInn App