Difference between revisions of "Letter Grade Conversion"

From CompSciWiki
Jump to: navigation, search
Line 11: Line 11:
 
|SideSectionTitle=<center>If Statements and Named Constants
 
|SideSectionTitle=<center>If Statements and Named Constants
  
|SideSection=<center>[[Image:Wiki_sign01.jpg|float|267px]]
+
|SideSection=[[Image:Wiki_sign01.jpg|float|267px]]
 
<BR>
 
<BR>
 
|Solution=The solution...
 
|Solution=The solution...
 
}}
 
}}

Revision as of 12:47, 6 April 2010

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

float

Solution

The solution...

Code

SolutionCode goes here. Please DO NOT put your code in <pre> tags!

Back to the Program-A-Day homepage