cs
Class University

java.lang.Object
  extended by cs.University

public class University
extends java.lang.Object

University class provides a set of methods that allow a student to register for courses. Once registered, information like attendance, exam and homework scores can be updated using member methods

Author:
cs180gta

Constructor Summary
University()
           
 
Method Summary
 void markAttendance(cs.IStudent student, cs.Course course, int noOfDays)
          Updates student registration information and marks that student attended course for noOfDays
 void printTranscript(cs.IStudent student)
          Looks at all previous information of a student and prints the transcript
 void register(cs.IStudent student, cs.Course course)
          Registers student for the course specified.
 void updateExamScore(cs.IStudent student, cs.Course course, int examScore)
          Updates student registration information, setting exam score to the value specified in examScore parameter
 void updateHwScore(cs.IStudent student, cs.Course course, int hwScore)
          Updates student registration information, setting homework score to the specified hwScore parameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

University

public University()
Method Detail

register

public void register(cs.IStudent student,
                     cs.Course course)
Registers student for the course specified. Throws runtime exception if parameters are null or invalid

Parameters:
student -
course -

markAttendance

public void markAttendance(cs.IStudent student,
                           cs.Course course,
                           int noOfDays)
Updates student registration information and marks that student attended course for noOfDays

Parameters:
student -
course -
noOfDays -

updateHwScore

public void updateHwScore(cs.IStudent student,
                          cs.Course course,
                          int hwScore)
Updates student registration information, setting homework score to the specified hwScore parameter

Parameters:
student -
course -
hwScore -

updateExamScore

public void updateExamScore(cs.IStudent student,
                            cs.Course course,
                            int examScore)
Updates student registration information, setting exam score to the value specified in examScore parameter

Parameters:
student -
course -
examScore -

printTranscript

public void printTranscript(cs.IStudent student)
Looks at all previous information of a student and prints the transcript

Parameters:
student -