//File:	Grades2.java
import CSLib.*;
public class Grades2
{
	public static void main (String [] args)
	{
		InputBox in = new InputBox();
		in.setPrompt("What was the score? ");
		int score = in.readInt();
		
		OutputBox out = new OutputBox();
		
		char grade=' ';
		
		if ((score > 100) || (score < 0))
		{
			out.println ("You DUMMY!");
		}
		else
			//NOTE: 9 / 4 = 2 (the quotient)
			//	9 % 4 = 1 (the remainder)
			switch (score / 10)
			{
				case 10:
				case 9:		grade='A';
						break;		//you need these to FORCE out of switch
				case 8:		grade='B';
						break;
				case 7:		grade='C';
						break;
				case 6:		grade='D';
						break;
				default:	grade='F';
			}
			out.println ("Your score is: " + score);
			out.println ("Your grade is: " + grade);
	}
}
