// A program from Chapter 7 of Sams Teach Yourself Java in 24 Hours // by Rogers Cadenhead, http://www.java24hours.com/ package com.java24hours; class NoteGrade1 { public static void main(String[] arguments) { int grade = 75; if (grade > 89) { System.out.println("You got an A. Great job!"); } else if (grade > 79) { System.out.println("You got a B. Good work!"); } else if (grade > 69) { System.out.println("You got a C. You'll never get into a good college!"); } else { System.out.println("You got an F. You'll do well in Congress!"); } } }