Back to the Program-A-Day homepage
Problem
Create a program that converts a numerical grade to its corresponding letter grade. Your first task is to assign the numerical range for each corresponding letter. The letter grades that need assigning are:
Above Average: A+, A, B+
Average: B, C+, C
Below Average: D, F
Your second task is to provide the user which category the grade falls on. For example, if the user typed in "78" as the input and is considered as a B+, you must also output its category as "Above Average". Input must be handled using JOptionPane.showInputDialog(), and output using System.out.println().
|
|
If Statements and Named Constants
|
Solution
The solution...
|
Code
SolutionCode goes here. Please DO NOT put your code in <pre> tags!
|
Back to the Program-A-Day homepage