Class ReportCard

java.lang.Object
  |
  +--ReportCard

public class ReportCard
extends java.lang.Object

A report card for a student.


Constructor Summary
ReportCard(Student s)
          Constructs a report card for a student that reports on all courses that the student is currently taking.
 
Method Summary
 double gpa()
          Computes the grade point average.
 String format()
          Formats the contents of this report card.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportCard

public ReportCard(Student s)
Constructs a report card for a student that reports on all courses that the student is currently taking.
Parameters:
s - the student
Method Detail

format

public String format()
Formats the contents of this report card.
Returns:
the formatted contents of this report card.

gpa

public double gpa()
Computes the grade point average.
Returns:
the grade point average.