0% found this document useful (0 votes)
91 views

School FEE Management: Class:-XII-A Roll No

This document contains the code and documentation for a school fee management system project created in C++. It includes functions for adding, displaying, and modifying student data stored in a file. The code shows functions for generating admission numbers, calculating fees based on section, and generating fee receipts. Header files and functions used are documented. The main sections of code are commented to explain their purpose in adding, retrieving, and updating student fee records in the system.

Uploaded by

chirag jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

School FEE Management: Class:-XII-A Roll No

This document contains the code and documentation for a school fee management system project created in C++. It includes functions for adding, displaying, and modifying student data stored in a file. The code shows functions for generating admission numbers, calculating fees based on section, and generating fee receipts. Header files and functions used are documented. The main sections of code are commented to explain their purpose in adding, retrieving, and updating student fee records in the system.

Uploaded by

chirag jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

SCHOOL

FEE
Management

Made by:- CHIRAG JAIN


Class:- XII-A
Roll no:-
INDEX
1. Certificate
2. Acknowledgement
3. Introduction
4. Synopsis
5. Header files and Functions Used
6. Coding of the programme
7. Output
8. Bibliography

REMARKS SIGNATURE

2
CERTIFICATE

This is to certify that the project

'SCHOOL FEE MANAGEMENT'

has been developed by

CHIRAG JAIN
of class XII-A under my supervision and guidance.

GHAZAN KHAN

(PGT COMPUTER SCIENCE)

3
Acknowledgement:-

We want to thank CBSE board for providing us this golden


opportunity to prepare a project. Also we want to thank our
respected computer science teacher Mr. Ghazan Khan for his
guidance and supervision. Without him project wouldn’t be a
success.

We also want to thank our school management and principal


for providing us Up to date computer lab and also easy access
to computer.

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.

I.T AFFORDS US OF WHATEVER WE COULD NOT DREAM OF.


ALL THESE DEVICES UNDER I.T HAVE DRASTICALLY
CHANGED COMMUNICATION THAT NOW LINKS THE WORLD
WITHIN THE TWINKLING OF AN EYE. IT GIVES US THE EXACT
APPROACH. IT PROVIDES CALCULATIONS TO A FAULT.
ERRORLESS RESULT ARE PROCURED IN THE QUICKEST
MANNER. INTERNET & COMPUTER ARE NOW OF PARAMOUNT
SIGNIFICANCE.

I AM DOING THE PROJECT ON SCHOOL FEE MANAGEMENT


SYSTEM.
THIS PROJECT “SCHOOL FEE MANAGEMENT SYSTEM” IS
DEVELOPED TO ENHANCE THE WORKING OF SCHOOL
ADMINISTRATION. THE WORKLOAD OF HANDLING OF LARGE
LEDGER BOOKS, REGISTERS WILL NOW BE REDUCED. ALL
THE INFORMATION REQUIRED BY THE SCHOOL STAFF WILL
BE JUST A MOUSE CLICK AWAY.

5
Header files Used
1. fstream.h

 cin - It is used for standard input corresponding to stdin in C.


 cout - It is used for standard output corresponding to stdout in C.
 fstream – It provides for simultaneous input and output on a filebuff.

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

 rename() – It is used to rename a file.


 gets() - It is used to collect a string of characters terminated by a new
line from the standard input stream.
 puts() – It copies the null terminated string to standard output stream.
 Remove() – It deletes the file specified by a filename.

4. process.h

 Exit(0) – It is used to terminate a programe.

5. string.h

 Strcpy()- It is used to copy a string in another string.

6
Functions Used
1) Void add_data()

This function is used to enter the data of new admission student’s.

2) Void out_data();

This function is used to generate list of information for all the


student’s which are save in datafile.

3)Void receipt_data();

This function is used to generate a fees receipt (related to their allotted


section ) for particular student which are save in datafile.

4) Int autog();

This function is used to generate new admission number for new


comer’s.

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");

else if(sec=='b'|| sec=='B')

{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;

strcpy(stream,"COMMERCE WITH MATHS");

else if(sec=='d' || sec=='D')

{tuition=4000;

development=1000;

security=500;

transport=1000;

total=tuition+development+security+transport;

strcpy(stream,"COMMERCE WITHOUT MATHS");

else if(sec=='e'|| sec=='E')

{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;

};

/* o-output (class functions)

p-program (binary functions)

*/

void welcome()

{clrscr();

int x,y;

for(x=20;x<=61;x++)

{gotoxy(x,9);cout<<"_";

10
}

gotoxy(36,4);cout<<" <> ";

gotoxy(36,5);cout<<" ||";

gotoxy(36,6);cout<<"___||||___";

gotoxy(30,7);cout<<" ____|__________|___";//gotoxy(45,9);cout<<"|";

gotoxy(20,8);cout<<" _________|___________________|__________";//gotoxy(50,10);cout<<"|";

gotoxy(20,10); cout<<" WELCOME TO THE SCHOOL FEE MANAGEMENT ";

for(x=20;x<=61;x++)

{gotoxy(x,11);cout<<"~";

gotoxy(30,13); cout<<"::::PROJECT MADE BY::::";

gotoxy(33,15); cout<<"CHIRAG JAIN XII-A";

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<<"~";

gotoxy(50,23); cout<<"PRESS ENTER TO CONTINUE....";

getch();

//** adding data to the file (o) **//

void fee::add_data()

{ gotoxy(1,2);cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";

gotoxy(30,3);cout<<"::::::ENTER DATA:::::: \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,23); cout<<"(C)-COMMERCE WITH MATHS";

gotoxy(1,24); cout<<"(D)-COMMERCE WITHOUT MATHS";

gotoxy(1,25); cout<<"(E)-ARTS";

cout<<endl; gotoxy(65,5);cout<<":-CLASS: 12 ";

gotoxy(10,5);cout<<":-ALLOTED ADMISSION NO: ";

ano=autog();

gotoxy(10,6);cout<<":-ENTER NAME OF STUDENT: ";

gets(name);

gotoxy(10,7);cout<<":-FATHER NAME: ";

gets(fname);

gotoxy(10,8);cout<<":-MOTHER NAME: ";

gets(mname);

gotoxy(10,9);cout<<":-ADDRESS: ";

gets(add);

gotoxy(10,10);cout<<":-ENTER SECTION: "; cin>>sec;

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*";

gotoxy(10,10);cout<<":-ENTER SECTION: "; cin>>sec;

feemanager();

//** adding data to the file (p) **//

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();

//** display fee receipt from the file (o) **//

void fee::receipt_data()

{ int x=0,y=0;

for(x=10;x<=70;x++)

{gotoxy(x,2);cout<<"_"; //main

gotoxy(35,3);cout<<"FEE RECEIPT \n";

for(x=11;x<=70;x++)

{gotoxy(x,4);cout<<"_"; // next to fee receipt

gotoxy(25,5);cout<<"ST. JOHN SENIOR SECONDARY SCHOOL \n";

for(x=11;x<=70;x++)

{gotoxy(x,6);cout<<"_"; // next to school name

gotoxy(11,7);cout<<"NAME:";puts(name); gotoxy(50,7);cout<<"ADM.NO:";cout<<ano;

gotoxy(11,8);cout<<"FATHER NAME:";puts(fname); gotoxy(50,8);cout<<"CLASS & SEC:";cout<<"12-


"<<sec;

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++)

{gotoxy(x,12);cout<<"_"; // next to s.n, detail, amount

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;

//** display fee receipt from the file (p) **//

void receipt()

ifstream file;

file.open("feedata.dat",ios::in|ios::binary);

if(!file)

{cout<<"FILE NOT PRESENT";

exit(0);

int adm,a=0;

cout<<"ENTER ADMISSION NO:";

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)

{ gotoxy(30,12); cout<<"NO DATA PRESENT \n";

cout<<endl;

file.close();

//** display data from the file (o) **//

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,2); cout<<"CLASS-SEC ";

gotoxy(1,i); cout<<"12-"<<sec;

for(y=2;y<=22;y++)

{gotoxy(12,y);cout<<"|";

gotoxy(13,2); cout<<"ADM.NO ";

gotoxy(14,i); cout<<ano;

for(y=2;y<=22;y++)

{gotoxy(19,y);cout<<"|";

gotoxy(20,2); cout<<"STUDENT NAME ";

gotoxy(20,i); puts(name);

16
for(y=2;y<=22;y++)

{gotoxy(35,y);cout<<"|";

gotoxy(36,2); cout<<"FATHER NAME ";

gotoxy(36,i);puts(fname);

for(y=2;y<=22;y++)

{gotoxy(54,y);cout<<"|";

gotoxy(55,2); cout<<"MOTHER NAME ";

gotoxy(55,i);puts(mname);

for(y=2;y<=22;y++)

{gotoxy(67,y);cout<<"|";

gotoxy(68,2); cout<<"ADDRESS ";

gotoxy(68,i);puts(add);

//** search all data from the file (p) **//

void display()

ifstream file;

file.open("feedata.dat",ios::in|ios::binary);

if(!file)

{cout<<"FILE NOT PRESENT";

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)

{ gotoxy(30,12); cout<<"NO DATA IS PRESNT \n";

cout<<endl;

//** deletion of data from the file (p) **//

void del()

{ ifstream file;

file.open("feedata.dat",ios::in|ios::binary);

ofstream file2;

file2.open("temp.dat",ios::app|ios::binary);

if(!file)

{cout<<"FILE NOT PRESENT";

exit(0);

int adm,a=0;

gotoxy(25,11); cout<<"ENTER ADMISSION NO:";

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)

{gotoxy(30,12); cout<<"NO DATA PRESENT \n";

else

{gotoxy(30,12); cout<<"RECORD DELETED \n";}

file.close();

file2.close();

remove("feedata.dat");

rename("temp.dat","feedata.dat");

//** for modification **//

void fee::formod_data()

{ gotoxy(1,2);cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";

gotoxy(30,3);cout<<"::::::ENTER DATA:::::: \n";

cout<<"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* \n";

gotoxy(1,20); cout<<"AVAILABLE SECTIONS--";

gotoxy(1,21); cout<<"(A)-NON.MEDICAL";

gotoxy(1,22); cout<<"(B)-MEDICAL";

gotoxy(1,23); cout<<"(C)-COMMERCE WITH MATHS";

gotoxy(1,24); cout<<"(D)-COMMERCE WITHOUT MATHS";

gotoxy(1,25); cout<<"(E)-ARTS";

cout<<endl; gotoxy(65,5);cout<<":-CLASS: 12 ";

19
gotoxy(10,5);cout<<":-ALLOTED ADMISSION NO: ";

cout<<ano;

gotoxy(10,6);cout<<":-ENTER NAME OF STUDENT: ";

gets(name);

gotoxy(10,7);cout<<":-FATHER NAME: ";

gets(fname);

gotoxy(10,8);cout<<":-MOTHER NAME: ";

gets(mname);

gotoxy(10,9);cout<<":-ADDRESS: ";

gets(add);

gotoxy(10,10);cout<<":-ENTER SECTION: "; cin>>sec;

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();

//** modify **//

void modify()

{ fstream file;

file.open("feedata.dat",ios::in|ios::out|ios::binary);

int adm,f=1;

long pos;

fee f1; int a=0;

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)

{ gotoxy(30,12); cout<<"NO DATA PRESENT \n";

cout<<endl;

int fee::autog()

{ ifstream file;

file.open("feedata.dat",ios::in|ios::binary);

if(!file)

{cout<<"FILE NOT PRESENT";

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();

gotoxy(30,7); cout<<":::CHOOSE ANY OPTION::: \n";

gotoxy(30,9); cout<<"1.ADD STUDENT DATA \n";

gotoxy(30,10); cout<<"2.DISPLAY \n";

gotoxy(30,11); cout<<"3.MODIFY \n";

gotoxy(30,12); cout<<"4.DELETE RECORDS \n";

gotoxy(30,13); cout<<"5.EXIT \n";

gotoxy(33,15); cout<<"ENTER YOUR CHOICE:: ";

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();

gotoxy(30,9); cout<<"1.DISPLAY ALL DATA \n";

gotoxy(30,10); cout<<"2.DISPLAY FEE RECEIPT \n";

gotoxy(30,11); cout<<"3.BACK \n";

gotoxy(32,13); cout<<"ENTER YOUR CHOICE:: "; cin>>z;

if(z==1)

{clrscr();

void display();

display();

else if(z==2)

{ clrscr();

void receipt();

receipt();

else if(z==3)

{ break;

else

{cout<<"INVALID";}

gotoxy(1,25); cout<<"1.DO YOU WANT TO CONTINUE(1/0)"; cin>>b;

}while(b==1);

23
else if(a==3)

{do{clrscr();

void modify();

modify();

gotoxy(35,15);cout<<"1.DO YOU WNAT TO MODIFY AGAIN(1/0):"; cin>>b;

}while(b==1);

else if(a==4)

{do{clrscr();

void del();

del();

gotoxy(30,16); cout<<"1.DO YOU WNAT TO DELETE RECORD AGAIN(1/0):"; cin>>b;

}while(b==1);

else

{ exit(0);

gotoxy(48,25);cout<<"PRESS (1) TO GO TO MAIN MENU....";

cin>>c;}while(c==1);

getch();

24
OUTPUT
WELCOME SCREEN

OPTIONS AVAIABLE

25
ADDING A RECORD

Display options

26
SHOWING ALL RECORDS

Showing individual fee receipt

27
MODIFYING A RECORD

DELETION OF RECORDS

28
BIBLIOGRAPY::
 Computer Science C++ Sumita Arora
class XI and XII.
 C++ help editor.

29

You might also like