Page 54 - CTS - CSA TP - Volume 2
P. 54

COMPUTER SOFTWARE APPLICATION - CITS



                   } else if (score >= 70) {

                       System.out.println(“Grade: C”);
                   } else if (score >= 60) {
                       System.out.println(“Grade: D”);
                   } else {
                       System.out.println(“Grade: F”);

                   }
                   // Close the scanner object to release system resources
                   scanner.close();
               }
           }

           Output:































































                                                           39
 CITS : IT & ITES - Computer Software Application - Exercise 85  CITS : IT & ITES - Computer Software Application - Exercise 85
   49   50   51   52   53   54   55   56   57   58   59