public class StudentDriver { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub // Create a new Student object, providing id, full name and gender Student bill = new Student("M00123", "William", "Harry", "Jones", 'M'); // Set the student's birthdate bill.setBirthdate(6, 6, 1984); // Set the student's address bill.setAddress("1 Elm St", "Millersville", "PA", "17551"); // call the toString method of Student to display student information System.out.println(bill); // Bill completed a 4-credit class and earned a 'D' bill.finishClass(4, 1); // Display updated GPA System.out.println("Bill's GPA: " + bill.getGPA()); // Bill completed a 4-credit class and earned a 'C' bill.finishClass(4, 2); // Display updated GPA System.out.println("Bill's GPA: " + bill.getGPA()); System.out.println(bill); // Create a new Student object and set some of the attributes using getters and setters Student mary = new Student("M00124", "Mary", "Jane", "Smith", 'F'); mary.setBirthDay(3); mary.setBirthMonth(3); mary.setBirthYear(1985); mary.setAddressLine("133 Roddy Lane"); mary.setCity("Millersville"); mary.setState("PA"); mary.setZip("17551"); mary.setEarnedCredits(20); mary.setQualityPoints(64.5); // call the toString method of Student to display mary's information System.out.println(mary); } }