Java Reference
In-Depth Information
public void setCoursesEnrolled(Course[] courses,
char [] cGrades)
//Method to set courses enrolled
//Postcondition: array courses is copied into the array
//
coursesEnrolled, array cGrades is copied into
//
the array courseGrades, and these arrays are
//
sorted.
public String toString()
//Method to return a student's grade report as a string
//Postcondition: If the instance variable isTuitionPaid
//
is true, the grades are returned; otherwise
//
three stars are returned.
public int getStudentId()
//Method to get a student ID
//Postcondition: The value of sId is returned.
public boolean getIsTuitionPaid()
//Method to return a value specifying if the tuition is paid
//Postcondition: The value of isTuitionPaid is returned.
public int getNumberOfCourses()
//Method to get the number of courses taken
//Postcondition: The value of numberOfCourses is returned.
public char getGrade( int i)
//Method to return a course grade
//Postcondition: The value of courseGrades[i] is returned.
public Course getCourse( int i)
//Method to get a copy of a course taken
//Postcondition: A copy of coursesEnrolled[i]
//
1
0
is returned.
public int getHoursEnrolled()
//Method to return the credit hours in which a
//student is enrolled
//Postcondition: Total credits are calculated
//
and returned.
public double getGpa()
//Method to return the grade point average
//Postcondition: GPA is calculated and returned.
public double billingAmount( double tuitionRate)
//Method to return the tuition fees
//Postcondition: The billing amount is calculated
//
and returned.
Search WWH ::




Custom Search