Class Student

java.lang.Object
  |
  +--Student

public class Student
extends java.lang.Object


Method Summary
 int getage()
          Return age of student Uses dob object for calculating age
 Dob getDOB()
          Returns date of birth as Date object
 int getgrade(int i)
          Returns grade for a particular course
 java.lang.String getname()
          Returns name of student
 int getpgorug()
          returns pg if a student is pg student else ug
 int getroll()
          Returns roll number of a student
 int getsem(int i)
          Returns semester
 java.lang.String getthesis()
          Returns thesis
 java.lang.String getthesisguide()
          returns thesis guide
 int getunits(int i)
          Returns number of units for paticular course taken
 void printCPI()
          This function will print the CPI based on average of persemester grades It prints CPI onto console
 void printCPI(java.io.PrintStream p)
          This function will print the CPI based on average of persemester grades It prints CPI in a file specified
 void printDetails()
          Prints student details onto console The functionality splitted into different functions
 void printDetails(java.io.PrintStream p)
          Prints student details in a file The functionality splitted into different functions
 void printReport()
          Print report of a student Functionality is distributed to different functions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getname

public java.lang.String getname()
Returns name of student


getroll

public int getroll()
Returns roll number of a student


getage

public int getage()
Return age of student Uses dob object for calculating age


getgrade

public int getgrade(int i)
Returns grade for a particular course


getsem

public int getsem(int i)
Returns semester


getunits

public int getunits(int i)
Returns number of units for paticular course taken


getDOB

public Dob getDOB()
Returns date of birth as Date object


getthesis

public java.lang.String getthesis()
Returns thesis


getthesisguide

public java.lang.String getthesisguide()
returns thesis guide


getpgorug

public int getpgorug()
returns pg if a student is pg student else ug


printDetails

public void printDetails(java.io.PrintStream p)
Prints student details in a file The functionality splitted into different functions


printDetails

public void printDetails()
Prints student details onto console The functionality splitted into different functions


printCPI

public void printCPI(java.io.PrintStream p)
This function will print the CPI based on average of persemester grades It prints CPI in a file specified


printCPI

public void printCPI()
This function will print the CPI based on average of persemester grades It prints CPI onto console


printReport

public void printReport()
Print report of a student Functionality is distributed to different functions