need help understanding how to make the following program (see specs below) please use basic beginner level
Fantastic news! We've Found the answer you've been seeking!
Question:
need help understanding how to make the following program (see specs below) please use basic beginner level code so I can understand
Transcribed Image Text:
Progizo specs. Grades Write a class called Grades. Grades must have a main method (see example of what the main method does below). Grades are numbers between 0 and 10 (both zero and 10 included). They can have decimals. For example: 0, 10, 5.67, 8.2 are all valid grades. Implement a program such that, it asks the user for a grade, and then it prints the corresponding letter. If the user enters a grade lower than zero or higher than 10, print an error message (as in example below). Use the following data for your program: score higher than 100: report ERROR A 93-100 A- 90-92.9 B+ 87-89.9 B 83-86.9 B- 80-82.9 C+ 77-79.9 C 73-76.9 C- 70-72.9 F 0-69.9 score lower than 0: report ERROR Use if, do not use case. In general DO NOT USE ANYTHING WE HAVE NOT COVERERED Examples: here are some examples. Every time you see "java Grades" below it means the user is running the program again. Every time the program runs it reads ONE score and prints ONE letter grade. The percent character (%) is the prompt of my shell, yours may be different. % java Grades enter a number grade: 100.1 ERROR % % java Grades enter a number grade: 100 A % % java Grades enter a number grade: 94.8 A % % java Grades enter a number grade: 93 A % % java Grades enter a number grade: 92.9 A- % % java Grades enter a number grade: 90.5 A- % % java Grades enter a number grade: 84.7 B % % java Grades enter a number grade: 76.9 с % java Grades enter a number grade: -1 ERROR % Progizo specs. Grades Write a class called Grades. Grades must have a main method (see example of what the main method does below). Grades are numbers between 0 and 10 (both zero and 10 included). They can have decimals. For example: 0, 10, 5.67, 8.2 are all valid grades. Implement a program such that, it asks the user for a grade, and then it prints the corresponding letter. If the user enters a grade lower than zero or higher than 10, print an error message (as in example below). Use the following data for your program: score higher than 100: report ERROR A 93-100 A- 90-92.9 B+ 87-89.9 B 83-86.9 B- 80-82.9 C+ 77-79.9 C 73-76.9 C- 70-72.9 F 0-69.9 score lower than 0: report ERROR Use if, do not use case. In general DO NOT USE ANYTHING WE HAVE NOT COVERERED Examples: here are some examples. Every time you see "java Grades" below it means the user is running the program again. Every time the program runs it reads ONE score and prints ONE letter grade. The percent character (%) is the prompt of my shell, yours may be different. % java Grades enter a number grade: 100.1 ERROR % % java Grades enter a number grade: 100 A % % java Grades enter a number grade: 94.8 A % % java Grades enter a number grade: 93 A % % java Grades enter a number grade: 92.9 A- % % java Grades enter a number grade: 90.5 A- % % java Grades enter a number grade: 84.7 B % % java Grades enter a number grade: 76.9 с % java Grades enter a number grade: -1 ERROR % Progizo specs. Grades Write a class called Grades. Grades must have a main method (see example of what the main method does below). Grades are numbers between 0 and 10 (both zero and 10 included). They can have decimals. For example: 0, 10, 5.67, 8.2 are all valid grades. Implement a program such that, it asks the user for a grade, and then it prints the corresponding letter. If the user enters a grade lower than zero or higher than 10, print an error message (as in example below). Use the following data for your program: score higher than 100: report ERROR A 93-100 A- 90-92.9 B+ 87-89.9 B 83-86.9 B- 80-82.9 C+ 77-79.9 C 73-76.9 C- 70-72.9 F 0-69.9 score lower than 0: report ERROR Use if, do not use case. In general DO NOT USE ANYTHING WE HAVE NOT COVERERED Examples: here are some examples. Every time you see "java Grades" below it means the user is running the program again. Every time the program runs it reads ONE score and prints ONE letter grade. The percent character (%) is the prompt of my shell, yours may be different. % java Grades enter a number grade: 100.1 ERROR % % java Grades enter a number grade: 100 A % % java Grades enter a number grade: 94.8 A % % java Grades enter a number grade: 93 A % % java Grades enter a number grade: 92.9 A- % % java Grades enter a number grade: 90.5 A- % % java Grades enter a number grade: 84.7 B % % java Grades enter a number grade: 76.9 с % java Grades enter a number grade: -1 ERROR % Progizo specs. Grades Write a class called Grades. Grades must have a main method (see example of what the main method does below). Grades are numbers between 0 and 10 (both zero and 10 included). They can have decimals. For example: 0, 10, 5.67, 8.2 are all valid grades. Implement a program such that, it asks the user for a grade, and then it prints the corresponding letter. If the user enters a grade lower than zero or higher than 10, print an error message (as in example below). Use the following data for your program: score higher than 100: report ERROR A 93-100 A- 90-92.9 B+ 87-89.9 B 83-86.9 B- 80-82.9 C+ 77-79.9 C 73-76.9 C- 70-72.9 F 0-69.9 score lower than 0: report ERROR Use if, do not use case. In general DO NOT USE ANYTHING WE HAVE NOT COVERERED Examples: here are some examples. Every time you see "java Grades" below it means the user is running the program again. Every time the program runs it reads ONE score and prints ONE letter grade. The percent character (%) is the prompt of my shell, yours may be different. % java Grades enter a number grade: 100.1 ERROR % % java Grades enter a number grade: 100 A % % java Grades enter a number grade: 94.8 A % % java Grades enter a number grade: 93 A % % java Grades enter a number grade: 92.9 A- % % java Grades enter a number grade: 90.5 A- % % java Grades enter a number grade: 84.7 B % % java Grades enter a number grade: 76.9 с % java Grades enter a number grade: -1 ERROR %
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner This imports the Scanner class which allows us to get user input public class Grades This defines the class name which should m... View the full answer
Related Book For
Fundamentals of Financial Accounting
ISBN: 978-0078025914
5th edition
Authors: Fred Phillips, Robert Libby, Patricia Libby
Posted Date:
Students also viewed these programming questions
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Write a program that takes a start string and a stop string as commandline arguments and prints all substrings of a given string that start with the first, end with the second, and otherwise contain...
-
During the current year, the Harlow Corporation, which specializes in commercial construction had the following property transactions. Determine the realized and recognized gain or loss on each of...
-
Pet Joy Wholesale Inc., a pet wholesale supplier, was organized on May 1, 2010. Projected sales for each of the first three months of operations are as follows: May $360,000 June 450,000 July 600,000...
-
Refer to Exercise 1 of Usha Corporation Ltd. The company had intended to keep the shares as current investments. However, looking at the long-term prospects of Bhonsle, it now wants to reclassify...
-
Alana Olsen borrowed $5,000 for 90 days from First Bank. The bank discounted the note at 7 percent. a. What proceeds did Olsen receive? b. What is the effective rate to the nearest basis point?
-
Study Problem 9-8 (algo) Table A below shows abbreviated balance sheets for the central bank in the country of Beckland and B shows tables for its whole" commercial banking system. The target reserve...
-
Brief overview of the company of cibc bank such as size , industry , services and where it operates? how this company differentiate itself from competitors? -vision and mission statement about cibc...
-
Determine Vb for the circuit below if the source frequency is 100 Hz. 90 Vp 47 k b 75 nF
-
Prior to working for ABC Co., DJ worked for one of ABC Co.'s service providers for 3 years and spent all three of those years providing services to ABC Co. DJ joined ABC Co. as an employee 5 years...
-
17. The monthly payments collected by an insurance company from its policyholders are known as (A) deposits (B) premiums (C) instalments (D) endowments
-
Current Attempt in Progress On April 22, 2023, Cullumber Enterprises purchased equipment for $132,000. The company expects to use the equipment for 12,000 working hours during its four-year life and...
-
Antonio had unexpected expenses this month and didn't have enough in his saving account to pay the rent of $900. He went to Ace Cash Express to borrow the money until his next paycheck 14 days from...
-
Propane (g) and oxygen (g) are introduced into a container at 300C to produce carbon dioxide (g) and water (l) at 60C. to ensure complete decomposition of the propane, a 35% excess air is used in the...
-
Integration is a vital concept when applied in one?s life. Integrating your life means making ideal choices. Perfect choices on the other go in line with quality decisions. Quality decisions lead to...
-
Zoom Car Corporation (ZCC) plans to purchase approximately 100 vehicles on December 31, 2015, for $ 2 million, plus 11 percent total sales tax. ZCC expects to use the vehicles for 5 years and then...
-
Mojo Industries tracks the number of units purchased and sold throughout each accounting period but applies its inventory costing method at the end of each period, as if it uses a periodic inventory...
-
Scrappers Supplies tracks the number of units purchased and sold throughout each accounting period but applies its inventory costing method at the end of each period, as if it uses a periodic...
-
Graph the levels of real GDP for the United States, Canada, and Germany (data can be found at www.oecd.org under Statistics and then under National Accounts). Are U.S. and Canadian business cycles...
-
It has been argued that the stock market predicts recessions. Using quarterly data since 1961, plot the real value of the stock market index (the Wilshire 5000 index in the last month of the quarter...
-
How does each of the following variables behave over the business cycle? Develop graphs to show your results and give economic explanations. a. Real imports b. Federal government receipts c. Housing...
Study smarter with the SolutionInn App