// GradeBook.java // TYPE YOUR NAME AND THE DATE HERE // THEN MODIFY CLASS AS PER EXERCISE 3.11, P. 104 (AND NOTED BELOW) public class GradeBook { private String courseName; // a) ADD INSTANCE VARIABLE FOR INSTRUCTOR NAME HERE // c) MODIFY THE CONSTRUCTOR TO HANDLE TWO NAMES: COURSE AND INSTRUCTOR public GradeBook( String name ) { courseName = name; } // method to set the course name public void setCourseName( String name ) { courseName = name; } // method to retrieve the course name public String getCourseName() { return courseName; } // b.1) PROVIDE SET METHOD FOR INSTRUCTOR NAME // b.2) PROVIDE GET METHOD FOR INSTRUCTOR NAME // d) MODIFY THE MESSAGE DISPLAY METHOD AS DESCRIBED IN THE EXERCISE public void displayMessage() { System.out.printf( "Welcome to the grade book for\n%s!\n", getCourseName() ); } } /* Note: original file is Fig. 3.10 of Deitel text. Just comment changes are made to the copy posted for this assignment. */