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...
-
Farmers can buy crop insurance to cover their losses in the event of a small yield or low crop prices. If the total revenue from the crop drops below some target level, a payment from the insurance...
-
Refer to the chapters opening feature, Sweet Success, describing the entrepreneurial efforts of Dylan Lauren and Jeff Rubin with Dylans Candy Bar. Required List the seven principles of internal...
-
Arun Company has had poor operating results for the past two years. As the accountant for Arun Company, you have the following information available to you: Total assets and owner's equity at the...
-
me each level of measurement for which lect all the levels of measurement for wh A. Interval B. Ordinal C. Ratio
-
Ben Hallmark, the owner of Hallmark Surveying Services, has been in business for two years. The unadjusted trial balance at December 31, regarding the month just ended, follows. The following...
-
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...
-
Explain the difference between microfinance and microcredit. Discuss in detail the role of microfinance in help the poor to improve their living standard.
-
How to write an outline for a Capstone assignment. Also cite your sources.
-
How to answer this interview question what was your hardest class and why my hardest class was medical terminology?
-
How can you use accounting principles to manage your personal finances? Read through your peers posts, and when you respond to them, consider the following: You can provide suggestions that you have...
-
How does an organization strategically align its structural framework with evolving market dynamics to foster sustainable growth and adaptability ?
-
Evaluate the integral dx by making the appropriate substitution: u = (8x+7) da (8x+7)
-
1- Should post reflect on what Cervantes is saying about the trappings of knighthood. For your answer, tell us whether or not you agree with what you think Cervantes is saying and why? 2- Should look...
-
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...
-
Exercise 3-10 (Algo) Applying Overhead; Journal Entries; T-accounts [LO3-1, LO3-2] Dillon Products manufactures various machined parts to customer specifications. The company uses a job-order costing...
-
Direct Materiais Purchases Budget Smart Strike Company manufactures and sells soccer balls for teams of children in elementary and high school. Smart Strike's best-selling lines are the practice ball...
-
Let u: R2 R be a strictly increasing C utility function. + (a) Derive an expression for the slope of an indifference curve at an arbitrary consumption bundle (xo, yo) R. '++ (b) Take a derivative of...
Study smarter with the SolutionInn App