To sign my guestbook, you need to signin first.
swati0962 11 years ago
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Arr_pkg;
/**
*
* @author FA13-BCS-017
*/
public class STUDENT {
int[] RNO;
int[] DS;
int[] CPP;
int[] JAVA;
String[] Name;
String[] FatherName;
String[] City;
char[] Gender;
int LB, UB, N;
STUDENT()
{
RNO = new int[10];
DS = new int[10];
CPP =new int[10];
JAVA =new int[10];
Name =new String[10];
FatherName =new String[10];
Gender =new char[10];
City =new String[10];
LB=0;
UB=9;
N=9;
N=-1;
}
void insert_end(int r,String n,String fn,char gen,String adr,int d,int c,int j)
{
if (N==UB)
System.out.println("OVERFLOW");
else
{
RNO[N+1]=r;
DS[N+1]=d;
CPP[N+1]=c;
JAVA[N+1]=j;
Name[N+1]=n;
FatherName[N+1]=fn;
Gender[N+1]=gen;
City[N+1]=adr;
N=N+1;
}
}
public static void main(String arg[])
{
STUDENT std_bcs=new STUDENT();
System.out.println("Rno\tNmae\tFather\tGender\tCity\tDS\tCP\tJAVA");
std_bcs.insert_end(1,"Ali","Raza",'M',"Lahor",45,44,55);
std_bcs.insert_end(2,"Kainat","Shah",'F',"Haripur",46,43,49);
std_bcs.insert_end(3,"Kashif","Khan",'M',"Chakwal",49,41,59);
std_bcs.insert_end(4,"Fahad","Haider",'M',"Lahor",24,78,55);
std_bcs.insert_end(5,"Khurram","Babar",'M',"Quetta",45,65,87);
std_bcs.insert_end(6,"Obaid","Khan",'M',"karachi",43,64,83);
std_bcs.insert_end(7,"Nadia","Khan",'F',"Balakot",42,55,81);
std_bcs.insert_end(8,"Umair","Saeed",'M',"Sawat",40,46,77);
std_bcs.insert_end(9,"Waqas","Shah",'M',"Chakwal",45,65,87);
std_bcs.insert_end(10,"Ahmad","Khan",'M',"Sibbi",39,32,67);
std_bcs.print_student();
}
v