Difference between revisions of "Letter Grade Conversion"
From CompSciWiki
Line 13: | Line 13: | ||
<BR> | <BR> | ||
|Solution=The solution... | |Solution=The solution... | ||
− | |SideSection | + | |SideSection |
}} | }} |
Revision as of 12:44, 6 April 2010
Back to the Program-A-Day homepage
ProblemCreate 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 | |
---|---|---|
SolutionThe solution... | ||
CodeSolutionCode goes here. Please DO NOT put your code in <pre> tags! |