<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.io.*; 
  
public class PassingGrade 
{ 
  public static void main(String[] argv) throws Exception 
  { 
    BufferedReader cin; 
    cin = new BufferedReader(new InputStreamReader(System.in)); 
  
    // read a grade from the keyboard (see 5.1) 
    char grade; 
    System.out.print("What is your grade? [A, B, C, D, or F]: "); 
    grade = cin.readLine().charAt(0); 
  
    // check for passing grade 
    if (grade == 'A' || grade == 'B' || grade == 'C') 
      System.out.println("You pass"); 
  } 
}
</pre></body></html>