import java.util.Scanner; public class GradingSwitchProgram { public static void main(String[] args) { char letter; Scanner keyboard = new Scanner(System.in); // Get the user input System.out.print("Enter the grade: "); letter = keyboard.next().charAt(0); switch(letter) { case 'A': System.out.println("80% - 100%"); break; case 'B': System.out.println("70% - 79%"); break; case 'C': System.out.println("60% - 69%"); break; case 'D': System.out.println("50% - 59%"); break; case 'F': System.out.println("0% - 49%"); break; default: System.out.println("not defined"); } } }