Letter Grade Conversion

From CompSciWiki
Revision as of 00:41, 8 April 2010 by EricaP (Talk | contribs)

Jump to: navigation, search

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

Wiki sign01.jpg

Solution

The solution...

Code

Solution Code

Back to the Program-A-Day homepage