Source of GradeBookTest.java


  1: // Fig. 7.19: GradeBookTest.java
  2: // Creates GradeBook object using a two-dimensional array of grades.
  3: 
  4: public class GradeBookTest
  5: {
  6:    // main method begins program execution
  7:    public static void main( String args[] )
  8:    {
  9:       // two-dimensional array of student grades
 10:       int gradesArray[][] = { { 87, 96, 70 },
 11:                               { 68, 87, 90 },
 12:                               { 94, 100, 90 },
 13:                               { 100, 81, 82 },
 14:                               { 83, 65, 85 },
 15:                               { 78, 87, 65 },
 16:                               { 85, 75, 83 }, 
 17:                               { 91, 94, 100 },
 18:                               { 76, 72, 84 },
 19:                               { 87, 93, 73 } };
 20:       
 21:       GradeBook myGradeBook = new GradeBook( 
 22:          "CS101 Introduction to Java Programming", gradesArray );
 23:       myGradeBook.displayMessage();
 24:       myGradeBook.processGrades();
 25:    } // end main
 26: } // end class GradeBookTest
 27: 
 28: 
 29: /**************************************************************************
 30:  * (C) Copyright 1992-2005 by Deitel & Associates, Inc. and               *
 31:  * Pearson Education, Inc. All Rights Reserved.                           *
 32:  *                                                                        *
 33:  * DISCLAIMER: The authors and publisher of this book have used their     *
 34:  * best efforts in preparing the book. These efforts include the          *
 35:  * development, research, and testing of the theories and programs        *
 36:  * to determine their effectiveness. The authors and publisher make       *
 37:  * no warranty of any kind, expressed or implied, with regard to these    *
 38:  * programs or to the documentation contained in these books. The authors *
 39:  * and publisher shall not be liable in any event for incidental or       *
 40:  * consequential damages in connection with, or arising out of, the       *
 41:  * furnishing, performance, or use of these programs.                     *
 42:  *************************************************************************/