Class newGradReport

java.lang.Object
  |
  +--newGradReport

public class newGradReport
extends java.lang.Object

This is the first class, visible to external programs The interactions are done through this class only


Field Summary
static int[] CPI
           
static int[] cum
           
static java.util.Date DateOfBirth
           
static int[] DOB
           
static int[] grade
           
static int[] pass
           
static int Roll
           
static int[] sem
           
static Student[] stu
           
static int[] unit
           
 
Method Summary
static int calAge(java.util.Date d)
          This function calculates age from date of birth given as parameter
static void createStudent(int Roll, int pgorug)
          This is a constructor which initializes data for student bearing the Roll=r
static void main(java.lang.String[] a)
          GIVE COMMAND LINE ARGUMENT "ALL" FOR PRINTING ALL STUDENTS DATA GIVE COMMAND LINE ARGUMENT "ONE FOR PRINTING ONE STUDENTS DATA
static void printAll(int x)
           
static int printReport(int RollNumber)
          This program prints specific persons report All functionality is in single class
static void read(int Roll, int pgorug)
          This function calculates age from date of birth given as parameter
static int toGrade(java.lang.String g)
          This function transforms grades A,B,C,D,E,F into 10
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stu

public static Student[] stu

CPI

public static int[] CPI

grade

public static int[] grade

cum

public static int[] cum

pass

public static int[] pass

Roll

public static int Roll

DOB

public static int[] DOB

DateOfBirth

public static java.util.Date DateOfBirth

sem

public static int[] sem

unit

public static int[] unit
Method Detail

createStudent

public static void createStudent(int Roll,
                                 int pgorug)
This is a constructor which initializes data for student bearing the Roll=r


calAge

public static int calAge(java.util.Date d)
This function calculates age from date of birth given as parameter


read

public static void read(int Roll,
                        int pgorug)
This function calculates age from date of birth given as parameter


toGrade

public static int toGrade(java.lang.String g)
This function transforms grades A,B,C,D,E,F into 10


printAll

public static void printAll(int x)

printReport

public static int printReport(int RollNumber)
This program prints specific persons report All functionality is in single class


main

public static void main(java.lang.String[] a)
GIVE COMMAND LINE ARGUMENT "ALL" FOR PRINTING ALL STUDENTS DATA GIVE COMMAND LINE ARGUMENT "ONE FOR PRINTING ONE STUDENTS DATA