Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 58 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. package bugfixweek5;
  2.  
  3. public class BugfixWeek5 {
  4.     public static void main(String[] args) {
  5.         System.out.print("The grade is ");
  6.         printGrade(78.5);
  7.        
  8.         System.out.print("The grade is ");
  9.         printGrade(59.5);
  10.         }
  11.    
  12.     public static void print.Grade(double score) {
  13.         if (score >= 90) {
  14.             System.out.println("A");
  15.         }
  16.         esle if (score >= 80) {
  17.             System.out.println("B");
  18.         }
  19.         else if (score >= 70) {
  20.             System.out.println("C");
  21.         }
  22.         else if (score >= 60) {
  23.             System.out.println("D");
  24.         }
  25.         else {
  26.             System.out.println("F");
  27.         }
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top