JAVA PROGRAM FOR THE PROCEDURE OF SCHOOL ADMISSION APPLICATION
import
java.io.*;
class student
{
//opening
class student
String name1,name2,fname,mname,lgname,adr,foccu,moccu,dist,blood,xtra,sex,relat,religion,pstd,plc,dis;
long
lph,mph,eph,yr,yy,pin;
int
adm,cls,age,date,mon,fee,tfee,dd,mm,cst,std,n,an,bus,stop,agr,crt;
//variable
declaration
void
input()throws IOException
{
//opening
function input to enter details required
BufferedReader
buf=new BufferedReader(new InputStreamReader(System.in));
System.out.println("`````````````````````````````````````````````````````````````");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); System.out.println("SEVENTH-DAY ADVENTIST HIGHER SECONDARY
ENGLISH MEDIUM SCHOOL");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("``````````````````````````````````````````````````````````````");
System.out.println("\t");
System.out.println("\t");
System.out.println("SCHOOL
PROSPECTUS");
//displaying
school details
System.out.println("*********************************************");
System.out.println("***** GIVE WINGS TO YOUR CHILD'S
DREAMS*****");
System.out.println("*********************************************");
System.out.println("\t");
System.out.println(":::::::::::::::::::::::::::::::::::::::::::::::::");
System.out.println(":::SPIRITUAL PHYSICAL MENTAL:::::");
System.out.println("::::EXCELLENT COACHING::::");
System.out.println(":::::STUDENT FRIENDLY TEACHERS::::");
System.out.println("::::SMART CLASSES:::");
System.out.println("::::EXTRA-ORDINARY PRACTICAL LABS::::");
System.out.println(":::SPACIOUS PLAYGROUNDS:::");
System.out.println("::::EFFICIENT LIBRARY:::");
System.out.println(":::::::::::::::::::::::::::::::::::::::::::::::::::");
System.out.println("\t");
System.out.println("_____________________________________________________________");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("WELCOME TO SEVENTH-DAY ADVENTIST HIGHER
SECONDARY ENGLISH MEDIUM SCHOOL");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("_________________________________________________________________________");
System.out.println("\t");
System.out.println("STUDENTS ADMISSION FORM");
//prompting
to enter the class to which admission is required
System.out.println("ENTER THE STANDARD TO WHICH ADMISSION IS
REQUIRED");
System.out.println("IF STANDARD IS LKG/UKG PRESS
0....OTHERWISE PRESS 1");
cst=Integer.parseInt(buf.readLine());
if(cst==0)
{
System.out.println("ENTER STANDARD LKG/UKG");
pstd=buf.readLine();
if(pstd.equals("LKG"))
{
tfee=250;
System.out.println("TUTION FEE PER MONTH : "+tfee);
}
else
if(pstd.equals("UKG"))
{
tfee=250;
System.out.println("TUTION FEE PER MONTH : "+tfee);
}
}
else
{
System.out.println("ENTER STANDARD");
std=Integer.parseInt(buf.readLine());
switch(std)
{
//displaying
fee per month
case 1:
tfee=300;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 2:
tfee=325;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 3:
tfee=350;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 4:
tfee=375;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 5:
tfee=400;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 6:
tfee=425;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 7:
tfee=450;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 8:
tfee=475;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 9:
tfee=500;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 10:
tfee=525;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 11:
tfee=550;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
case 12:
tfee=575;
System.out.println("TUTION FEE PER MONTH : "+tfee);
break;
}
System.out.println("IF YOU AGREE TO TAKE ADMISSION ENTER 1
OTHERWISE ENTER 0");
agr=Integer.parseInt(buf.readLine());
if(agr==1)
{
//prompting
to enter details of student
System.out.println("ENTER STUDENT'S DETAILS IN BLOCK LETTERS");
System.out.println("ENTER STUDENT'S FIRST NAME");
name1=buf.readLine();
System.out.println("ENTER STUDENT'S LAST NAME");
name2=buf.readLine();
System.out.println("ENTER FATHER'S NAME");
fname=buf.readLine();
System.out.println("ENTER MOTHER'S NAME");
mname=buf.readLine();
System.out.println("ENTER LOCAL GUARDIAN'S NAME");
lgname=buf.readLine();
System.out.println("ENTER RELATION OF LOCAL GUARDIAN TO
STUDENT");
relat=buf.readLine();
System.out.println("ENTER ADDRESS");
System.out.println("HOUSENAME");
adr=buf.readLine();
System.out.println("PLACE");
plc=buf.readLine();
System.out.println("DISTRICT");
dis=buf.readLine();
System.out.println("PIN CODE");
pin=Long.parseLong(buf.readLine());
System.out.println("ENTER STUDENT'S AGE");
age=Integer.parseInt(buf.readLine());
System.out.println("ENTER DATE OF BIRTH");
date=Integer.parseInt(buf.readLine());
mon=Integer.parseInt(buf.readLine());
yr=Long.parseLong(buf.readLine());
System.out.println("ENTER GENDER:FEMALE/MALE");
sex=buf.readLine();
System.out.println("ENTER STUDENT'S RELIGION");
religion=buf.readLine();
System.out.println("ENTER STUDENT'S BLOOD GROUP");
blood=buf.readLine();
System.out.println("ENTER STUDENT'S FATHER'S OCCUPATION");
foccu=buf.readLine();
System.out.println("ENTER STUDENT'S MOTHER'S OCCUPTION");
moccu=buf.readLine();
System.out.println("ENTER STUDENT'S RESIDENCE PHONENUMBER");
lph=Long.parseLong(buf.readLine());
System.out.println("ENTER STUDENT'S MOBILE PHONENUMBER");
mph=Long.parseLong(buf.readLine());
System.out.println("ENTER STUDENT'S PHONENUMBER IN CASE OF
EMERGENCY");
eph=Long.parseLong(buf.readLine());
System.out.println("ENTER TODAY'S DATE");
dd=Integer.parseInt(buf.readLine());
mm=Integer.parseInt(buf.readLine());
yy=Long.parseLong(buf.readLine());
//displaying
extra attractions of school
System.out.println("\t");
System.out.println("EXTRA ATTRACTIONS PROVIDED BY THE SCHOOL
ENCOURAGE STUDENT'S TALENTS"+"\t");
System.out.println("**************************");
System.out.println("1:CLASSICAL DANCE----250");
System.out.println("2:WESTERN DANCE----250");
System.out.println("3:CLASSICAL MUSIC----200");
System.out.println("4:WESTERN MUSIC----200");
System.out.println("5:GUITAR----250");
System.out.println("6:VIOLIN----250");
System.out.println("7:PAINTING----200");
System.out.println("************************");
System.out.println("\t");
System.out.println("ENTER NUMBER OF ACTIVITIES YOU WANT TO
PROVIDE FOR YOUR CHILD");
n=Integer.parseInt(buf.readLine());
fee=0;
if(n==0)
fee=tfee;
else
if(n>0)
{
fee=tfee;
for(int
i=1;i<=n;i++)
{
System.out.println("ENTER CORRESPONDING INDEX NUMBER OF
SELECTED ACTIVITY");
an=Integer.parseInt(buf.readLine());
if(an==1)
{
System.out.println("1:CLASSICAL DANCE");
fee=fee+250;
}
else
if(an==2)
{
System.out.println("2:WESTERN DANCE");
fee=fee+250;
}
else
if(an==3)
{
System.out.println("3:CLASSICAL MUSIC");
fee=fee+200;
}
else
if(an==4)
{
System.out.println("4:WESTERN MUSIC");
fee=fee+200;
}
else
if(an==5)
{
System.out.println("5:GUITAR");
fee=fee+250;
}
else
if(an==6)
{
System.out.println("6:VIOLIN");
fee=fee+tfee+250;
}
else
if(an==7)
{
System.out.println("7:PAINTING");
fee=fee+200;
}
}
}
System.out.println("DOES THE STUDENT REQUIRE SCHOOL VEHICLE
FOR TRANSPORTATION");
System.out.println("IF YES ENTER 1 OTHERWISE ENTER 0");
bus=Integer.parseInt(buf.readLine());
if(bus==1)
{
System.out.println("SELECT THE BUSSTOP FROM FOLLOWING
OPTIONS AND ENTER CORRESPONDING INDEX NUMBER OF THE STOP");
System.out.println("\t");
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
System.out.println("1:THIRUVILWAMALA----100");
System.out.println("2:OTTAPAALAM----200");
System.out.println("3:PAZHAYANNUR----200");
System.out.println("4:MAYANNUR----300");
System.out.println("5:ELANAD-----400");
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
stop=Integer.parseInt(buf.readLine());
switch(stop)
{
case 1:
fee=fee+100;
break;
case 2:
fee=fee+200;
break;
case 3:
fee=fee+200;
break;
case 4:
fee=fee+300;
break;
case 5:
fee=fee+400;
break;
default:
System.out.println("SORRY!!!!!WRONG ENTRY.... SCHOOL BUS NOT
RUNNING THROUGH THE SPECIFIED PLACE");
fee=fee;
break;
}
}
else
{
System.out.println("SCHOOL BUS NOT REQUIRED");
fee=fee;
}
System.out.println("\t");
System.out.println("\t");
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
System.out.println("*******.......YOU HAVE TAKEN A
PERFECT DECISION........*******");
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
System.out.println("STUDENT DETAILS WILL BE DISPLAYED IF
ADMISSION IS GRANTED");
for(int
i=1;i<=1000000;i++)
;
System.out.println("****LUCKY*****ADMISSION GRANTED*****");
System.out.println("TAKE A PRINT OUT OF THE STUDENT DETAILS
GIVEN BELOW AND MEET SCHOOL
ADMINISTRATION WITHIN 5 DAYS");
System.out.println("A D-D ADRESSING THE PRINCIPAL OF RS.500
SHOULD BE SEND ALONG WITH STUDENT DETAILS FORM");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("\t");
System.out.println("\t");
//displaying
student's details
System.out.println("-------------------------------------------------------------------------------------------");
System.out.println("STUDENT DETAILS");
System.out.println(" FIRST NAME : "+name1);
System.out.println("LAST NAME : "+name2);
System.out.println("FATHER'S NAME :"+fname);
System.out.println("MOTHER'S NAME :"+mname);
System.out.println("LOCAL GUARDIAN'S NAME :"+lgname);
System.out.println("AGE :"+age);
System.out.println("DATE OF BIRTH :"+date+"-"+mon+"-"+yr);
System.out.println("GENDER :"+sex);
System.out.println("
RELIGION :"+religion);
System.out.println("
BLOOD GROUP :"+blood);
System.out.println("FATHER'S OCCUPATION :"+foccu);
System.out.println("MOTHER'S
OCCUPTION :"+moccu);
System.out.println("
ADDRESS");
System.out.println("HOUSENAME :"+adr);
System.out.println("PLACE :"+plc);
System.out.println("DISTRICT :"+dis);
System.out.println("PIN CODE :"+pin);
System.out.println("RESIDENCE PHONENUMBER :"+lph);
System.out.println("MOBILE PHONENUMBER :"+mph);
System.out.println("PHONENUMBER IN CASE OF EMERGENCY :"+eph);
System.out.println("STANDARD :"+std);
System.out.println("TOTAL FEE PER MONTH :"+fee);
System.out.println("DATE OF ADMISSION :"+dd+"-"+mm+"-"+yy);
System.out.println("----------------------------------------------------------------------------------------------");
System.out.println("\t");
System.out.println("\t");
System.out.println(“~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
//prompting
to check displayed details
System.out.println("IF THE PROVIDED DETAILS OF STUDENT IS
CORRECT ENTER 1");
System.out.println("IF THERE IS ANY MORE CORRECTIONS ENTER 0");
crt=Integer.parseInt(buf.readLine());
if(crt==1)
{
System.out.println("\t");
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
System.out.println("YOU HAVE TAKEN AN EXCELLENT DECISION");
System.out.println("WE GUARANTEE A BRIGHT FUTURE FOR YOUR
CHILD");
System.out.println("THANK YOU FOR SELECTING THIS SCHOOL");
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
System.out.println("\t");
System.out.println("?????????????????????????????????????????????????????????");
System.out.println("FOR MORE ENQUIRIES ABOUT SCHOOL VISIT
sdatvmala@gmail.com");
System.out.println("??????????????????????????????????????????????????????????");
}
else
input();
}
else
System.out.println("*******THANK YOU********");
}
}
//closing function input
}
//closing class student
Class initial
{
Public static
void main(String args[])throws IOException
{
Student
obj=new student();
//object
creation
Obj.input();
}
}
output
OUTPUT
: 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SEVENTH-DAY
ADVENTIST HIGHER SECONDARY ENGLISH MEDIUM SCHOOL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SCHOOL
PROSPECTUS
*********************************************
*****
GIVE WINGS TO YOUR CHILD'S DREAMS*****
*********************************************
:::::::::::::::::::::::::::::::::::::::::::::
SPIRITUAL
PHYSICAL MENTAL
EXCELLENT
COACHING
STUDENT
FRIENDLY TEACHERS
SMART
CLASSES
EXTRA-ORDINARY
PRACTICAL LABS
SPACIOUS
PLAYGROUNDS
EFFICIENT
LIBRARY
:::::::::::::::::::::::::::::::::::::::::::::::::::::
_____________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WELCOME
TO SEVENTH-DAY ADVENTIST HIGHER SECONDARY ENGLISH MEDIUM SCHOOL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______________________________________________________________________
STUDENTS
ADMISSION FORM
ENTER
THE STANDARD TO WHICH ADMISSION IS REQUIRED
IF
STANDARD IS LKG/UKG PRESS 0....OTHERWISE PRESS 1
1
ENTER
STANDARD
12
TUTION
FEE PER MONTH : 575
IF
YOU AGREE TO TAKE ADMISSION ENTER 1 OTHERWISE ENTER 0
0
*******THANK
YOU********
No comments:
Post a Comment