School FEE Management: Class:-XII-A Roll No
School FEE Management: Class:-XII-A Roll No
FEE
Management
REMARKS SIGNATURE
2
CERTIFICATE
CHIRAG JAIN
of class XII-A under my supervision and guidance.
GHAZAN KHAN
3
Acknowledgement:-
CHIRAG JAIN
XII-A
4
INTRODUCTION
THE PRESENT ERA IS THE ERA OF INFORMATION
TECHNOLOGY. THIS BRANCH OF SCIENCE PLAYS A VITAL
AND SIGNIFICANT ROLE IN CATERING TO EDUCATION,
INFORMATION, RECREATION & WHAT NOT ? INFORMATION
TECHNOLOGY IS INSTRUCTIVE AS WELL. IT IS AN
INSTRUMENT OF BRINGING US TO A REALM OF
TECHNOLOGY. IT HAS ENTIRELY REVOLUTIONIZED THE
VISTA OF MODERN WORLD. IT HAS MADE THE MODERN LIFE
EASIER, SOFTER, BETTER, HAPPIER AND MORE PROSPEROUS.
IT HAS GIVEN US THE SAFEST & THE MOST CONCRETE MEANS
OF INSTRUCTION I.E. COMPUTER, INTERNET, E-MAIL, E-
COMMERCE, WEBSITE AND A LIFELINE FOR MOST OF OUR
PROBLEMS.
5
Header files Used
1. fstream.h
2. conio.h
gotoxy() - It is used to move the cursor to the given position in the text
window.
Clrscr() - It is used to clear the current text window and places the cursor
in the upper left hand corner.
Getch() – It reads a single character directly from the keyboard without
echoing to the screen.
3. stdio.h
4. process.h
5. string.h
6
Functions Used
1) Void add_data()
2) Void out_data();
3)Void receipt_data();
4) Int autog();
5)Void formod_data();
This function is used to modify the existing data of student’s which are
save in datafile.
7
Coding Of Programme
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<process.h>
class fee
{private:
char name[100],fname[100],mname[100],add[100],stnd[5],sec,stream[100];
float tuition,development,security,transport,total;
int ano;
void feemanager()
{ if(sec=='a'|| sec=='A')
{tuition=5000;
development=1000;
security=500;
transport=1000;
total=tuition+development+security+transport;
strcpy(stream,"NON-MEDICAL");
{tuition=5000;
development=1000;
security=500;
transport=1000;
total=tuition+development+security+transport;
strcpy(stream,"MEDICAL");
8
else if(sec=='c' || sec=='C')
{tuition=4500;
development=1000;
security=500;
transport=1000;
total=tuition+development+security+transport;
{tuition=4000;
development=1000;
security=500;
transport=1000;
total=tuition+development+security+transport;
{tuition=3000;
development=1000;
security=500;
transport=1000;
total=tuition+development+security+transport;
strcpy(stream,"ARTS");
else
{tuition=0;
development=0;
security=0;
transport=0;
9
total=tuition+development+security+transport;
strcpy(stream,"INVALID");
public:
fee()
{tuition=0;
development=0;
security=0;
transport=0;
total=0;
void add_data();
void out_data();
void receipt_data();
int autog();
void formod_data();
int funano()
{return ano;
};
*/
void welcome()
{clrscr();
int x,y;
for(x=20;x<=61;x++)
{gotoxy(x,9);cout<<"_";
10
}
gotoxy(36,5);cout<<" ||";
gotoxy(36,6);cout<<"___||||___";
gotoxy(30,7);cout<<" ____|__________|___";//gotoxy(45,9);cout<<"|";
gotoxy(20,8);cout<<" _________|___________________|__________";//gotoxy(50,10);cout<<"|";
for(x=20;x<=61;x++)
{gotoxy(x,11);cout<<"~";
for(y=9;y<=18;y++)
{gotoxy(20,y);cout<<"|";
for(y=9;y<=18;y++)
{gotoxy(61,y);cout<<"|";
for(x=20;x<=61;x++)
{gotoxy(x,19);cout<<"~";
getch();
void fee::add_data()
{ gotoxy(1,2);cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";
cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";
11
gotoxy(1,20); cout<<"AVAILABLE SECTIONS--";
gotoxy(1,21); cout<<"(A)-NON.MEDICAL";
gotoxy(1,22); cout<<"(B)-MEDICAL";
gotoxy(1,25); cout<<"(E)-ARTS";
ano=autog();
gets(name);
gets(fname);
gets(mname);
gotoxy(10,9);cout<<":-ADDRESS: ";
gets(add);
if(sec=='a'|| sec=='b'|| sec=='c'|| sec=='d'|| sec=='e'|| sec=='A'|| sec=='B'|| sec=='C'|| sec=='D'|| sec=='E' )
{}
else
{gotoxy(11,14);cout<<"*INVALID SECTION*";
feemanager();
void initial()
12
{
ofstream file;
file.open("feedata.dat",ios::app|ios::binary);
fee f1;
f1.add_data();
file.write((char*)&f1,sizeof(fee));
file.close();
void fee::receipt_data()
{ int x=0,y=0;
for(x=10;x<=70;x++)
{gotoxy(x,2);cout<<"_"; //main
for(x=11;x<=70;x++)
for(x=11;x<=70;x++)
gotoxy(11,7);cout<<"NAME:";puts(name); gotoxy(50,7);cout<<"ADM.NO:";cout<<ano;
gotoxy(11,9);cout<<"MOTHER NAME:";puts(mname);
for(x=11;x<=70;x++)
13
{gotoxy(x,10);cout<<"_"; // detail
gotoxy(11,11);cout<<"S.N";gotoxy(25,11);cout<<"DETAILS:";gotoxy(55,11);cout<<"AMOUNT:";
gotoxy(11,13);cout<<"1";gotoxy(16,13);cout<<"TUITION FEE";gotoxy(55,13);cout<<tuition;
gotoxy(11,14);cout<<"2";gotoxy(16,14);cout<<"DEVELOPMENT
FEE";gotoxy(55,14);cout<<development;
gotoxy(11,15);cout<<"3";gotoxy(16,15);cout<<"SECURITY FEE";gotoxy(55,15);cout<<security;
gotoxy(11,16);cout<<"4";gotoxy(16,16);cout<<"TRANSPORT FEE";gotoxy(55,16);cout<<transport;
for(x=11;x<=70;x++)
{gotoxy(x,19);cout<<"_";
for(y=11;y<=24;y++)
{gotoxy(14,y);cout<<"|";
for(y=11;y<=24;y++)
{gotoxy(45,y);cout<<"|";
gotoxy(31,20);cout<<"|TOTAL AMOUNT:";gotoxy(47,20);cout<<total;
gotoxy(47,22);puts(stream);
for(x=31;x<=44;x++)
{gotoxy(x,21);cout<<"_";
for(x=46;x<=69;x++)
{gotoxy(x,21);cout<<"_";
for(x=11;x<=70;x++)
14
for(y=3;y<=24;y++) //main
{gotoxy(10,y);cout<<"|";
} for(y=3;y<=24;y++) //main
{gotoxy(70,y);cout<<"|";
} for(x=10;x<=70;x++)
{gotoxy(x,24);cout<<"_"; //main
} cout<<endl;
void receipt()
ifstream file;
file.open("feedata.dat",ios::in|ios::binary);
if(!file)
exit(0);
int adm,a=0;
cin>>adm;
fee f1;
while(!file.eof())
{file.read((char*)&f1,sizeof(fee));
if(file.eof())
{break;}
if(f1.funano()==adm)
{f1.receipt_data();
a++;
15
}
if(a==0)
cout<<endl;
file.close();
void fee::out_data()
{ int i,y,x;
i=ano+3;
for(x=1;x<=80;x++) //main
{gotoxy(x,1);cout<<"-";
for(x=1;x<=80;x++) //main
{gotoxy(x,3);cout<<"-";
gotoxy(1,i); cout<<"12-"<<sec;
for(y=2;y<=22;y++)
{gotoxy(12,y);cout<<"|";
gotoxy(14,i); cout<<ano;
for(y=2;y<=22;y++)
{gotoxy(19,y);cout<<"|";
gotoxy(20,i); puts(name);
16
for(y=2;y<=22;y++)
{gotoxy(35,y);cout<<"|";
gotoxy(36,i);puts(fname);
for(y=2;y<=22;y++)
{gotoxy(54,y);cout<<"|";
gotoxy(55,i);puts(mname);
for(y=2;y<=22;y++)
{gotoxy(67,y);cout<<"|";
gotoxy(68,i);puts(add);
void display()
ifstream file;
file.open("feedata.dat",ios::in|ios::binary);
if(!file)
exit(0);
} int a=0;
fee f1;
while(!file.eof())
{file.read((char*)&f1,sizeof(fee));
if(file.eof())
17
{break;}
a++;
f1.out_data();}
file.close();
if(a==0)
cout<<endl;
void del()
{ ifstream file;
file.open("feedata.dat",ios::in|ios::binary);
ofstream file2;
file2.open("temp.dat",ios::app|ios::binary);
if(!file)
exit(0);
int adm,a=0;
cin>>adm;
fee f1;
while(!file.eof())
{file.read((char*)&f1,sizeof(fee));
if(file.eof())
{break;}
if(f1.funano()==adm)
18
a++;
else if(f1.funano()!=adm)
{file2.write((char*)&f1,sizeof(fee));
if(a==0)
else
file.close();
file2.close();
remove("feedata.dat");
rename("temp.dat","feedata.dat");
void fee::formod_data()
{ gotoxy(1,2);cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";
cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";
gotoxy(1,21); cout<<"(A)-NON.MEDICAL";
gotoxy(1,22); cout<<"(B)-MEDICAL";
gotoxy(1,25); cout<<"(E)-ARTS";
19
gotoxy(10,5);cout<<":-ALLOTED ADMISSION NO: ";
cout<<ano;
gets(name);
gets(fname);
gets(mname);
gotoxy(10,9);cout<<":-ADDRESS: ";
gets(add);
feemanager();
void modinitial()
ofstream file;
file.open("feedata.dat",ios::app|ios::binary);
fee f1;
f1.formod_data();
file.write((char*)&f1,sizeof(fee));
file.close();
void modify()
{ fstream file;
file.open("feedata.dat",ios::in|ios::out|ios::binary);
int adm,f=1;
long pos;
20
gotoxy(25,12); cout<<"ENTER ADMISSION NO. TO BE MODIFIED: ";
cin>>adm;
clrscr();
while(!file.eof())
{pos=file.tellg();
file.read((char*)&f1,sizeof(f1));
if(file.eof())
{break;
if(f1.funano()==adm)
{ a++;
f=1;
file.seekg(pos);
f1.formod_data();
file.write((char*)&f1,sizeof(f1));
} file.close();
if(a==0)
cout<<endl;
int fee::autog()
{ ifstream file;
file.open("feedata.dat",ios::in|ios::binary);
if(!file)
exit(0);
} int a=0;
21
fee f1;
while(!file.eof())
{file.read((char*)&f1,sizeof(fee));
if(file.eof())
{break;}
a=f1.funano();
a=a+1;
cout <<a;
getch();
return a;
main()
{int a=0,b=0,c=0;
welcome();
do{clrscr();
cin>>a;
if(a==1)
{do{clrscr();
void initial();
initial();
22
gotoxy(35,15); cout<<"1.DO YOU WANT TO ENTER RECORDS AGAIN (1/0):"; cin>>b;
}while(b==1);
else if(a==2)
{clrscr();
int z=0;
do{ clrscr();
if(z==1)
{clrscr();
void display();
display();
else if(z==2)
{ clrscr();
void receipt();
receipt();
else if(z==3)
{ break;
else
{cout<<"INVALID";}
}while(b==1);
23
else if(a==3)
{do{clrscr();
void modify();
modify();
}while(b==1);
else if(a==4)
{do{clrscr();
void del();
del();
}while(b==1);
else
{ exit(0);
cin>>c;}while(c==1);
getch();
24
OUTPUT
WELCOME SCREEN
OPTIONS AVAIABLE
25
ADDING A RECORD
Display options
26
SHOWING ALL RECORDS
27
MODIFYING A RECORD
DELETION OF RECORDS
28
BIBLIOGRAPY::
Computer Science C++ Sumita Arora
class XI and XII.
C++ help editor.
29