Difference between revisions of "Letter Grade Conversion"
From CompSciWiki
Line 9: | Line 9: | ||
− | |SideSectionTitle=If Statements and Named Constants | + | |SideSectionTitle=If Statements and Named Constants= |
[[Image:Wiki_sign01.jpg|float|267px]] | [[Image:Wiki_sign01.jpg|float|267px]] | ||
<BR> | <BR> |
Revision as of 12:43, 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! |