SlideShare a Scribd company logo
1
INTRODUCTION
I begins with a brief introduction about this project & the difference stages of the
design & development of “COLLEGE MANAGEMENT SYSTEM” before details
discuss first of all I would like to give an overall idea about this project.
2
Title of Project
COLLEGE MANAGEMENT SYSTEM
I have develops my project on “COLLEGE MANAGEMENT SYSTEM”, because
this project is help to details about college information. In this process of expansion
of their activities they plan to automate their operation of any system. In “COLLEGE
MANAGEMENT SYSTEM” a large amount of data is processed & the results are used
in running an organization/system. Computers are now extensively used to perform
the routine clerical works for smooth functioning of the “COLLEGE MANAGEMENT
SYSTEM”, also today most large & medium sized organization or system are depend
on computers to a great extent. Micro electronic technology enables offers to
function faster & more efficiently & the low cost of technology means putting
computers within the grasp of even the smallest business, system or organization.
In the commercial world “COLLEGE MANAGEMENT SYSTEM” is
organization to invest heavily in computers in recent time. In most instance the computer
is located centrally branches are equipped with terminals, giving them online accounting
facilities & enabling for information or such things as current balance, report of different
fields of “COLLEGE MANAGEMENT SYSTEM”. Use of computer in “COLLEGE
MANAGEMENT SYSTEM” has made transaction simpler, easier & faster for any
organization or system.
This project is handled with the help of “File Handling Concept ” (OOPS Class
Concept) in this projects ”COLLEGE MANAGEMENT SYSTEM” maintain the college
courses, student details, fee details, examination details, library & employee details.
The main goal of this project is to create: –
Course list, student list, fee details, examination details, and library & employee
details. Which the management can access.
For making this project consult the following objective:
1) Course Record
2) Student Record
3) Fee Record
4) Examination Record
5) Employee Record
6) Library Record
To insure prompt functioning a part from the above maintain objectives there are
several other functions that the develop system performs for day-to-day operation of the
“COLLEGE MANAGEMENT SYSTEM”.
3
Identification of Need
In this section I have studies the existing manual system of entire organization
/system in general. The job of “COLLEGE MANAGEMENT SYSTEM”
is basically involved transaction of students fee, students record, and staff record. In the
manual system “COLLEGE MANAGEMENT SYSTEM” accepts the students fee &
update them in record.
In day-to-day function of this system several problems are imposed due to manual
system of “COLLEGE MANAGEMENT SYSTEM”. Some of them are –
Significant amount of effort & time is spent on searching & locating information
written the individual records.
Some times human errors results in wrong calculation eventually ending with
errorless balancing figure in concerned of that record.
Why System Project :---
System projects are initiated for different reasons. The most important reasons
are:-
1) Capabilities: - Business activities are influenced by organizations ability to
process transactions quickly & efficiently. Information system adds capability
in three ways: -
i) Improved processing speed: - The inheritant speed with computer process
data is one reason why organization seeks the development of system project.
ii) Increase Volume: - Provide capacity to access the greater amount of activity,
purpose to take the advantage of new business opportunities.
iii) Fatter retrieval of information: - Locating & retrieving information from
storage.
The ability in conducting complex search.
2) Control: -
i) Create accuracy & Consistency: - Charring out computing step
smoothly consistently.
ii) Better Security: - Safe guarding sencity & important data in a form i.e.
accessible to the only authorized person.
3) Communication: -
i) Enhanced Communication: - speeding the flow of information and message
between remote locations as well as within office. This includes the
transmission of documents within office.
ii) Integration of Business Area: - Co-ordinating business activates taking place
in separate area of an organization through capture & distribution of
information.
4
4) Cost: -
i) Monitor Cost: - Tracing the cost of labour, goods & overhead is essential to
determine whether a firm is performing in line with expectation with budget.
ii) Reduce Cost: - Using Computing capabilities to process data at the lower cost
than possible with other methods while maintaining performance & accuracy
level.
5) Competitiveness: -
i) Lock of Customers: - Changing the relationship with and services provided
to the customer in such a way that they would not think the changing of
customer.
ii) Lock of Competitors: - Reducing the changes of entering the competitors in
the same market because of good information systems being used in the
organization
iii) New Policy Development: - Introducting new policy with characteristics that
use or influenced by information technology.
5
Software & Hardware Requirement Specification
Introduction:
“The document describes the project’s target audience and its user
interface,hardware requirement.It defines how our client, team and audience see tha
product and its functionality.Nonetheless,it helps any designer and developer to assist in
software delivery lifecycle processes.”
Objective:
To design software for “COLLEGE MANAGEMENT SYSTEM” that will
generate the purposed output i.e. Software must generate the following output: -
a) List of Courses
b) List of students
c) List of Fee Details
d) List of examination Term
e) List of Employee
f) List of Books
g) List of issued Books
h) List of return Books
*Goal:
The main goal of this project to create course record &maintain course consol
updating, Students records & maintain Students consol updating, Fee records, Employee
records & maintain employee consol updating, Salary slip, Books record & maintain their
consol updating, membership records &maintain their consol updating, maintain book
issue & book return record & global reports with more easier,
faster,reliable accurate & secure.
*Overall Description:
We have to design the software for “COLLEGE MANAGEMENT SYSTEM” that
will full fill following: -
1) Creation of Course record, student list, employee record, books record, new
membership & this will happen from anywhere (location independent).
2) Keep & maintenance large number of records easily.
3) Finding/listing users record quickly.
4) Preparation of several reports for the “COLLEGE MANAGEMENT
SYSTEM” & individual reports quickly & easily.
5) Calculation of fee dues with accuracy.
Tools/Platform, Language used:
As far as the tools/platform for the development of the project is concern it has
been discussed along with the guide & decide that the windows o/s will be suitable, &
after considering various aspects. It is planned to develop the complete projects the
language ‘C++’. As C++ is the enhanced version of the C language, C++ includes every
6
thing i.e. a part of C & adds supports OOPS. Any think we know about C language is
fully applicable to C++.
Reason for purposing C++:
* It support all feathers of both structured programming & OOPS.
* It gives the easiest way to handle data hiding & encapsulation with the help of
powerful keywords such as class, public, private, protected.
* Inheritance, one of the most powerful design concepts is supported with single
single & multiple inheritance of base class & derived class.
* Polymorphism to virtual function, virtual base classes & virtual destructors
gives the let binding of the compilers.
* It provides the overloading of operators & functions.
* C++ focus on the function & class templates for handling parameterized data
type.
* Exception handling is done by the extra keywords namely try, catch & through.
* Provides friends, static methods, constructors & destructors for the class
objects.
Finally the configuration of the project is as follows: -
* Hardware: - Computer (845 Intel processor, 64 MB RAM, 10 GB Hard disk).
* Software: - C++
* Platform: - Windows workstations running on Windows NT.
* Backup media: - Hard disk.
7
8
9
10
11
DATA FLOW DIAGRAM
LABEL-1
Course.dat
Insert New Course
User Request
User Request
Insert Student Student.dat
Detail
User Request
12
LABEL-2
List of All
Course Course.dat
Request for view of
all the course
User Request Individual Student Student.dat
Request for View of
indivisual student details
Request for view of all
student details
List of all Student.dat
Student List
13
LABEL-3
Insert fee details Fee.dat
Request of insert
Fee of all requests
User Request Modification fee Fee.dat
Records
Modify records of course
Student/Course Student.dat
Corse.dat
14
LABEL-4
Insert book record Book.dat
Insert Member Ship Member.dat
User Request
Insert Employee Emp.dat
Book.dat
List of Book Mem.dat
Member/Employee
Emp.dat
15
CLASS DIAGRAM
1) Class Name: - Course
Structure Name: -var
Fields: -
char course_name[20],sname[20],fname[20],fo[20],add[50];
int course_code,duration,roll,cnum;
float fee;
char qualification[30],sex,dob[10],doe[10];
Function Name Working
Sysdate() To display current system date
Course() To display course list menu
Add_course() To add new course
List_course() To list courses available in this college
Modify_course() To modify the course record
Delete_course() To delete course record
2) Class Name :- Student
Structure Name:- stu
Fields:- char ch,sex,name[20],qualification[20],fname[20];
char fo[20],address[20],course[5],dob[10],doe[10];
int duration,roll,cnum;
Function Working
Student() To display the student list menu
Add_student() To add new student record
List_student() To list the all admitted student
Full_student() To Listthe individual student record
Modify_student() To modify the student records
Delete_student() To delete student record
Inheritance :- It inherit the class course property.
3) Class Name:- Fee
Structure Name:- var
Fields:-char ch,name[20],fname[20],address[20],course[5],dob[10];
int duration,roll,total_fee,paid_fee,dues_fee;
16
Function Working
Fee() To display the fee records menu
Addmission() To admit the student
Received() To received the fee
List() To list out the fee details
Delete_fee() TO delete fee record
Inheritance: - It inherit the class Student property.
4)Class Name:- Exam
Structure Name: var
Fields: int duration,course_code;
char course_name[10],exam_term[10],exam_date[10];
Function Working
Examination() To list examination menu
Add_exam_term() To add examination term & date
List_exam_term() To list examination term& date
Modify_exam_term() To Modify exam term & date
Del_exam_term() To delete exam term
Inheritance :- It inherit the class Fee property.
6) Class Name: Emp
Structure Name: var
Fields: int e_no;
char e_name[20],dob[10],city[10],dist[10],state[10];
char zip[5],desi[10],doj[10],dept[10],g;
double ta,da,hra,pf,tsal,bsal;
Function Working
employ() To list employee menu
Add_emp() To add new employee
Modify_emp() To Modify the employee record
List_emp() To list employee list
Indi_emp() To display individual employee record
Del_emp() To delete employee record.
Inheritance :- It inherit the class Exam. property.
17
7) Class Name: Library
Structure Name:
Fields: int book_no,rno,price,page_no,mem_no,mem_fee;
char class_name[20],mem_name[10],add[50],
char book_title[20],aname[20],pname[20];
char bname[20],aurther[20],publisher[20]:
char member_no[5],roll[5],clas[5];
float bprice;
int bno;
Function Working
library() To display library menu
add_book() To add new book
modify_book() To modify student records
List_book() To list the books& its record
Del_book() To delete book records
add_member() To add new member
modify_member() To modify the books_records
List_member() To list member records
Del_member() To delete member records.
Book_issue() To issue books
Book_return() To return books
List_issue() To list issued book
Inheritance :- It inherit the class emp property.
8) Class Name: Main_menu
Function Working
represent() To view representation
Menu() To display main menu of this project
Inherit: Library
We use inheritance concept to access the function of base on
requirment on project.
18
PROJECT CODING
#include<string.h>
#include<dos.h>
#include<graphics.h>
#include<stdio.h>
#include<fstream.h>
#include<process.h>
#include<conio.h>
#include<iostream.h>
#include<ctype.h>
#include<stdlib.h>
class course
{
char ch;
struct entry
{
char course_name[20],sname[20],fname[20],fo[20],add[50],dob[10],doe[10];
int course_code,duration,roll,cnum;
float fee;
char qualification[30],sex;
}p;
fstream f;
public:
void sysdate();
int code();
void course_menu();
void add_course();
void modify_course();
void list_course();
void del_course();
};
class student:public course
{
private:
struct stu
{
char
ch,sex,name[20],qualification[20],fname[20],fo[20],address[20],course[5],dob[10],doe[1
0];
int duration,roll,cnum;
}p;
fstream file;
public:
int code();
void student_menu();
void add_student();
void list_student();
void modify_student();
19
void full_student();
void del_student();
};
class fee:public student
{
private:
struct var
{
char ch,name[20],fname[20],address[20],course[5],dob[10];
int duration,roll,total_fee,paid_fee,dues_fee;
}f;
fstream file;
public:
int code();
void fee_menu();
void admission();
void received();
void modify_fee();
void list_fee();
void del_fee();
};
class exam:public fee
{
struct var
{
int duration,course_code;
char course_name[10],exam_term[10],exam_date[10];
}p;
fstream f;
public:
int code();
void examination();
void add_exam_term();
void list_exam_term();
void modify_exam_term();
void del_exam_term();
};
class emp:public exam
{
char ch;
struct entry
{
int e_no;
char e_name[20],dob[10],city[10],dist[10],state[10],zip[5],desi[10],doj[10],dept[10],g;
double ta,da,hra,pf,tsal,bsal;
}p;
fstream f;
20
public:
int code();
void employee();
void employee_record();
void add_employee();
void modify_employee();
void list_employee();
void indi_employee();
void salary();
void salary_slip();
void change_salary();
void del_employee();
};
class library:public emp
{
char ch;
struct var
{
int book_no,rno,price,page_no,mem_no,mem_fee;
char class_name[20],mem_name[10],add[50],book_title[20],aname[20],pname[20];
char bname[20],aurther[20],publisher[20],member_no[5],roll[5],clas[5];
double bprice;
int bno;
}s;
fstream file;
public:
int bcode();
int mcode();
void library_menu();
void book_record();
void book_issue_return();
void book_issue();
void book_return();
void list_issue_book();
void list_return_book();
void add_book();
void modify_book();
void list_book();
void delete_book();
void member_record();
void add_member();
void modify_member();
void list_member();
void delete_member();
int found(int);
};
21
//************************* course coading ********************************
void course::sysdate()
{
date d;
getdate(&d);
int da=d.da_day;
int mo=d.da_mon;
int ye=d.da_year;
gotoxy(60,5);
cout<<"Date:";
cout<<da<<"/"<<mo<<"/"<<ye;
}
void course::course_menu()
{
char ch;
do
{
clrscr();
gotoxy(16,2);
cout<<"COURSE MENU OF COLLEGE SYSTEM";
gotoxy(4,3);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(20,6);
cout<<"1.ADD NEW COURSE";
gotoxy(20,8);
cout<<"2.LIST OF COURSE";
gotoxy(20,10);
cout<<"3.MODIFY COURSE";
gotoxy(20,12);
cout<<"4.DELETE COURSE";
gotoxy(4,16);
cout<<"*****************************************************************
*****";
gotoxy(20,24);
cout<<"<0>FOR RETURN";
gotoxy(30,22);
cout<<"ENTER YOUR CHOICE:";
ch=getch();
switch(ch)
{
case '0':
{
break;
}
case '1':
22
add_course();
break;
case '2':
list_course();
break;
case '3':
modify_course();
break;
case '4':
del_course();
break;
}
}while(ch!='0');
}
int course::code()
{
int count=0;
f.open("course.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
count=p.course_code;
}
count++;
f.close();
return count;
}
void course::add_course()
{
do
{
clrscr();
gotoxy(16,2);
cout<<"ADD NEW COURSE";
gotoxy(4,3);
cout<<"*****************************************************************
****";
gotoxy(5,5);
cout<<"COURSE CODE:";
p.course_code=code();
cout<<p.course_code;
gotoxy(5,7);
cout<<"COURSE NAME:";
cin>>p.course_name;
gotoxy(5,9);
23
cout<<"DURATION:";
cin>>p.duration;
gotoxy(5,11);
cout<<"FEE:";
cin>>p.fee;
gotoxy(5,13);
cout<<"QUALIFICATION:";
cin>>p.qualification;
gotoxy(4,16);
cout<<"*****************************************************************
****";
f.open("course.dat",ios::app|ios::out);
f.seekp(0L,ios::end);
f.write((char *)&p,sizeof(p));
gotoxy(20,20);
cout<<"Add more(y/n):";
ch=getch();
f.close();
}while(ch=='y');
clrscr();
}
void course::modify_course()
{
int count=0;
int no;
long int pos;
clrscr();
f.open("course.dat",ios::in|ios::out);
f.seekg(0L,ios::beg);
gotoxy(16,2);
cout<<"MODIFY COURSE";
gotoxy(4,3);
cout<<"*****************************************************************
****";
gotoxy(5,5);
cout<<"COURSE CODE:";
cin>>no;
while(f.read((char *)&p,sizeof(p)))
{
if(no==p.course_code)
{
gotoxy(5,7);
cout<<"COURSE NAME:";
cin>>p.course_name;
gotoxy(5,9);
cout<<"DURATION:";
cin>>p.duration;
gotoxy(5,11);
cout<<"FEE:";
24
cin>>p.fee;
gotoxy(5,13);
cout<<"QUALIFICATION:";
cin>>p.qualification;
gotoxy(4,16);
cout<<"*****************************************************************
****";
pos=count*sizeof(p);
f.seekp(pos,ios::beg);
f.write((char*)&p,sizeof(p));
f.close();
}
count++;
}
}
void course::list_course()
{
int i=7;
clrscr();
gotoxy(16,2);
cout<<"LIST OF COURSE";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,5);
cout<<"COURSE CODE COURSE NAME DURATION(year) QUALIFICATION
FEE";
gotoxy(4,6);
cout<<"*****************************************************************
******";
f.open("course.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
gotoxy(8,i);
cout<<p.course_code;
gotoxy(25,i);
cout<<p.course_name;
gotoxy(40,i);
cout<<p.duration;
gotoxy(55,i);
cout<<p.qualification;
gotoxy(70,i);
cout<<p.fee;
i++;
if(i==22)
{
i=9;
cout<<"PRESS ANY KEY TO CONTINUE";
25
getch();
clrscr();
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,5);
cout<<"COURSE CODE COURSE NAME DURATION(year) QUALIFICATION
FEE";
gotoxy(4,6);
cout<<"*****************************************************************
******";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
f.close();
getch();
clrscr();
}
void course::del_course()
{
int no;
clrscr();
gotoxy(16,2);
cout<<"DELETE COURSE RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"COURSE CODE:-";
cin>>no;
gotoxy(15,24);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
fstream temp;
f.open("course.dat", ios::in);
temp.open("TEMP.dat", ios::out);
f.seekg(0, ios::beg);
while (!f.eof())
{
f.read((char *)&p, sizeof(p));
if (f.eof())
break;
if (p.course_code != no)
{
26
temp.write((char *)&p, sizeof(p));
}
}
f.close();
temp.close();
f.open("course.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&p, sizeof(p));
if (temp.eof())
break;
if (p.course_code!= no)
f.write((char *)&p, sizeof(p));
}
f.close();
temp.close();
gotoxy(15,25);
cout<<"record deleted:";
getch();
}
else
{
clrscr();
f.close();
}
clrscr();
course();
}
//*************************** student coading ***************************
void student::student_menu()
{
char ch;
do
{
clrscr();
gotoxy(16,2);
cout<<"STUDENT MENU OF COLLEGE SYSTEM";
gotoxy(4,3);
cout<<"*****************************************************************
*****";
sysdate();
27
gotoxy(20,6);
cout<<"1.ADD NEW STUDENT";
gotoxy(20,8);
cout<<"2.LIST OF STUDENT";
gotoxy(20,10);
cout<<"3.MODIFY STUDENT RECORD";
gotoxy(20,12);
cout<<"4.VIEW INDIVIDUAL STUDENT COURSE";
gotoxy(20,14);
cout<<"5.DELETE STUDENT RECORD";
gotoxy(4,18);
cout<<"*****************************************************************
*****";
gotoxy(20,24);
cout<<"<0>FOR RETURN";
gotoxy(30,22);
cout<<"ENTER YOUR CHOICE:";
ch=getch();
switch(ch)
{
case '0':
break;
case '1':
add_student();
break;
case '2':
list_student();
break;
case '3':
modify_student();
break;
case '4':
full_student();
break;
case '5':
del_student();
break;
}
}while(ch!='0');
}
int student::code()
{
int count=0;
file.open("student.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&p,sizeof(p)))
{
count=p.roll;
28
}
count++;
file.close();
return count;
}
void student::add_student()
{
clrscr();
gotoxy(16,2);
cout<<"NEW STUDENT RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,5);
cout<<"STUDENT ROLL:-";
p.roll=code();
cout<<p.roll;
gotoxy(5,7);
cout<<"STUDENT NAME:-";
gets(p.name);
gotoxy(5,9);
cout<<"FATHER NAME:-";
gets(p.fname);
gotoxy(5,11);
cout<<"FATHER OCCUPATION:-";
gets(p.fo);
gotoxy(5,13);
cout<<"DATE OF BIRTH:-";
gets(p.dob);
gotoxy(5,15);
cout<<"DATE OF ENTRY:-";
gets(p.doe);
gotoxy(5,17);
cout<<"ADDRESS:-";
gets(p.address);
gotoxy(5,19);
cout<<"COURSE NAME:-";
gets(p.course);
gotoxy(5,21);
cout<<"CONTACT NUMBER:-";
cin>>p.cnum;
gotoxy(5,23);
cout<<"PREVIOUS QUALIFICATIOPN:-";
gets(p.qualification);
gotoxy(5,25);
cout<<"SEX(M/F):-";
cin>>p.sex;
file.open("student.dat",ios::app|ios::out);
29
file.seekp(0L,ios::end);
file.write((char *)&p,sizeof(p));
file.close();
clrscr();
student();
}
void student::full_student()
{
int count=0;
int no;
long int pos;
clrscr();
file.open("student.dat",ios::in);
file.seekg(0L,ios::beg);
gotoxy(16,2);
cout<<"FULL STUDENT RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,5);
cout<<"STUDENT ROLL:-";
cin>>no;
while(file.read((char *)&p,sizeof(p)))
{
if(no==p.roll)
{
gotoxy(5,7);
cout<<"STUDENT NAME:-";
cout<<p.name;
gotoxy(5,9);
cout<<"FATHER NAME:-";
cout<<p.fname;
gotoxy(5,11);
cout<<"FATHER OCCUPATION:-";
cout<<p.fo;
gotoxy(5,13);
cout<<"DATE OF BIRTH:-";
cout<<p.dob;
gotoxy(5,15);
cout<<"DATE OF ENTRY:-";
cout<<p.doe;
gotoxy(5,17);
cout<<"ADDRESS:-";
cout<<p.address;
gotoxy(5,19);
cout<<"COURSE NAME:-";
cout<<p.course;
gotoxy(5,21);
cout<<"CONTACT NUMBER:-";
30
cout<<p.cnum;
gotoxy(5,23);
cout<<"PREVIOUS QUALIFICATIOPN:-";
cout<<p.qualification;
gotoxy(5,25);
cout<<"SEX(M/F):-";
cout<<p.sex;
}
count++;
}
gotoxy(50,25);
cout<<"PRESS ANY KEY TO BACK:";
file.close();
getch();
clrscr();
student();
}
void student::list_student()
{
int i=7;
clrscr();
gotoxy(16,2);
cout<<"LIST OF STUDENT RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
*****";
gotoxy(5,5);
cout<<"ROLL STUDENT NAME COURSE NAME ";
file.open("student.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&p,sizeof(p)))
{
gotoxy(5,i);
cout<<p.roll;
gotoxy(15,i);
cout<<p.name;
gotoxy(48,i);
cout<<p.course;
i++;
if(i==25)
{
i=7;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,2);
cout<<"LIST OF STUDENT RECORD";
gotoxy(4,3);
31
cout<<"*****************************************************************
*****";
gotoxy(5,5);
cout<<"ROLL STUDENT NAME COURSE NAME ";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
file.close();
getch();
clrscr();
student();
}
void student::modify_student()
{
int count=0;
int no;
long int pos;
clrscr();
gotoxy(16,2);
cout<<"MODIFY STUDENT RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,5);
cout<<"STUDENT ROLL:-";
cin>>no;
file.open("student.dat",ios::in|ios::out);
file.seekg(0L,ios::beg);
while(file.read((char *)&p,sizeof(p)))
{
if(no==p.roll)
{
gotoxy(5,7);
cout<<"STUDENT NAME:-";
gets(p.name);
gotoxy(5,9);
cout<<"FATHER NAME:-";
gets(p.fname);
gotoxy(5,11);
cout<<"FATHER OCCUPATION:-";
gets(p.fo);
gotoxy(5,13);
cout<<"DATE OF BIRTH:-";
gets(p.dob);
gotoxy(5,15);
cout<<"DATE OF ENTRY:-";
32
gets(p.doe);
gotoxy(5,17);
cout<<"ADDRESS:-";
gets(p.address);
gotoxy(5,19);
cout<<"COURSE NAME:-";
gets(p.course);
gotoxy(5,21);
cout<<"CONTACT NUMBER:-";
cin>>p.cnum;
gotoxy(5,23);
cout<<"PREVIOUS QUALIFICATIOPN:-";
gets(p.qualification);
gotoxy(5,25);
cout<<"SEX(M/F):-";
cin>>p.sex;
pos=count*sizeof(p);
file.seekp(pos,ios::beg);
file.write((char *)&p,sizeof(p));
file.close();
}
count++;
}
file.close();
clrscr();
student();
}
void student::del_student()
{
int no;
clrscr();
gotoxy(16,2);
cout<<"DELETE STUDENT RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"STUDENT ROLL:-";
cin>>no;
gotoxy(15,24);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
fstream temp;
file.open("student.dat", ios::in);
temp.open("TEMP.dat", ios::out);
33
file.seekg(0, ios::beg);
while (!file.eof())
{
file.read((char *)&p, sizeof(p));
if (file.eof())
break;
if (p.roll != no)
{
temp.write((char *)&p, sizeof(p));
}
}
file.close();
temp.close();
file.open("student.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&p, sizeof(p));
if (temp.eof())
break;
if (p.roll!= no)
file.write((char *)&p, sizeof(p));
}
file.close();
temp.close();
gotoxy(15,25);
cout<<"record deleted:";
getch();
}
else
{
clrscr();
file.close();
}
clrscr();
student();
}
//********************* FEE MENU COADING *****************************
void fee::fee_menu()
{
clrscr();
gotoxy(16,2);
cout<<"FEE RECORD MENU OF COLLEGE SYSTEM";
34
gotoxy(4,3);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(20,6);
cout<<"1.ADDMISSION FEE";
gotoxy(20,8);
cout<<"2.RECEIVED FEE";
gotoxy(20,10);
cout<<"3.MODIFY FEE RECORD";
gotoxy(20,12);
cout<<"4.LIST OF FEE RECORD";
gotoxy(20,14);
cout<<"5.DELETE FEE RECORD";
gotoxy(4,18);
cout<<"*****************************************************************
*****";
gotoxy(20,24);
cout<<"<0>FOR RETURN";
gotoxy(30,22);
cout<<"ENTER YOUR CHOICE:";
char ch;
ch=getch();
switch(ch)
{
case '0':
break;
case '1':
admission();
break;
case '2':
received();
break;
case '3':
modify_fee();
break;
case '4':
list_fee();
break;
case '5':
del_fee();
break;
}}
int fee::code()
{
int count=0;
file.open("fe.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&f,sizeof(f)))
35
{
count=f.roll;
}
count++;
file.close();
return count;
}
void fee::admission()
{
clrscr();
gotoxy(16,2);
cout<<"ADMISSION FORM";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(8,5);
cout<<"STUDENT ROLL:-";
f.roll=code();
cout<<f.roll;
gotoxy(8,8);
cout<<"STUDENT NAME:-";
gets(f.name);
gotoxy(8,10);
cout<<"FATHER NAME:-";
gets(f.fname);
gotoxy(8,12);
cout<<"DATE OF BIRTH:-";
cin>>f.dob;
gotoxy(8,14);
cout<<"ADDRESS:-";
cin>>f.address;
gotoxy(8,16);
cout<<"COURSE NAME:-";
cin>>f.course;
gotoxy(8,18);
cout<<"DURATION:-";
cin>>f.duration;
gotoxy(8,19);
cout<<"TOTAL FEE:-";
cin>>f.total_fee;
gotoxy(8,21);
cout<<"PAID FEE:-";
cin>>f.paid_fee;
gotoxy(8,23);
cout<<"DUES FEE:-";
f.dues_fee=f.total_fee-f.paid_fee;
cout<<f.dues_fee;
36
getch();
file.open("fe.dat",ios::app|ios::out);
file.seekp(0l,ios::end);
file.write((char *)&f,sizeof(f));
file.close();
clrscr();
fee_menu();
}
void fee::received()
{
int count=0;
int no;
long int pos;
clrscr();
gotoxy(16,2);
cout<<"RECEIVED FEE";
gotoxy(4,3);
cout<<"*****************************************************************
*******";
file.open("fe.dat",ios::in|ios::out);
file.seekg(0L,ios::beg);
gotoxy(8,8);
cout<<"STUDENT ROLL:-";
cin>>no;
while(file.read((char *)&f,sizeof(f)))
{
if(no==f.roll)
{
gotoxy(8,10);
cout<<"STUDENT NAME:-";
cout<<f.name;
gotoxy(8,12);
cout<<"COURSE NAME:-";
cout<<f.course;
gotoxy(8,14);
cout<<"DURATION:-";
cout<<f.duration;
gotoxy(8,16);
cout<<"RECEIVED FEE:-";
cin>>f.paid_fee;
gotoxy(8,18);
cout<<"DUES FEE:-";
f.dues_fee=f.dues_fee - f.paid_fee;
cout<<f.dues_fee;
getch();
pos=count*sizeof(f);
file.seekp(pos,ios::beg);
file.write((char *)&f,sizeof(f));
file.close();
37
}
count++;
}
clrscr();
fee_menu();
}
void fee::list_fee()
{
int i=7;
clrscr();
gotoxy(16,2);
cout<<"LIST OF FEE RECORD";
gotoxy(2,3);
cout<<"*****************************************************************
***********";
gotoxy(5,5);
cout<<"ROLL STUDENT NAME COURSE NAME PAID FEE DUES
FEE";
gotoxy(2,6);
cout<<"*****************************************************************
***********";
file.open("fe.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&f,sizeof(f)))
{
gotoxy(5,i);
cout<<f.roll;
gotoxy(12,i);
cout<<f.name;
gotoxy(45,i);
cout<<f.course;
gotoxy(57,i);
cout<<f.total_fee;
gotoxy(68,i);
cout<<f.dues_fee;
i++;
if(i==25)
{
i=7;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,2);
cout<<"LIST OF FEE RECORD";
gotoxy(2,3);
38
cout<<"*****************************************************************
**********";
gotoxy(5,5);
cout<<"ROLL STUDENT NAME COURSE NAME PAID FEE DUES
FEE";
gotoxy(2,6);
cout<<"*****************************************************************
***********";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
file.close();
getch();
clrscr();
fee_menu();
}
void fee::modify_fee()
{
int count=0;
int no;
long int pos;
file.open("fe.dat",ios::in|ios::out);
file.seekg(0L,ios::beg);
clrscr();
gotoxy(16,2);
cout<<"MODIFY FEE";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(8,5);
cout<<"STUDENT ROLL:-";
cin>>no;
while(file.read((char *)&f,sizeof(f)))
{
if(no==f.roll)
{
gotoxy(8,8);
cout<<"STUDENT NAME:-";
gets(f.name);
gotoxy(8,10);
cout<<"FATHER NAME:-";
gets(f.fname);
gotoxy(8,12);
cout<<"DATE OF BIRTH:-";
cin>>f.dob;
gotoxy(8,14);
cout<<"ADDRESS:-";
cin>>f.address;
39
gotoxy(8,16);
cout<<"COURSE NAME:-";
cin>>f.course;
gotoxy(8,18);
cout<<"DURATION:-";
cin>>f.duration;
gotoxy(8,19);
cout<<"TOTAL FEE:-";
cin>>f.total_fee;
gotoxy(8,21);
cout<<"PAID FEE:-";
cin>>f.paid_fee;
gotoxy(8,23);
cout<<"DUES FEE:-";
f.dues_fee=f.total_fee-f.paid_fee;
cout<<f.dues_fee;
getch();
pos=count*sizeof(f);
file.seekp(pos,ios::beg);
file.write((char *)&f,sizeof(f));
file.close();
}
count++;
}
clrscr();
fee_menu();
}
void fee::del_fee()
{
int no;
clrscr();
gotoxy(16,2);
cout<<"DELETE FEE RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"ROLL NUMBER:-";
cin>>no;
gotoxy(15,24);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
40
fstream temp;
file.open("fe.dat", ios::in);
temp.open("TEMP.dat", ios::out);
file.seekg(0, ios::beg);
while (!file.eof())
{
file.read((char *)&f, sizeof(f));
if (file.eof())
break;
if (f.roll != no)
{
temp.write((char *)&f, sizeof(f));
}
}
file.close();
temp.close();
file.open("fe.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&f, sizeof(f));
if (temp.eof())
break;
if (f.roll!= no)
file.write((char *)&f, sizeof(f));
}
file.close();
temp.close();
gotoxy(15,25);
cout<<"record deleted:";
getch();
}
else
{
clrscr();
file.close();
}
clrscr();
fee_menu();
}
//********************** exam coading *****************************
void exam::examination()
41
{
char ch;
do
{
clrscr();
gotoxy(16,2);
cout<<"EXAMINATION MENU OF COLLEGE SYSTEM";
gotoxy(4,3);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(20,6);
cout<<"1.ADD COURSE EXAM";
gotoxy(20,8);
cout<<"2.LIST OF COURSE EXAM & DATE";
gotoxy(20,10);
cout<<"3.MODIFY COURSE EXAM";
gotoxy(20,12);
cout<<"4.DELETE COURSE EXAM";
gotoxy(4,18);
cout<<"*****************************************************************
*****";
gotoxy(20,24);
cout<<"<0>FOR RETURN";
gotoxy(30,22);
cout<<"ENTER YOUR CHOICE:";
ch=getch();
switch(ch)
{
case '0':
break;
case '1':
add_exam_term();
break;
case '2':
list_exam_term();
break;
case '3':
modify_exam_term();
break;
case '4':
del_exam_term();
break;
}
}while(!ch);
}
int exam::code()
{
int count=0;
42
f.open("exam.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
count=p.course_code;
}
count++;
f.close();
return count;
}
void exam::add_exam_term()
{
clrscr();
gotoxy(16,2);
cout<<"ADD EXAMINATION TERM";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,5);
cout<<"Date:-";
gotoxy(5,7);
cout<<"EXAM CODE:-";
p.course_code=code();
cout<<p.course_code;
gotoxy(5,9);
cout<<"COURSE NAME:-";
gets(p.course_name);
gotoxy(5,11);
cout<<"DURATION:-";
cin>>p.duration;
gotoxy(5,13);
cout<<"EXAM TERM:-";
gets(p.exam_term);
gotoxy(5,15);
cout<<"EXAM DATE:-";
gets(p.exam_date);
f.open("exam.dat",ios::app|ios::out);
f.seekp(0L,ios::end);
f.write((char *)&p,sizeof(p));
f.close();
clrscr();
examination();
}
void exam::modify_exam_term()
{
clrscr();
int count=0;
43
int no;
long int pos;
f.open("exam.dat",ios::in|ios::out);
f.seekg(0L,ios::beg);
gotoxy(16,2);
cout<<"MODIFY EXAMINATION TERM";
gotoxy(4,3);
cout<<"*****************************************************************
******";
gotoxy(5,7);
cout<<"EXAM CODE:-";
cin>>no;
while(f.read((char *)&p,sizeof(p)))
{
if(no==p.course_code)
{
gotoxy(5,5);
cout<<"Date:-";
gotoxy(5,9);
cout<<"COURSE NAME:-";
gets(p.course_name);
gotoxy(5,11);
cout<<"DURATION:-";
cin>>p.duration;
gotoxy(5,13);
cout<<"EXAM TERM:-";
gets(p.exam_term);
gotoxy(5,15);
cout<<"EXAM DATE:-";
gets(p.exam_date);
pos=count*sizeof(p);
f.seekp(pos,ios::beg);
f.write((char *)&p,sizeof(p));
f.close();
}
count++;
}
clrscr();
examination();
}
void exam::list_exam_term()
{
int i=7;
clrscr();
gotoxy(16,3);
cout<<"LIST OF EXAMINATION";
gotoxy(4,4);
44
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EXAM CODE COURSE NAME DURATION EXAM TERM EXAM
DATE ";
f.open("exam.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
gotoxy(7,i);
cout<<p.course_code;
gotoxy(20,i);
cout<<p.course_name;
gotoxy(35,i);
cout<<p.duration;
gotoxy(48,i);
cout<<p.exam_term;
gotoxy(61,i);
cout<<p.exam_date;
i++;
if(i==25)
{
i=7;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,3);
cout<<"LIST OF EXAMINATION";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EXAM CODE COURSE NAME DURATION EXAM TERM EXAM
DATE ";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
f.close();
getch();
clrscr();
examination();
}
void exam::del_exam_term()
{
int no;
45
clrscr();
gotoxy(16,2);
cout<<"DELETE EXAMINATION TERM";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"EXAM CODE:-";
cin>>no;
gotoxy(15,24);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
fstream temp;
f.open("exam.dat", ios::in);
temp.open("TEMP.dat", ios::out);
f.seekg(0, ios::beg);
while (!f.eof())
{
f.read((char *)&p, sizeof(p));
if (f.eof())
break;
if (p.course_code != no)
{
temp.write((char *)&p, sizeof(p));
}
}
f.close();
temp.close();
f.open("exam.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&p, sizeof(p));
if (temp.eof())
break;
if (p.course_code!= no)
f.write((char *)&p, sizeof(p));
}
f.close();
temp.close();
gotoxy(15,25);
cout<<"record deleted:";
getch();
}
else
46
{
clrscr();
f.close();
}
clrscr();
examination();
}
//******************** EMPLOYEE MENU COADING
***************************
void emp::employee()
{
clrscr();
gotoxy(16,3);
cout<<"EMPLOYEE SYSTEMN";
gotoxy(4,4);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(15,6);
cout<<"1.EMPLOYEE RECORD";
gotoxy(15,8);
cout<<"2.EMPLOYEE SALARY ";
gotoxy(4,10);
cout<<"*****************************************************************
****";
gotoxy(20,24);
cout<<"<0>FOR RETURN BACK:";
gotoxy(20,20);
cout<<"enter your choice:";
ch=getch();
clrscr();
if(ch=='0'||ch=='1'||ch=='2')
{
switch(ch)
{
case '0':
break;
case '1':
{
47
employee_record();
break;
}
case '2':
{
salary();
break;
}
}
}
else
{
gotoxy(25,10);
cout<<"invalid option:";
sleep(2);
clrscr();
employee();
}}
void emp::employee_record()
{
gotoxy(16,3);
cout<<"EMPLOYEE SYSTEMN";
gotoxy(4,4);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(15,6);
cout<<"1.ADD EMPLOYEE ";
gotoxy(15,8);
cout<<"2.MODIFY EMPLOYEE ";
gotoxy(15,11);
cout<<"3.LIST OF EMPLOYEE";
gotoxy(15,14);
cout<<"4.VIEW INDIVIDUAL EMPLOYEE";
gotoxy(15,17);
cout<<"5.DELETE EMPLOYEE";
gotoxy(4,19);
cout<<"*****************************************************************
****";
gotoxy(20,24);
cout<<"<0>for exit program:";
gotoxy(20,20);
cout<<"enter your choice:";
48
ch=getch();
clrscr();
switch(ch)
{
case '0':
{
employee();
break;
}
case '1':
{
add_employee();
break;
}
case '2':
{
modify_employee();
break;
}
case '3':
{
list_employee();
break;
}
case '4':
{
indi_employee();
break;
case '5':
{
del_employee();
break;
}
}
}}
int emp::code()
{
int count=0;
f.open("em.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
count=p.e_no;
}
count++;
f.close();
return count;
49
}
void emp::add_employee()
{
do
{
clrscr();
gotoxy(16,3);
cout<<"ADD NEW EMPLOYEE";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EMPLOYEE NUMBER:";
p.e_no=code();
cout<<p.e_no;
gotoxy(5,7);
cout<<"NAME:";
gets(p.e_name);
gotoxy(5,9);
cout<<"DOB:";
gets(p.dob);
gotoxy(5,11);
cout<<"CITY:";
gets(p.city);
gotoxy(5,13);
cout<<"DISTRICT:";
gets(p.dist);
gotoxy(5,15);
cout<<"STATE:";
gets(p.state);
gotoxy(5,17);
cout<<"ZIP:";
gets(p.zip);
gotoxy(5,19);
cout<<"DESIGNATION:";
gets(p.desi);
gotoxy(5,21);
cout<<"DATE OF JOIN:";
gets(p.doj);
gotoxy(5,23);
cout<<"DEPARTMENT:";
gets(p.dept);
gotoxy(30,21);
cout<<"SALARY:";
cin>>p.bsal;
gotoxy(30,23);
cout<<"GRADE:";
cin>>p.g;
50
f.open("em.dat",ios::app|ios::out);
f.seekg(0L,ios::end);
f.write((char *)&p,sizeof(p));
f.close();
gotoxy(20,25);
cout<<"more(y/n):";ch=getch();
}while(ch=='y');
clrscr();
employee_record();
}
void emp::modify_employee()
{
int count=0;
int no;
long int pos;
f.open("em.dat",ios::in|ios::out);
f.seekg(0L,ios::beg);
clrscr();
gotoxy(16,3);
cout<<"MODIFY EMPLOYEE";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EMPLOYEE NUMBER:";
cin>>no;
while(f.read((char *)&p,sizeof(p)))
{
if(no==p.e_no)
{
gotoxy(5,7);
cout<<"NAME:";
gets(p.e_name);
gotoxy(5,9);
cout<<"DOB:";
gets(p.dob);
gotoxy(5,11);
cout<<"CITY:";
gets(p.city);
gotoxy(5,13);
cout<<"DISTRICT:";
gets(p.dist);
gotoxy(5,15);
cout<<"STATE:";
gets(p.state);
gotoxy(5,17);
51
cout<<"ZIP:";
gets(p.zip);
gotoxy(5,19);
cout<<"DESIGNATION:";
gets(p.desi);
gotoxy(5,21);
cout<<"DATE OF JOIN:";
gets(p.doj);
gotoxy(5,23);
cout<<"DEPARTMENT:";
gets(p.dept);
gotoxy(30,21);
cout<<"SALARY:";
cin>>p.bsal;
gotoxy(30,23);
cout<<"GRADE:";
cin>>p.g;
pos=count*sizeof(p);
f.seekp(pos,ios::beg);
f.write((char *)&p,sizeof(p));
f.close();
}
count++;
}
clrscr();
employee_record();
}
void emp::list_employee()
{
int i=8;
clrscr();
gotoxy(16,3);
cout<<"ADD NEW EMPLOYEE";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EMP CODE EMP NAME DESIGATION SALARY";
gotoxy(5,6);
cout<<"*****************************************************************
********";
f.open("em.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
gotoxy(8,i);
cout<<p.e_no;
gotoxy(17,i);
52
cout<<p.e_name;
gotoxy(40,i);
cout<<p.desi;
gotoxy(57,i);
cout<<p.bsal;
i++;
if(i==24)
{
i=8;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,3);
cout<<"ADD NEW EMPLOYEE";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EMP CODE EMP NAME DESIGATION SALARY";
gotoxy(5,6);
cout<<"*****************************************************************
********";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
f.close();
getch();
clrscr();
employee_record();
}
void emp::indi_employee()
{
int count=0;
int no;
long int pos;
clrscr();
f.open("em.dat",ios::in);
f.seekg(0L,ios::beg);
clrscr();
gotoxy(16,3);
cout<<"INDIVIDUAL LIST OF EMPLOYEE";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"EMPLOYEE NUMBER:";
53
cin>>no;
while(f.read((char *)&p,sizeof(p)))
{
if(no==p.e_no)
{
gotoxy(5,7);
cout<<"NAME:";
cout<<p.e_name;
gotoxy(5,9);
cout<<"DOB:";
cout<<p.dob;
gotoxy(5,11);
cout<<"CITY:";
cout<<p.city;
gotoxy(5,13);
cout<<"DISTRICT:";
cout<<p.dist;
gotoxy(5,15);
cout<<"STATE:";
cout<<p.state;
gotoxy(5,17);
cout<<"ZIP:";
cout<<p.zip;
gotoxy(5,19);
cout<<"DESIGNATION:";
cout<<p.desi;
gotoxy(5,21);
cout<<"DATE OF JOIN:";
cout<<p.doj;
gotoxy(5,23);
cout<<"DEPARTMENT:";
cout<<p.dept;
gotoxy(30,21);
cout<<"SALARY:";
cout<<p.bsal;
gotoxy(30,23);
cout<<"GRADE:";
cout<<p.g;
}
count++;
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
f.close();
getch();
clrscr();
employee_record();
}
54
void emp::del_employee()
{
int no;
clrscr();
gotoxy(16,2);
cout<<"DELETE COURSE RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"COURSE CODE:-";
cin>>no;
gotoxy(15,24);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
fstream temp;
f.open("em.dat", ios::in);
temp.open("TEMP.dat", ios::out);
f.seekg(0, ios::beg);
while (!f.eof())
{
f.read((char *)&p, sizeof(p));
if (f.eof())
break;
if (p.e_no != no)
{
temp.write((char *)&p, sizeof(p));
}
}
f.close();
temp.close();
f.open("em.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&p, sizeof(p));
if (temp.eof())
break;
if (p.e_no!= no)
f.write((char *)&p, sizeof(p));
}
f.close();
temp.close();
55
gotoxy(15,25);
cout<<"record deleted:";
getch();
}
else
{
clrscr();
f.close();
}
clrscr();
employee_record();
}
void emp::salary()
{
clrscr();
gotoxy(16,3);
cout<<"EMPLOYEE SALARY";
gotoxy(4,4);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(15,6);
cout<<"1.SALARY SLIP";
gotoxy(15,8);
cout<<"2.CHANE SALARY ";
gotoxy(4,10);
cout<<"*****************************************************************
****";
gotoxy(20,24);
cout<<"<0>FOR RETURN BACK:";
gotoxy(20,20);
cout<<"enter your choice:";
ch=getch();
clrscr();
switch(ch)
{
case '0':
{
employee();
break;
}
case '1':
{
salary_slip();
break;
}
case '2':
56
{
change_salary();
break;
}
}
}
void emp::salary_slip()
{
int i=8;
clrscr();
gotoxy(16,2);
cout<<"SALARY SLIP";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"EMP CODE EMP NAME DESIGATION SALARY";
gotoxy(4,6);
cout<<"*****************************************************************
********";
f.open("em.dat",ios::in);
f.seekg(0L,ios::beg);
while(f.read((char *)&p,sizeof(p)))
{
gotoxy(8,i);
cout<<p.e_no;
gotoxy(17,i);
cout<<p.e_name;
gotoxy(40,i);
cout<<p.desi;
p.ta=p.bsal*5/100;
p.da=p.bsal*10/100;
p.hra=p.bsal*12/100;
p.pf=p.bsal*5/100;
p.tsal=(p.bsal+p.ta+p.da+p.hra)-p.pf;
gotoxy(57,i);
cout<<p.tsal;
i++;
if(i==24)
{
i=8;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,2);
cout<<"SALARY SLIP";
gotoxy(4,4);
57
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"EMP CODE EMP NAME DESIGATION SALARY";
gotoxy(4,6);
cout<<"*****************************************************************
********";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
f.close();
getch();
clrscr();
salary();
}
void emp::change_salary()
{
int count=0;
int no;
long int pos;
gotoxy(16,2);
cout<<"MODIFY SALARY ";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
f.open("em.dat",ios::in|ios::out);
f.seekg(0L,ios::beg);
gotoxy(8,6);
cout<<"EMPLOYEE NUMBER:";
cin>>no;
while(f.read((char *)&p,sizeof(p)))
{
if(no==p.e_no)
{
gotoxy(8,9);
cout<<"SALARY:";
cin>>p.bsal;
pos=count*sizeof(p);
f.seekp(pos,ios::beg);
f.write((char *)&p,sizeof(p));
f.close();
}
count++;
}
clrscr();
salary();
}
58
//*************************** MENU6 COADING
*****************************
void library::library_menu()
{
clrscr();
gotoxy(16,3);
cout<<"LIBRARY SYSTEM";
gotoxy(4,4);
cout<<"*****************************************************************
******";
sysdate();
gotoxy(20,24);
cout<<"<0>for return";
gotoxy(15,6);
cout<<"1.BOOKS RECORD";
gotoxy(15,10);
cout<<"2.MEMBER RECORD";
gotoxy(15,14);
cout<<"3.BOOK ISSUE/RETURN";
gotoxy(4,18);
cout<<"*****************************************************************
********";
gotoxy(20,20);
cout<<"Enter your choice:";
ch=getch();
clrscr();
switch(ch)
{
case '0':
break;
case '1':
{
book_record();
break;
}
case '2':
{
member_record();
}
case '3':
{
book_issue_return();
}
}
59
}
void library::book_record()
{
gotoxy(16,3);
cout<<"BOOKS RECORD MENU";
gotoxy(4,4);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(15,6);
cout<<"1.ADD NEW BOOK RECORD";
gotoxy(15,8);
cout<<"2.MODIFY BOOK RECORD";
gotoxy(15,11);
cout<<"3.LIST OF BOOK RECORD";
gotoxy(15,14);
cout<<"4.DELETE BOOK RECORD";
gotoxy(4,18);
cout<<"*****************************************************************
******";
gotoxy(20,24);
cout<<"<0> for return:";
gotoxy(20,20);
cout<<"Enter your choice:";
ch=getch();
clrscr();
switch(ch)
{
case '0':
{
library();
break;
}
case '1':
{
add_book();
break;
}
case '2':
{
modify_book();
break;
}
case '3':
{
list_book();
break;
60
}
case '4':
{
delete_book();
break;
}
}
}
int library::bcode()
{
int count=0;
file.open("book.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&s,sizeof(s)))
{
count=s.book_no;
}
count++;
file.close();
return count;
}
void library::add_book()
{
clrscr();
gotoxy(16,3);
cout<<"ADD BOOKS RECORD MENU";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(8,7);
cout<<"BOOK NUMBER:-";
s.book_no=bcode();
cout<<s.book_no;
gotoxy(8,9);
cout<<"BOOK TITLE:-";
gets(s.book_title);
gotoxy(8,11);
cout<<"AURTHER NAME:-";
gets(s.aname);
gotoxy(8,13);
cout<<"PUBLISHER NAME:-";
gets(s.pname);
gotoxy(8,15);
cout<<"PRICE:-";
cin>>s.price;
gotoxy(8,17);
61
cout<<"NUMBER OF PAGE:-";
cin>>s.page_no;
gotoxy(8,19);
cout<<"SAVE(Y/N):-";
cout<<"s";
getch();
file.open("book.dat",ios::app|ios::out);
file.seekp(0L,ios::end);
file.write((char *)&s,sizeof(s));
file.close();
clrscr();
book_record();
}
void library::modify_book()
{
int count=0;
int no;
long int pos;
file.open("book.dat",ios::in|ios::out);
file.seekg(0L,ios::beg);
clrscr();
gotoxy(16,3);
cout<<"MODIFY BOOKS RECORD MENU";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(8,7);
cout<<"BOOK NUMBER:-";
cin>>no;
while(file.read((char *)&s,sizeof(s)))
{
if(no==s.book_no)
{
gotoxy(8,5);
cout<<"Date:-";
gotoxy(8,9);
cout<<"BOOK TITLE:-";
gets(s.book_title);
gotoxy(8,11);
cout<<"AURTHER NAME:-";
gets(s.aname);
gotoxy(8,13);
cout<<"PUBLISHER NAME:-";
gets(s.pname);
gotoxy(8,15);
cout<<"PRICE:-";
cin>>s.price;
gotoxy(8,17);
cout<<"NUMBER OF PAGE:-";
62
cin>>s.page_no;
gotoxy(8,19);
cout<<"SAVE(Y/N):-";
cout<<"s";
getch();
pos=count*sizeof(s);
file.seekp(pos,ios::beg);
file.write((char *)&s,sizeof( s));
file.close();
}
count++;
}
clrscr();
book_record();
}
void library::list_book()
{
int i=8;
clrscr();
gotoxy(16,3);
cout<<"LIST OF BOOKS";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"BOOK NO. BOOK NAME AURTHER NAME PUBLISHER NAME
PRICE PAGES";
gotoxy(4,6);
cout<<"*****************************************************************
*********";
file.open("book.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&s,sizeof(s)))
{
gotoxy(7,i);
cout<<s.book_no;
gotoxy(15,i);
cout<<s.book_title;
gotoxy(30,i);
cout<<s.aname;
gotoxy(45,i);
cout<<s.pname;
gotoxy(61,i);
cout<<s.price;
gotoxy(70,i);
cout<<s.page_no;
i++;
if(i==25)
{
i=9;
63
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,3);
cout<<"LIST OF BOOKS";
gotoxy(4,4);
cout<<"*****************************************************************
********";
gotoxy(5,5);
cout<<"BOOK NO. BOOK NAME AURTHER NAME PUBLISHER NAME
PRICE PAGES";
gotoxy(4,6);
cout<<"*****************************************************************
*********";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
file.close();
getch();
clrscr();
book_record();
}
void library::delete_book()
{
int no;
clrscr();
gotoxy(16,2);
cout<<"DELETE BOOK RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"BOOK NUMBER:-";
cin>>no;
gotoxy(15,20);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
fstream temp;
file.open("book.dat", ios::in);
temp.open("TEMP.dat", ios::out);
file.seekg(0, ios::beg);
while (!file.eof())
64
{
file.read((char *)&s, sizeof(s));
if (file.eof())
break;
if (s.book_no != no)
{
temp.write((char *)&s, sizeof(s));
}
}
file.close();
temp.close();
file.open("book.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&s, sizeof(s));
if (temp.eof())
break;
if (s.book_no!= no)
file.write((char *)&s, sizeof(s));
}
file.close();
temp.close();
gotoxy(15,22);
cout<<"Record deleted:";
getch();
}
else
{
clrscr();
file.close();
}
clrscr();
book_record();
}
void library::member_record()
{
clrscr();
gotoxy(16,3);
cout<<"MEMBER RECORD MENU";
gotoxy(4,4);
65
cout<<"*****************************************************************
********";
sysdate();
gotoxy(15,8);
cout<<"1.ADD NEW MEMBER RECORD";
gotoxy(15,11);
cout<<"2.MODIFY MEMBER RECORD";
gotoxy(15,14);
cout<<"3.LIST OF MEMBER RECORD";
gotoxy(15,17);
cout<<"4.DELETE MEMBER RECORD";
gotoxy(4,19);
cout<<"*****************************************************************
********";
gotoxy(20,25);
cout<<"<0> for return:";
gotoxy(20,20);
cout<<"Enter your choice:";
ch=getch();
clrscr();
switch(ch)
{
case '0':
{
library();
break;
}
case '1':
{
add_member();
break;
}
case '2':
{
modify_member();
break;
}
case '3':
{
list_member();
break;
}
case '4':
{
delete_member();
break;
}
}
}
66
int library::mcode()
{
int count=0;
file.open("mem.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&s,sizeof(s)))
{
count=s.mem_no;
}
count++;
file.close();
return count;
}
void library::add_member()
{
clrscr();
gotoxy(16,3);
cout<<"ADD NEW MEMBER";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(8,7);
cout<<"MEMBER NUMBER:-";
s.mem_no=mcode();
cout<<s.mem_no;
gotoxy(8,9);
cout<<"MEMBER NAME:-";
gets(s.mem_name);
gotoxy(8,11);
cout<<"ROLL NUMBER:-";
cin>>s.rno;
gotoxy(8,13);
cout<<"CLASS NAME:-";
gets(s.class_name);
gotoxy(8,15);
cout<<"ADDRESS:-";
gets(s.add);
gotoxy(8,17);
cout<<"MEMBERSHIP FEE:-";
cin>>s.mem_fee;
gotoxy(8,19);
cout<<"SAVE(Y/N):-";
cout<<"s";
getch();
67
file.open("mem.dat",ios::app|ios::out);
file.seekp(0L,ios::end);
file.write((char *)&s,sizeof(s));
file.close();
clrscr();
member_record();
}
void library::modify_member()
{
int count=0;
int no;
long int pos;
file.open("mem.dat",ios::in|ios::out);
file.seekg(0L,ios::beg);
clrscr();
gotoxy(16,3);
cout<<"MODIFY MEMBER RECORD";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(8,7);
cout<<"MEMBER NUMBER:-";
cin>>no;
while(file.read((char *)&s,sizeof(s)))
{
if(no==s.mem_no)
{
gotoxy(8,5);
cout<<"Date:-";
gotoxy(8,9);
cout<<"MEMBER NAME:-";
gets(s.mem_name);
gotoxy(8,11);
cout<<"ROLL NUMBER:-";
cin>>s.rno;
gotoxy(8,13);
cout<<"CLASS NAME:-";
gets(s.class_name);
gotoxy(8,15);
cout<<"ADDRESS:-";
gets(s.add);
gotoxy(8,17);
cout<<"MEMBERSHIP FEE:-";
cin>>s.mem_fee;
gotoxy(8,19);
cout<<"SAVE(Y/N):-";
cout<<"s";
68
getch();
pos=count*sizeof(s);
file.seekp(pos,ios::beg);
file.write((char *)&s,sizeof(s));
file.close();
}
count++;
}
clrscr();
member_record();
}
void library::list_member()
{
int i=8;
clrscr();
gotoxy(16,3);
cout<<"LIST OF MEMBER";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"MEMBER NO. MEMBER NAME ROLL NO. CLASS FEE";
gotoxy(4,6);
cout<<"*****************************************************************
*******";
file.open("mem.dat",ios::in);
file.seekp(0l,ios::beg);
while(file.read((char *)&s,sizeof(s)))
{
gotoxy(8,i);
cout<<s.mem_no;
gotoxy(18,i);
cout<<s.mem_name;
gotoxy(42,i);
cout<<s.rno;
gotoxy(55,i);
cout<<s.class_name;
gotoxy(65,i);
cout<<s.mem_fee;
i++;
if(i==25)
{
i=8;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,3);
cout<<"LIST OF MEMBER";
gotoxy(4,4);
69
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"MEMBER NO. MEMBER NAME ROLL NO. CLASS FEE";
gotoxy(4,6);
cout<<"*****************************************************************
*******";
}
}
gotoxy(20,24);
cout<<"PRESS ESC TO BACK";
file.close();
getch();
clrscr();
member_record();
}
void library::delete_member()
{
int no;
clrscr();
gotoxy(16,2);
cout<<"DELETE MEMBER RECORD";
gotoxy(4,3);
cout<<"*****************************************************************
****";
fstream out;
gotoxy(5,5);
cout<<"MEMBERSHIP NUMBER:-";
cin>>no;
gotoxy(15,20);
cout<<"DELETE(Y/N):-";
char c;
cin>>c;
if(c=='y')
{
fstream temp;
file.open("mem.dat", ios::in);
temp.open("TEMP.dat", ios::out);
file.seekg(0, ios::beg);
while (!file.eof())
{
file.read((char *)&s, sizeof(s));
if (file.eof())
break;
if (s.mem_no != no)
{
temp.write((char *)&s, sizeof(s));
70
}
}
file.close();
temp.close();
file.open("mem.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&s, sizeof(s));
if (temp.eof())
break;
if (s.mem_no!= no)
file.write((char *)&s, sizeof(s));
}
file.close();
temp.close();
gotoxy(15,25);
cout<<"record deleted:";
getch();
}
else
{
clrscr();
file.close();
}
clrscr();
member_record();
}
void library::book_issue_return()
{
clrscr();
gotoxy(16,3);
cout<<"BOOKS ISSUE RETURN";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
sysdate();
gotoxy(15,8);
cout<<"1.BOOK ISSUE";
gotoxy(15,10);
cout<<"2.BOOK RETURN";
gotoxy(15,12);
cout<<"3.LIST OF ISSUED BOOK";
gotoxy(15,14);
71
cout<<"4.LIST OF RETURN BOOK";
gotoxy(4,18);
cout<<"*****************************************************************
*******";
gotoxy(20,24);
cout<<"<0>FOR RETURN";
gotoxy(20,20);
cout<<"Enter your choice:";
ch=getch();
clrscr();
switch(ch)
{
case '0':
library();
break;
case '1':
{
book_issue();
break;
}
case '2':
{
book_return();
break;
}
case '3':
{
list_issue_book();
break;
}
case '4':
list_return_book();
}
}
void library::book_issue()
{
a:
clrscr();
char c;
gotoxy(16,3);
cout<<"BOOK ISSUE ";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
ifstream f1;
f1.open("book.dat",ios::in);
f1.seekg(0L,ios::beg);
gotoxy(8,5);
72
cout<<"Date:-";
gotoxy(8,7);
cout<<"BOOK NUMBER:-";
int no;
cin>>no;
int flag=found(no);
if (flag ==1)
{
goto a;
}
while(f1.read((char *)&s,sizeof(s)))
{
if(no==s.book_no)
{
s.book_no=no;
gotoxy(8,9);
cout<<"BOOK TITLE:-";
cout<<s.book_title;
gotoxy(8,11);
cout<<"AURTHER NAME:-";
cout<<s.aname;
gotoxy(8,13);
cout<<"PUBLISHER NAME:-";
cout<<s.pname;
gotoxy(8,15);
cout<<"PRICE:-";
cout<<s.price;
gotoxy(8,17);
cout<<"NUMBER OF PAGE:-";
cout<<s.page_no;
gotoxy(8,19);
cout<<"MEMBERSHIP NUMBER:-";
int m_no;
cin>>s.mem_no;
gotoxy(8,21);
cout<<"ROLL:-";
cin>>s.roll;
gotoxy(8,23);
cout<<"CLASS:-";
cin>>s.clas;
gotoxy(8,25);
cout<<"SAVE(Y/N):-";
cin>>c;
break;
}
73
}
if(c=='y')
{
file.open("is.dat",ios::app|ios::out);
file.seekp(0L,ios::end);
file.write((char *)&s,sizeof(s));
file.close();
f1.close();
}
else
{
clrscr();
file.close();
f1.close();
}
clrscr();
book_issue_return();
}
int library::found(int a)
{
fstream f1;
int flag=0;
f1.open("is.dat",ios::in);
file.seekg(0L,ios::beg);
while(f1.read((char *)&s,sizeof(s)))
{
if(a==0)
break;
if(a==s.book_no)
{
gotoxy(20,24);
flag=1;
cout<<"book are allready issued";
gotoxy(20,25);
cout<<"please enter '0' in book number to return back:";
getch();
}
}
f1.close();
return(flag);
}
void library::book_return()
{
clrscr();
int m_no;
74
int no;
gotoxy(16,3);
cout<<"BOOK RETURN";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
file.open("is.dat",ios::in);
file.seekg(0L,ios::beg);
gotoxy(8,5);
cout<<"Date:-";
gotoxy(8,6);
cout<<"MEMBERSHIP NUMBER:-";
cin>>m_no;
gotoxy(8,8);
cout<<"BOOK NUMBER:-";
cin>>no;
while(file.read((char *)&s,sizeof(s)))
{
if(no==s.book_no && m_no==s.mem_no)
{
gotoxy(8,9);
cout<<"BOOK TITLE:-";
cout<<s.book_title;
gotoxy(8,11);
cout<<"AURTHER NAME:-";
cout<<s.aname;
gotoxy(8,13);
cout<<"PUBLISHER NAME:-";
cout<<s.pname;
gotoxy(8,15);
cout<<"PRICE:-";
cout<<s.price;
gotoxy(8,17);
cout<<"NUMBER OF PAGE:-";
cout<<s.page_no;
gotoxy(8,21);
cout<<"ROLL:-";
cout<<s.roll;
gotoxy(8,23);
cout<<"CLASS:-";
cout<<s.clas;
}
}
file.close();
gotoxy(15,24);
cout<<"RETURN(Y/N):-";
char c;
cin>>c;
if(c=='y')
75
{
fstream temp;
file.open("is.dat", ios::in);
temp.open("TEMP.dat", ios::out);
file.seekg(0, ios::beg);
while (!file.eof())
{
file.read((char *)&s, sizeof(s));
if (file.eof())
break;
if (s.book_no != no)
{
temp.write((char *)&s, sizeof(s));
}
}
file.close();
temp.close();
file.open("is.dat", ios::out);
temp.open("TEMP.dat", ios::in);
temp.seekg(0, ios::beg);
while (!temp.eof())
{
temp.read((char *)&s, sizeof(s));
if (temp.eof())
break;
if (s.book_no != no)
file.write((char *)&s, sizeof(s));
}
file.close();
temp.close();
gotoxy(15,25);
cout<<"record deleted:";
getch();
clrscr();
book_issue_return();
}
else
{
clrscr();
file.close();
}
remove("temp.dat");
}
void library::list_issue_book()
{
int i=8;
clrscr();
gotoxy(16,3);
cout<<"LIST OF ISSUED BOOK";
76
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP
NUMBER";
gotoxy(4,6);
cout<<"*****************************************************************
********";
file.open("is.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&s,sizeof(s)))
{
gotoxy(7,i);
cout<<s.book_no;
gotoxy(15,i);
cout<<s.book_title;
gotoxy(30,i);
cout<<s.aname;
gotoxy(70,i);
cout<<s.mem_no;
i++;
if(i==25)
{
i=8;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,3);
cout<<"LIST OF RETURN BOOK";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP
NUMBER";
gotoxy(4,6);
cout<<"*****************************************************************
********";
}
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
file.close();
getch();
clrscr();
book_issue_return();
}
77
void library::list_return_book()
{
int i=8;
clrscr();
gotoxy(16,3);
cout<<"BOOKS ISSUE RETURN";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP
NUMBER";
gotoxy(4,6);
cout<<"*****************************************************************
********";
file.open("return.dat",ios::in);
file.seekg(0L,ios::beg);
while(file.read((char *)&s,sizeof(s)))
{
gotoxy(7,i);
cout<<s.book_no;
gotoxy(15,i);
cout<<s.book_title;
gotoxy(30,i);
cout<<s.aname;
gotoxy(70,i);
cout<<s.mem_no;
i++;
if(i==25)
{
i=8;
gotoxy(20,24);
cout<<"PRESS ANY KEY TO CONTINUE";
getch();
clrscr();
gotoxy(16,3);
cout<<"BOOKS ISSUE RETURN";
gotoxy(4,4);
cout<<"*****************************************************************
*******";
gotoxy(5,5);
cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP
NUMBER";
gotoxy(4,6);
cout<<"*****************************************************************
********";
}
78
}
gotoxy(20,24);
cout<<"PRESS ANY KEY TO BACK";
file.close();
getch();
clrscr();
book_issue_return();
}
//********************** main menu ******************************
class main_menu:library
{
public:
main_menu()
{
date d;
getdate(&d);
int year=d.da_year;
if(year>=2019)
{
cout<<"some files are missing or deleted in your software please check:";
cout<<endl<<"press any key:";
getch();
exit(0);
}
}
void representation();
void list()
{
char ch;
do
{
clrscr();
gotoxy(16,2);
cout<<"MAIN MENU OF COLLEGE SYSTEM";
gotoxy(4,3);
cout<<"*****************************************************************
*****";
sysdate();
gotoxy(20,6);
cout<<"1.COURSE LIST";
gotoxy(20,8);
cout<<"2.STUDENT LIST";
gotoxy(20,10);
cout<<"3.FEE RECORD";
gotoxy(20,12);
79
cout<<"4.EXAMINATION DEPARTMENT";
gotoxy(20,14);
cout<<"5.EMPLOYEE RECORD";
gotoxy(20,16);
cout<<"6.LIBRAARY SYSTEM";
gotoxy(4,19);
cout<<"*****************************************************************
*****";
gotoxy(20,24);
cout<<"<0>FOR EXIT PROGRAM";
gotoxy(30,22);
cout<<"ENTER YOUR CHOICE:";
ch=getch();
switch(ch)
{
case '0':
exit(0);
case '1':
course_menu();
break;
case '2':
student_menu();
break;
case '3':
fee_menu();
break;
case '4':
examination();
break;
case '5':
employee();
break;
case '6':
library_menu();
break;
}
}while(ch);
}
};
void main_menu::representation()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"../bgi");
int l=getmaxx()/2-10,t=getmaxy()/2-5,r=getmaxx()/2+10,b=getmaxy()/2+5;
while(l<=625 && b<=470)
{
80
cleardevice(); setfillstyle(8,4); bar(l-10,t-8,r+10,b+8);
setfillstyle(8,1); bar(l,t,r,b); delay(100);
l-=16;t-=12;r+=16;b+=12;
}
setlinestyle(2,4,1);
// Designing of corner
setcolor(3); setfillstyle(8,3); pieslice(21,18,270,360,50);
setfillstyle(8,3); pieslice(617,18,270,180,50);
// outline boundry
setcolor(12); rectangle(l+5,t+2,r-5,b-2);
setcolor(11); rectangle(l+16,t+12,r-16,b-12);
sleep(1);
// sepretor
setfillstyle(10,3); bar(22,410,617,423); delay(200);
// designing of symbol
setcolor(11); setfillstyle(0,4); rectangle(80,150,200,300);
setcolor(11); setfillstyle(10,4); line(90,100,190,100);
setcolor(11); setfillstyle(10,4); line(90,100,50,170);
setcolor(11); setfillstyle(10,4); line(190,100,230,170);
setcolor(11); setfillstyle(10,4); line(50,170,230,170);
setcolor(11); setfillstyle(10,4); line(200,250,250,250);
setcolor(11); setfillstyle(10,4); line(250,250,250,250);
setcolor(11); setfillstyle(10,4); line(50,350,250,350);
setcolor(11); setfillstyle(10,4); line(50,250,80,250);
setcolor(11); setfillstyle(10,4); line(50,250,50,350);
setcolor(11); setfillstyle(10,4); line(250,250,250,350);
setcolor(11); setfillstyle(10,4); line(160,260,160,300);
setcolor(11); setfillstyle(10,4); line(135,260,135,300);
setcolor(11); setfillstyle(10,4); line(135,260,160,260);
setcolor(11); setfillstyle(10,4); line(170,80,170,100);
setcolor(11); setfillstyle(10,4); line(160,80,160,100);
setcolor(11); setfillstyle(10,4); line(150,80,175,80);
setcolor(11); setfillstyle(10,4); line(165,60,155,80);
setcolor(11); setfillstyle(10,4); line(165,60,180,80);
// Title
char* a[4]={"WELCOME","TO", "COLLAGE MANAGEMENT","SYSTEM"};
int x[4]={330,390,250,330};
int y[4]={210,250,280,310};
setcolor(11);
for(int i=0;i<4;i++)
{
settextstyle(1,0,5); sleep(1);
if(i==1||i==2)
settextstyle(1,0,4);
outtextxy(x[i],y[i],a[i]);
}
81
rectangle(21,409,617,424);
// processbar
setfillstyle(2,4);
for(i=21;i<598;i++)
{
bar(i,410,i+20,423); delay(20);
}
setcolor(11); rectangle(l+5,t+2,r-5,b-2);
setcolor(9); rectangle(l+16,t+12,r-16,b-12);
setcolor(4); pieslice(21,18,270,360,50);
pieslice(617,18,270,180,50);
// Status fonr_names
setcolor(11); settextstyle(1,0,1);
outtextxy(150,430,"<<--* PRESS ANY KEY FOR NEXT *--
>>"); getch();
// ending of welcome page
while(l<(getmaxx()/2-10) && b>(getmaxy()/2+5))
{
cleardevice(); setfillstyle(8,1); bar(l,t,r,b);
setfillstyle(8,4); bar(l+10,t+8,r-10,b-8); delay(100);
l+=16;t+=12;r-=16;b-=12;
}
delay(100);
cleardevice();
closegraph();
}
void password()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"../bgi");
cleardevice();
char uid[15],*pass;
setcolor(12); rectangle(10,8,628,470);
setcolor(11); rectangle(26,18,617,460); sleep(1);
settextstyle(1,0,4);
outtextxy(40,100,"USER AUTHORIZATION CHECK SCREEN");
settextstyle(1,0,1);
outtextxy(50,130,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~");
settextstyle(1,0,3);
outtextxy(200,210,"USER ID:");
outtextxy(200,240,"PASSWORD:");
x:
gotoxy(45,15);
cin>>uid;
gotoxy(45,17);
pass=getpass(" ");
if(strcmp(uid,"priee")==0 && strcmp(pass,"BCAIII")==0)
82
{
gotoxy(35,22);
cout<<"Authorized user";
sleep(2);
gotoxy(35,22);
cout<<" ";
main_menu mm;
mm.representation();
mm.list();
}
else
{
gotoxy(35,22);
cout<<"Unauthorized User";
sleep(2);
gotoxy(35,22);
cout<<" ";
gotoxy(45,15);
cout<<" ";
gotoxy(45,17);
cout<<" ";
goto x;
}
cleardevice();
closegraph();
}
void main()
{
clrscr();
password();
clrscr();
}
83
OUTPUT
84
85
86
87
88
89
90
91
92
`
93
PERT CHART
May 30
Aug 22
May10,2018 May 15 June 15 July 30
Aug 15
June20
June 5
Writing Manual
Start Analysis Design coding
Finish
Testing & implementation
Design
Review
Feasibility study
94
95
Testing
The testing process focusing on the logical internals of the Software, ensuring
that all statements have been tested, and one the functional external, that is, conducing
test to uncover errors and ensure that defined input will produce actual results that agrees
with required results.
Unit Testing: In this project the smallest testable unit is the encapsulated class and object.
Because in OOPs encapsulation derives the definition of classes and objects. Class testing
for the OOPs software is driven by the operations encapsulated by the class and the state,
behaviors of the class.
Integration Testing: There are two different strategies for integration testing for OOPs
systems. The first, thread-based testing integrates the set of classes required to respond to
one input or even for the system. Each thread is integrated and tested individually.
Regression testing is applied to make ensure that no side effect occurs. The second
integration approach, use-based testing, begins the construction of the system by testing
those classes that uses very few server classes.
Validation Testing: At the validation or system level, the details of class connection are
tested. Now, the validation of OOPs software focuses on user-visible actions and users-
recognizable output from the system. After conducting validation tests, we find that the
following validations are implemented properly for this project:
i. Transaction date is the system date/current date.
ii. Initial balance for any registration should not be less than Rs 5000/-
Random Testing
We apply random testing for classes and sub classes. Each of there operation is
applied for class account but certain constrains are implied.
Example: - the account no must be open before other operation can be applied and
closed after all operations are completed.
96
Implementation & Maintanance
Implementation:
This section discussed three aspects of implementation
1) Training personnel:
Those who are directly or indirectly related with system development work must
know in detail with their roles will be , how they can make the efficient use of the system
& what the system will do or not do for them . Here both the employees & users need
training.
a) System operator training:
* How to turn the equipment on and use it.
* How to power off & knowledge what constitutes normal operation?
b) User training:
* User training deals with operation of system itself, with proper attention given
to the data handling technique.
* Users are trained in method of entering transaction ending & view reports.
2) Conversion Method:
For conversion of old system to new one we employee parallel system to run both
the system in parallel under this approach, user continue to operate their old system as well
as this start using the new system.
This method is safest one because it insure that in case of any problem
in using the new system, the organization can still fall back to the hold system without
loss of time & money we were prepared a list of all tasks including the following: -
* List of all files that are required during conversion.
* Identify all data required to build new files during conversion.
* Identify all controls to be made during conversion.
* Assign the responsibility for each task.
3) Post implementation Review:
After the system is implemented and conversion is complete, there is a time to
determine whether the system is meeting the expectation & where improvement is
needed.
Keeping these facts in mind, we prepare a formal review plan.
An overall plan covers the following areas: -
a) Administrative Plan:
Review area objectives, operating costs, actual operating performance &
benefits.
97
b) Personnel requirement plan:
Review performance objectives & training performance to data.
c) Hardware Plan:
Review performance specification.
System maintenance:
System maintenance is actually the implementation of the post implementation
review plan .So, at this stage we implement the following maintenance area: -
1) Administrative maintenance: -
The following activities are maintained under this maintenance.
* User objective maintenance:
This is an extremely critical area since it may be possible that over the period of
time either the system doesn’t meet the initial objectives of the users or the user
objectives get changed as a result of the changes in the overall objectives of the
organization.
* Operating cost and benefit maintenance:
Under this maintenance current budget are design to manipulate the cost and
saving of the system.
2) Personnel requirement maintenance:
Under this maintenance all activities involving system personnel & staff member
associated with the system are maintained i.e.
* Maintain the performance of personnel objectives with current performance
labels;
* Maintain training performance through testing & conducting interviews.
3) Hardware maintenance:
The hardware of the new system is also maintained including services, terminals &
communication networks. The main target is a comparison of current performance with
design specification.
For implementing the overall post implementation plans, actual we employee
little effort. Because most of essential tasks that are maintained in this stage are already
performed with more efficiently .For example: -
* During system development the requirement was defined more accurately.
* System documentation was prepared in a better way.
* Processing logic was also design using more effective way.
* Existing tool and technique are better utilized.
* System engineering courses are managed effectively.
98
Cost Estimation
When we start this new project, the first question that we were heard was “How
much will this cost?“ while cost are a major factor in deciding both the scope of new
system & even whether or not to have one the bottom line setup costs are not important as
deciding overall return from the new system.
An overall return factors in several cost element including: -
* Cost of setup, including hardware & software.
* Cost of converting exiting information.
* Cost of creating new information.
* Cost of designing & programming for new system application.
* Cost of training and while that can quickly add up to a significant sum, we will
see that cost is reduced in other area including: -
1) Communication:
Communication is improved. The way of an organization communicates its
message is vital to the success of the organization. Communicating with both the
employee & customers can change the way people see that organization. Employee often
complains about poor communication, they feel left out of the loop or like they were
working on a project that has no focus or purpose. Using this new computerized system
employee can share information in an easy to use format that removes many organization
constraints.
2) Printing:
Reports will still need to be printed, but employee will only have to print the
relevant information as needed .A significant saving over printing & binding the entire
reports.
3) Security:
Safe guarding sensitive & important data in a form i.e. accessible to the only
authorized personal.
99
Future Scope of the Project
Normally the “COLLEGE MANAGEMENT SYSYTEM “ covers different area
of college. How ever this project “COLLEGE MANAGEMENT SYSYTEM “ only the
implementation of daily transaction records .The data accurate in this project is used
periodically to provide different type of managerial information.
The future application of this “COLLEGE MANAGEMENT SYSYTEM “ is: -
* This overall project is basically written in function & can be used in conjunction
with other program, for future development “COLLEGE MANAGEMENT
SYSYTEM”.
* We have provided many data function through which any one can know about
any information of students, course, fee details employee details, and library
details.
* The project is using the modern trend OOPS that gives better design to the
software, which help in maintaining code in terms of reusability, modifiability.
* These attribute a quite wanting in today’s complex software scenario. OOPS
giving a better designs objective taken this problem & provide better design
objective.
100
Validation checks
While inputting the data records the following validations will be checked :
i) The Roll may be opened by a person on his own behalf , but more than one
roll can’t be opened in the same roll number because the roll numbers are
generated automatically.
ii) The name, address should not be blank and not greater than 25 characters.
iii) The password should not be blank and also not greater than 8 character.
iv) The password that was entered is not visible in correct format.
v) Transaction date is the system date/current date.
vi) Registration holder of that account after proper password checking.
101
Bibliography
At the end, the following bibliography is in no way complete. However it is an
attempt to list a few number of sources and references when we have used for the
development & design of the project in this elegant form.
Title of the Book Author/Publisher
 PROGRAMMING IN C++ D. Ravi Chandram. (TMH)
 TEACH YOURSELF C++ Herbert Schildt(TMH)
 LET US C++ YASWANT KANITKAR

More Related Content

What's hot

Student management system
Student management systemStudent management system
Student management system
Amit Gandhi
 
College Management System
College Management SystemCollege Management System
College Management System
Swapna Subhadarsini
 
Student information system project report
Student information system project reportStudent information system project report
Student information system project report
Suman Chandra
 
Student Management System
Student Management SystemStudent Management System
Student Management System
HamaQarani
 
Student database management system
Student database management systemStudent database management system
Student database management system
Arpita Naik
 
College management project
College management projectCollege management project
College management project
Akhilesh Jha
 
Student database management system
Student database management systemStudent database management system
Student database management systemSnehal Raut
 
Student management system
Student management systemStudent management system
Student management systemGaurav Subham
 
College Management System Project
College Management System ProjectCollege Management System Project
College Management System Project
Manish Kushwaha
 
Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS) Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS)
Abhilasha Lahigude
 
Student information system
Student information systemStudent information system
Student information system
sourabh singh sen
 
student database management system
student database management systemstudent database management system
student database management system
Md. Riadul Islam
 
Hospital Management System Project Report
Hospital Management System Project Report Hospital Management System Project Report
Hospital Management System Project Report
Sarfaraj Alam
 
Online Hostel Management System Proposal
Online Hostel Management System Proposal Online Hostel Management System Proposal
Online Hostel Management System Proposal
farhanamusthafa
 
University management system
University management systemUniversity management system
University management system
VINITSAMMIR
 
School management System
School management SystemSchool management System
School management System
HATIM Bhagat
 
Hospital management system
Hospital management systemHospital management system
College Management System
College Management SystemCollege Management System
College Management System
KalosoftAcumen
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++
Student
 
Studentmanagementsystem
StudentmanagementsystemStudentmanagementsystem
Studentmanagementsystem
1amitgupta
 

What's hot (20)

Student management system
Student management systemStudent management system
Student management system
 
College Management System
College Management SystemCollege Management System
College Management System
 
Student information system project report
Student information system project reportStudent information system project report
Student information system project report
 
Student Management System
Student Management SystemStudent Management System
Student Management System
 
Student database management system
Student database management systemStudent database management system
Student database management system
 
College management project
College management projectCollege management project
College management project
 
Student database management system
Student database management systemStudent database management system
Student database management system
 
Student management system
Student management systemStudent management system
Student management system
 
College Management System Project
College Management System ProjectCollege Management System Project
College Management System Project
 
Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS) Leave Management System: Software Requirements Specification Document(SRS)
Leave Management System: Software Requirements Specification Document(SRS)
 
Student information system
Student information systemStudent information system
Student information system
 
student database management system
student database management systemstudent database management system
student database management system
 
Hospital Management System Project Report
Hospital Management System Project Report Hospital Management System Project Report
Hospital Management System Project Report
 
Online Hostel Management System Proposal
Online Hostel Management System Proposal Online Hostel Management System Proposal
Online Hostel Management System Proposal
 
University management system
University management systemUniversity management system
University management system
 
School management System
School management SystemSchool management System
School management System
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
College Management System
College Management SystemCollege Management System
College Management System
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++
 
Studentmanagementsystem
StudentmanagementsystemStudentmanagementsystem
Studentmanagementsystem
 

Similar to Documentation project of college management [1]

Student acadamic system Final report
Student acadamic system Final reportStudent acadamic system Final report
Student acadamic system Final report
Annu Venkata Nagarjuna
 
lake city institute of technology
lake city institute of technology lake city institute of technology
lake city institute of technology
RaviKalola786
 
Ignou MCA mini project report
Ignou MCA mini project reportIgnou MCA mini project report
Ignou MCA mini project report
Hitesh Jangid
 
College management
College managementCollege management
College management
anandhan30
 
Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination...
 Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination... Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination...
Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination...
Sarthak Khabiya
 
Project black book TYIT
Project black book TYITProject black book TYIT
Project black book TYIT
Lokesh Singrol
 
Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010
ShivanchalSingh
 
Synopsis on billing system
Synopsis on billing systemSynopsis on billing system
Synopsis on billing system
Alok Sharma
 
11.online library management system
11.online library management system11.online library management system
11.online library management system
Pvrtechnologies Nellore
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Fee collection system
Fee collection systemFee collection system
Fee collection systemharryz18
 
IP final project
IP final project IP final project
IP final project
SantySS
 
IP Final project 12th
IP Final project 12thIP Final project 12th
IP Final project 12th
SantySS
 
Project Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptxProject Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptx
AjayPatre1
 
Job portal
Job portalJob portal
Job portal
Arman Ahmed
 
Business Intelligence
Business IntelligenceBusiness Intelligence
Business Intelligence
Ting Yin
 
Parents connect final
Parents connect finalParents connect final
Parents connect final
Mridul Kumar
 
Final PPT
Final PPTFinal PPT
Final PPTsunnik
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
Amit Gandhi
 

Similar to Documentation project of college management [1] (20)

Student acadamic system Final report
Student acadamic system Final reportStudent acadamic system Final report
Student acadamic system Final report
 
lake city institute of technology
lake city institute of technology lake city institute of technology
lake city institute of technology
 
PORT FOLIO
PORT FOLIOPORT FOLIO
PORT FOLIO
 
Ignou MCA mini project report
Ignou MCA mini project reportIgnou MCA mini project report
Ignou MCA mini project report
 
College management
College managementCollege management
College management
 
Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination...
 Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination... Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination...
Java Project "JPS-School Management System" CBSE AISSCE Pratical Examination...
 
Project black book TYIT
Project black book TYITProject black book TYIT
Project black book TYIT
 
Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010
 
Synopsis on billing system
Synopsis on billing systemSynopsis on billing system
Synopsis on billing system
 
11.online library management system
11.online library management system11.online library management system
11.online library management system
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Fee collection system
Fee collection systemFee collection system
Fee collection system
 
IP final project
IP final project IP final project
IP final project
 
IP Final project 12th
IP Final project 12thIP Final project 12th
IP Final project 12th
 
Project Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptxProject Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptx
 
Job portal
Job portalJob portal
Job portal
 
Business Intelligence
Business IntelligenceBusiness Intelligence
Business Intelligence
 
Parents connect final
Parents connect finalParents connect final
Parents connect final
 
Final PPT
Final PPTFinal PPT
Final PPT
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 

Recently uploaded

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 

Recently uploaded (20)

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 

Documentation project of college management [1]

  • 1. 1 INTRODUCTION I begins with a brief introduction about this project & the difference stages of the design & development of “COLLEGE MANAGEMENT SYSTEM” before details discuss first of all I would like to give an overall idea about this project.
  • 2. 2 Title of Project COLLEGE MANAGEMENT SYSTEM I have develops my project on “COLLEGE MANAGEMENT SYSTEM”, because this project is help to details about college information. In this process of expansion of their activities they plan to automate their operation of any system. In “COLLEGE MANAGEMENT SYSTEM” a large amount of data is processed & the results are used in running an organization/system. Computers are now extensively used to perform the routine clerical works for smooth functioning of the “COLLEGE MANAGEMENT SYSTEM”, also today most large & medium sized organization or system are depend on computers to a great extent. Micro electronic technology enables offers to function faster & more efficiently & the low cost of technology means putting computers within the grasp of even the smallest business, system or organization. In the commercial world “COLLEGE MANAGEMENT SYSTEM” is organization to invest heavily in computers in recent time. In most instance the computer is located centrally branches are equipped with terminals, giving them online accounting facilities & enabling for information or such things as current balance, report of different fields of “COLLEGE MANAGEMENT SYSTEM”. Use of computer in “COLLEGE MANAGEMENT SYSTEM” has made transaction simpler, easier & faster for any organization or system. This project is handled with the help of “File Handling Concept ” (OOPS Class Concept) in this projects ”COLLEGE MANAGEMENT SYSTEM” maintain the college courses, student details, fee details, examination details, library & employee details. The main goal of this project is to create: – Course list, student list, fee details, examination details, and library & employee details. Which the management can access. For making this project consult the following objective: 1) Course Record 2) Student Record 3) Fee Record 4) Examination Record 5) Employee Record 6) Library Record To insure prompt functioning a part from the above maintain objectives there are several other functions that the develop system performs for day-to-day operation of the “COLLEGE MANAGEMENT SYSTEM”.
  • 3. 3 Identification of Need In this section I have studies the existing manual system of entire organization /system in general. The job of “COLLEGE MANAGEMENT SYSTEM” is basically involved transaction of students fee, students record, and staff record. In the manual system “COLLEGE MANAGEMENT SYSTEM” accepts the students fee & update them in record. In day-to-day function of this system several problems are imposed due to manual system of “COLLEGE MANAGEMENT SYSTEM”. Some of them are – Significant amount of effort & time is spent on searching & locating information written the individual records. Some times human errors results in wrong calculation eventually ending with errorless balancing figure in concerned of that record. Why System Project :--- System projects are initiated for different reasons. The most important reasons are:- 1) Capabilities: - Business activities are influenced by organizations ability to process transactions quickly & efficiently. Information system adds capability in three ways: - i) Improved processing speed: - The inheritant speed with computer process data is one reason why organization seeks the development of system project. ii) Increase Volume: - Provide capacity to access the greater amount of activity, purpose to take the advantage of new business opportunities. iii) Fatter retrieval of information: - Locating & retrieving information from storage. The ability in conducting complex search. 2) Control: - i) Create accuracy & Consistency: - Charring out computing step smoothly consistently. ii) Better Security: - Safe guarding sencity & important data in a form i.e. accessible to the only authorized person. 3) Communication: - i) Enhanced Communication: - speeding the flow of information and message between remote locations as well as within office. This includes the transmission of documents within office. ii) Integration of Business Area: - Co-ordinating business activates taking place in separate area of an organization through capture & distribution of information.
  • 4. 4 4) Cost: - i) Monitor Cost: - Tracing the cost of labour, goods & overhead is essential to determine whether a firm is performing in line with expectation with budget. ii) Reduce Cost: - Using Computing capabilities to process data at the lower cost than possible with other methods while maintaining performance & accuracy level. 5) Competitiveness: - i) Lock of Customers: - Changing the relationship with and services provided to the customer in such a way that they would not think the changing of customer. ii) Lock of Competitors: - Reducing the changes of entering the competitors in the same market because of good information systems being used in the organization iii) New Policy Development: - Introducting new policy with characteristics that use or influenced by information technology.
  • 5. 5 Software & Hardware Requirement Specification Introduction: “The document describes the project’s target audience and its user interface,hardware requirement.It defines how our client, team and audience see tha product and its functionality.Nonetheless,it helps any designer and developer to assist in software delivery lifecycle processes.” Objective: To design software for “COLLEGE MANAGEMENT SYSTEM” that will generate the purposed output i.e. Software must generate the following output: - a) List of Courses b) List of students c) List of Fee Details d) List of examination Term e) List of Employee f) List of Books g) List of issued Books h) List of return Books *Goal: The main goal of this project to create course record &maintain course consol updating, Students records & maintain Students consol updating, Fee records, Employee records & maintain employee consol updating, Salary slip, Books record & maintain their consol updating, membership records &maintain their consol updating, maintain book issue & book return record & global reports with more easier, faster,reliable accurate & secure. *Overall Description: We have to design the software for “COLLEGE MANAGEMENT SYSTEM” that will full fill following: - 1) Creation of Course record, student list, employee record, books record, new membership & this will happen from anywhere (location independent). 2) Keep & maintenance large number of records easily. 3) Finding/listing users record quickly. 4) Preparation of several reports for the “COLLEGE MANAGEMENT SYSTEM” & individual reports quickly & easily. 5) Calculation of fee dues with accuracy. Tools/Platform, Language used: As far as the tools/platform for the development of the project is concern it has been discussed along with the guide & decide that the windows o/s will be suitable, & after considering various aspects. It is planned to develop the complete projects the language ‘C++’. As C++ is the enhanced version of the C language, C++ includes every
  • 6. 6 thing i.e. a part of C & adds supports OOPS. Any think we know about C language is fully applicable to C++. Reason for purposing C++: * It support all feathers of both structured programming & OOPS. * It gives the easiest way to handle data hiding & encapsulation with the help of powerful keywords such as class, public, private, protected. * Inheritance, one of the most powerful design concepts is supported with single single & multiple inheritance of base class & derived class. * Polymorphism to virtual function, virtual base classes & virtual destructors gives the let binding of the compilers. * It provides the overloading of operators & functions. * C++ focus on the function & class templates for handling parameterized data type. * Exception handling is done by the extra keywords namely try, catch & through. * Provides friends, static methods, constructors & destructors for the class objects. Finally the configuration of the project is as follows: - * Hardware: - Computer (845 Intel processor, 64 MB RAM, 10 GB Hard disk). * Software: - C++ * Platform: - Windows workstations running on Windows NT. * Backup media: - Hard disk.
  • 7. 7
  • 8. 8
  • 9. 9
  • 10. 10
  • 11. 11 DATA FLOW DIAGRAM LABEL-1 Course.dat Insert New Course User Request User Request Insert Student Student.dat Detail User Request
  • 12. 12 LABEL-2 List of All Course Course.dat Request for view of all the course User Request Individual Student Student.dat Request for View of indivisual student details Request for view of all student details List of all Student.dat Student List
  • 13. 13 LABEL-3 Insert fee details Fee.dat Request of insert Fee of all requests User Request Modification fee Fee.dat Records Modify records of course Student/Course Student.dat Corse.dat
  • 14. 14 LABEL-4 Insert book record Book.dat Insert Member Ship Member.dat User Request Insert Employee Emp.dat Book.dat List of Book Mem.dat Member/Employee Emp.dat
  • 15. 15 CLASS DIAGRAM 1) Class Name: - Course Structure Name: -var Fields: - char course_name[20],sname[20],fname[20],fo[20],add[50]; int course_code,duration,roll,cnum; float fee; char qualification[30],sex,dob[10],doe[10]; Function Name Working Sysdate() To display current system date Course() To display course list menu Add_course() To add new course List_course() To list courses available in this college Modify_course() To modify the course record Delete_course() To delete course record 2) Class Name :- Student Structure Name:- stu Fields:- char ch,sex,name[20],qualification[20],fname[20]; char fo[20],address[20],course[5],dob[10],doe[10]; int duration,roll,cnum; Function Working Student() To display the student list menu Add_student() To add new student record List_student() To list the all admitted student Full_student() To Listthe individual student record Modify_student() To modify the student records Delete_student() To delete student record Inheritance :- It inherit the class course property. 3) Class Name:- Fee Structure Name:- var Fields:-char ch,name[20],fname[20],address[20],course[5],dob[10]; int duration,roll,total_fee,paid_fee,dues_fee;
  • 16. 16 Function Working Fee() To display the fee records menu Addmission() To admit the student Received() To received the fee List() To list out the fee details Delete_fee() TO delete fee record Inheritance: - It inherit the class Student property. 4)Class Name:- Exam Structure Name: var Fields: int duration,course_code; char course_name[10],exam_term[10],exam_date[10]; Function Working Examination() To list examination menu Add_exam_term() To add examination term & date List_exam_term() To list examination term& date Modify_exam_term() To Modify exam term & date Del_exam_term() To delete exam term Inheritance :- It inherit the class Fee property. 6) Class Name: Emp Structure Name: var Fields: int e_no; char e_name[20],dob[10],city[10],dist[10],state[10]; char zip[5],desi[10],doj[10],dept[10],g; double ta,da,hra,pf,tsal,bsal; Function Working employ() To list employee menu Add_emp() To add new employee Modify_emp() To Modify the employee record List_emp() To list employee list Indi_emp() To display individual employee record Del_emp() To delete employee record. Inheritance :- It inherit the class Exam. property.
  • 17. 17 7) Class Name: Library Structure Name: Fields: int book_no,rno,price,page_no,mem_no,mem_fee; char class_name[20],mem_name[10],add[50], char book_title[20],aname[20],pname[20]; char bname[20],aurther[20],publisher[20]: char member_no[5],roll[5],clas[5]; float bprice; int bno; Function Working library() To display library menu add_book() To add new book modify_book() To modify student records List_book() To list the books& its record Del_book() To delete book records add_member() To add new member modify_member() To modify the books_records List_member() To list member records Del_member() To delete member records. Book_issue() To issue books Book_return() To return books List_issue() To list issued book Inheritance :- It inherit the class emp property. 8) Class Name: Main_menu Function Working represent() To view representation Menu() To display main menu of this project Inherit: Library We use inheritance concept to access the function of base on requirment on project.
  • 18. 18 PROJECT CODING #include<string.h> #include<dos.h> #include<graphics.h> #include<stdio.h> #include<fstream.h> #include<process.h> #include<conio.h> #include<iostream.h> #include<ctype.h> #include<stdlib.h> class course { char ch; struct entry { char course_name[20],sname[20],fname[20],fo[20],add[50],dob[10],doe[10]; int course_code,duration,roll,cnum; float fee; char qualification[30],sex; }p; fstream f; public: void sysdate(); int code(); void course_menu(); void add_course(); void modify_course(); void list_course(); void del_course(); }; class student:public course { private: struct stu { char ch,sex,name[20],qualification[20],fname[20],fo[20],address[20],course[5],dob[10],doe[1 0]; int duration,roll,cnum; }p; fstream file; public: int code(); void student_menu(); void add_student(); void list_student(); void modify_student();
  • 19. 19 void full_student(); void del_student(); }; class fee:public student { private: struct var { char ch,name[20],fname[20],address[20],course[5],dob[10]; int duration,roll,total_fee,paid_fee,dues_fee; }f; fstream file; public: int code(); void fee_menu(); void admission(); void received(); void modify_fee(); void list_fee(); void del_fee(); }; class exam:public fee { struct var { int duration,course_code; char course_name[10],exam_term[10],exam_date[10]; }p; fstream f; public: int code(); void examination(); void add_exam_term(); void list_exam_term(); void modify_exam_term(); void del_exam_term(); }; class emp:public exam { char ch; struct entry { int e_no; char e_name[20],dob[10],city[10],dist[10],state[10],zip[5],desi[10],doj[10],dept[10],g; double ta,da,hra,pf,tsal,bsal; }p; fstream f;
  • 20. 20 public: int code(); void employee(); void employee_record(); void add_employee(); void modify_employee(); void list_employee(); void indi_employee(); void salary(); void salary_slip(); void change_salary(); void del_employee(); }; class library:public emp { char ch; struct var { int book_no,rno,price,page_no,mem_no,mem_fee; char class_name[20],mem_name[10],add[50],book_title[20],aname[20],pname[20]; char bname[20],aurther[20],publisher[20],member_no[5],roll[5],clas[5]; double bprice; int bno; }s; fstream file; public: int bcode(); int mcode(); void library_menu(); void book_record(); void book_issue_return(); void book_issue(); void book_return(); void list_issue_book(); void list_return_book(); void add_book(); void modify_book(); void list_book(); void delete_book(); void member_record(); void add_member(); void modify_member(); void list_member(); void delete_member(); int found(int); };
  • 21. 21 //************************* course coading ******************************** void course::sysdate() { date d; getdate(&d); int da=d.da_day; int mo=d.da_mon; int ye=d.da_year; gotoxy(60,5); cout<<"Date:"; cout<<da<<"/"<<mo<<"/"<<ye; } void course::course_menu() { char ch; do { clrscr(); gotoxy(16,2); cout<<"COURSE MENU OF COLLEGE SYSTEM"; gotoxy(4,3); cout<<"***************************************************************** *****"; sysdate(); gotoxy(20,6); cout<<"1.ADD NEW COURSE"; gotoxy(20,8); cout<<"2.LIST OF COURSE"; gotoxy(20,10); cout<<"3.MODIFY COURSE"; gotoxy(20,12); cout<<"4.DELETE COURSE"; gotoxy(4,16); cout<<"***************************************************************** *****"; gotoxy(20,24); cout<<"<0>FOR RETURN"; gotoxy(30,22); cout<<"ENTER YOUR CHOICE:"; ch=getch(); switch(ch) { case '0': { break; } case '1':
  • 22. 22 add_course(); break; case '2': list_course(); break; case '3': modify_course(); break; case '4': del_course(); break; } }while(ch!='0'); } int course::code() { int count=0; f.open("course.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { count=p.course_code; } count++; f.close(); return count; } void course::add_course() { do { clrscr(); gotoxy(16,2); cout<<"ADD NEW COURSE"; gotoxy(4,3); cout<<"***************************************************************** ****"; gotoxy(5,5); cout<<"COURSE CODE:"; p.course_code=code(); cout<<p.course_code; gotoxy(5,7); cout<<"COURSE NAME:"; cin>>p.course_name; gotoxy(5,9);
  • 23. 23 cout<<"DURATION:"; cin>>p.duration; gotoxy(5,11); cout<<"FEE:"; cin>>p.fee; gotoxy(5,13); cout<<"QUALIFICATION:"; cin>>p.qualification; gotoxy(4,16); cout<<"***************************************************************** ****"; f.open("course.dat",ios::app|ios::out); f.seekp(0L,ios::end); f.write((char *)&p,sizeof(p)); gotoxy(20,20); cout<<"Add more(y/n):"; ch=getch(); f.close(); }while(ch=='y'); clrscr(); } void course::modify_course() { int count=0; int no; long int pos; clrscr(); f.open("course.dat",ios::in|ios::out); f.seekg(0L,ios::beg); gotoxy(16,2); cout<<"MODIFY COURSE"; gotoxy(4,3); cout<<"***************************************************************** ****"; gotoxy(5,5); cout<<"COURSE CODE:"; cin>>no; while(f.read((char *)&p,sizeof(p))) { if(no==p.course_code) { gotoxy(5,7); cout<<"COURSE NAME:"; cin>>p.course_name; gotoxy(5,9); cout<<"DURATION:"; cin>>p.duration; gotoxy(5,11); cout<<"FEE:";
  • 24. 24 cin>>p.fee; gotoxy(5,13); cout<<"QUALIFICATION:"; cin>>p.qualification; gotoxy(4,16); cout<<"***************************************************************** ****"; pos=count*sizeof(p); f.seekp(pos,ios::beg); f.write((char*)&p,sizeof(p)); f.close(); } count++; } } void course::list_course() { int i=7; clrscr(); gotoxy(16,2); cout<<"LIST OF COURSE"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,5); cout<<"COURSE CODE COURSE NAME DURATION(year) QUALIFICATION FEE"; gotoxy(4,6); cout<<"***************************************************************** ******"; f.open("course.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { gotoxy(8,i); cout<<p.course_code; gotoxy(25,i); cout<<p.course_name; gotoxy(40,i); cout<<p.duration; gotoxy(55,i); cout<<p.qualification; gotoxy(70,i); cout<<p.fee; i++; if(i==22) { i=9; cout<<"PRESS ANY KEY TO CONTINUE";
  • 25. 25 getch(); clrscr(); gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,5); cout<<"COURSE CODE COURSE NAME DURATION(year) QUALIFICATION FEE"; gotoxy(4,6); cout<<"***************************************************************** ******"; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; f.close(); getch(); clrscr(); } void course::del_course() { int no; clrscr(); gotoxy(16,2); cout<<"DELETE COURSE RECORD"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"COURSE CODE:-"; cin>>no; gotoxy(15,24); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') { fstream temp; f.open("course.dat", ios::in); temp.open("TEMP.dat", ios::out); f.seekg(0, ios::beg); while (!f.eof()) { f.read((char *)&p, sizeof(p)); if (f.eof()) break; if (p.course_code != no) {
  • 26. 26 temp.write((char *)&p, sizeof(p)); } } f.close(); temp.close(); f.open("course.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&p, sizeof(p)); if (temp.eof()) break; if (p.course_code!= no) f.write((char *)&p, sizeof(p)); } f.close(); temp.close(); gotoxy(15,25); cout<<"record deleted:"; getch(); } else { clrscr(); f.close(); } clrscr(); course(); } //*************************** student coading *************************** void student::student_menu() { char ch; do { clrscr(); gotoxy(16,2); cout<<"STUDENT MENU OF COLLEGE SYSTEM"; gotoxy(4,3); cout<<"***************************************************************** *****"; sysdate();
  • 27. 27 gotoxy(20,6); cout<<"1.ADD NEW STUDENT"; gotoxy(20,8); cout<<"2.LIST OF STUDENT"; gotoxy(20,10); cout<<"3.MODIFY STUDENT RECORD"; gotoxy(20,12); cout<<"4.VIEW INDIVIDUAL STUDENT COURSE"; gotoxy(20,14); cout<<"5.DELETE STUDENT RECORD"; gotoxy(4,18); cout<<"***************************************************************** *****"; gotoxy(20,24); cout<<"<0>FOR RETURN"; gotoxy(30,22); cout<<"ENTER YOUR CHOICE:"; ch=getch(); switch(ch) { case '0': break; case '1': add_student(); break; case '2': list_student(); break; case '3': modify_student(); break; case '4': full_student(); break; case '5': del_student(); break; } }while(ch!='0'); } int student::code() { int count=0; file.open("student.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&p,sizeof(p))) { count=p.roll;
  • 28. 28 } count++; file.close(); return count; } void student::add_student() { clrscr(); gotoxy(16,2); cout<<"NEW STUDENT RECORD"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,5); cout<<"STUDENT ROLL:-"; p.roll=code(); cout<<p.roll; gotoxy(5,7); cout<<"STUDENT NAME:-"; gets(p.name); gotoxy(5,9); cout<<"FATHER NAME:-"; gets(p.fname); gotoxy(5,11); cout<<"FATHER OCCUPATION:-"; gets(p.fo); gotoxy(5,13); cout<<"DATE OF BIRTH:-"; gets(p.dob); gotoxy(5,15); cout<<"DATE OF ENTRY:-"; gets(p.doe); gotoxy(5,17); cout<<"ADDRESS:-"; gets(p.address); gotoxy(5,19); cout<<"COURSE NAME:-"; gets(p.course); gotoxy(5,21); cout<<"CONTACT NUMBER:-"; cin>>p.cnum; gotoxy(5,23); cout<<"PREVIOUS QUALIFICATIOPN:-"; gets(p.qualification); gotoxy(5,25); cout<<"SEX(M/F):-"; cin>>p.sex; file.open("student.dat",ios::app|ios::out);
  • 29. 29 file.seekp(0L,ios::end); file.write((char *)&p,sizeof(p)); file.close(); clrscr(); student(); } void student::full_student() { int count=0; int no; long int pos; clrscr(); file.open("student.dat",ios::in); file.seekg(0L,ios::beg); gotoxy(16,2); cout<<"FULL STUDENT RECORD"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,5); cout<<"STUDENT ROLL:-"; cin>>no; while(file.read((char *)&p,sizeof(p))) { if(no==p.roll) { gotoxy(5,7); cout<<"STUDENT NAME:-"; cout<<p.name; gotoxy(5,9); cout<<"FATHER NAME:-"; cout<<p.fname; gotoxy(5,11); cout<<"FATHER OCCUPATION:-"; cout<<p.fo; gotoxy(5,13); cout<<"DATE OF BIRTH:-"; cout<<p.dob; gotoxy(5,15); cout<<"DATE OF ENTRY:-"; cout<<p.doe; gotoxy(5,17); cout<<"ADDRESS:-"; cout<<p.address; gotoxy(5,19); cout<<"COURSE NAME:-"; cout<<p.course; gotoxy(5,21); cout<<"CONTACT NUMBER:-";
  • 30. 30 cout<<p.cnum; gotoxy(5,23); cout<<"PREVIOUS QUALIFICATIOPN:-"; cout<<p.qualification; gotoxy(5,25); cout<<"SEX(M/F):-"; cout<<p.sex; } count++; } gotoxy(50,25); cout<<"PRESS ANY KEY TO BACK:"; file.close(); getch(); clrscr(); student(); } void student::list_student() { int i=7; clrscr(); gotoxy(16,2); cout<<"LIST OF STUDENT RECORD"; gotoxy(4,3); cout<<"***************************************************************** *****"; gotoxy(5,5); cout<<"ROLL STUDENT NAME COURSE NAME "; file.open("student.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&p,sizeof(p))) { gotoxy(5,i); cout<<p.roll; gotoxy(15,i); cout<<p.name; gotoxy(48,i); cout<<p.course; i++; if(i==25) { i=7; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,2); cout<<"LIST OF STUDENT RECORD"; gotoxy(4,3);
  • 31. 31 cout<<"***************************************************************** *****"; gotoxy(5,5); cout<<"ROLL STUDENT NAME COURSE NAME "; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; file.close(); getch(); clrscr(); student(); } void student::modify_student() { int count=0; int no; long int pos; clrscr(); gotoxy(16,2); cout<<"MODIFY STUDENT RECORD"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,5); cout<<"STUDENT ROLL:-"; cin>>no; file.open("student.dat",ios::in|ios::out); file.seekg(0L,ios::beg); while(file.read((char *)&p,sizeof(p))) { if(no==p.roll) { gotoxy(5,7); cout<<"STUDENT NAME:-"; gets(p.name); gotoxy(5,9); cout<<"FATHER NAME:-"; gets(p.fname); gotoxy(5,11); cout<<"FATHER OCCUPATION:-"; gets(p.fo); gotoxy(5,13); cout<<"DATE OF BIRTH:-"; gets(p.dob); gotoxy(5,15); cout<<"DATE OF ENTRY:-";
  • 32. 32 gets(p.doe); gotoxy(5,17); cout<<"ADDRESS:-"; gets(p.address); gotoxy(5,19); cout<<"COURSE NAME:-"; gets(p.course); gotoxy(5,21); cout<<"CONTACT NUMBER:-"; cin>>p.cnum; gotoxy(5,23); cout<<"PREVIOUS QUALIFICATIOPN:-"; gets(p.qualification); gotoxy(5,25); cout<<"SEX(M/F):-"; cin>>p.sex; pos=count*sizeof(p); file.seekp(pos,ios::beg); file.write((char *)&p,sizeof(p)); file.close(); } count++; } file.close(); clrscr(); student(); } void student::del_student() { int no; clrscr(); gotoxy(16,2); cout<<"DELETE STUDENT RECORD"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"STUDENT ROLL:-"; cin>>no; gotoxy(15,24); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') { fstream temp; file.open("student.dat", ios::in); temp.open("TEMP.dat", ios::out);
  • 33. 33 file.seekg(0, ios::beg); while (!file.eof()) { file.read((char *)&p, sizeof(p)); if (file.eof()) break; if (p.roll != no) { temp.write((char *)&p, sizeof(p)); } } file.close(); temp.close(); file.open("student.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&p, sizeof(p)); if (temp.eof()) break; if (p.roll!= no) file.write((char *)&p, sizeof(p)); } file.close(); temp.close(); gotoxy(15,25); cout<<"record deleted:"; getch(); } else { clrscr(); file.close(); } clrscr(); student(); } //********************* FEE MENU COADING ***************************** void fee::fee_menu() { clrscr(); gotoxy(16,2); cout<<"FEE RECORD MENU OF COLLEGE SYSTEM";
  • 34. 34 gotoxy(4,3); cout<<"***************************************************************** *****"; sysdate(); gotoxy(20,6); cout<<"1.ADDMISSION FEE"; gotoxy(20,8); cout<<"2.RECEIVED FEE"; gotoxy(20,10); cout<<"3.MODIFY FEE RECORD"; gotoxy(20,12); cout<<"4.LIST OF FEE RECORD"; gotoxy(20,14); cout<<"5.DELETE FEE RECORD"; gotoxy(4,18); cout<<"***************************************************************** *****"; gotoxy(20,24); cout<<"<0>FOR RETURN"; gotoxy(30,22); cout<<"ENTER YOUR CHOICE:"; char ch; ch=getch(); switch(ch) { case '0': break; case '1': admission(); break; case '2': received(); break; case '3': modify_fee(); break; case '4': list_fee(); break; case '5': del_fee(); break; }} int fee::code() { int count=0; file.open("fe.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&f,sizeof(f)))
  • 35. 35 { count=f.roll; } count++; file.close(); return count; } void fee::admission() { clrscr(); gotoxy(16,2); cout<<"ADMISSION FORM"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(8,5); cout<<"STUDENT ROLL:-"; f.roll=code(); cout<<f.roll; gotoxy(8,8); cout<<"STUDENT NAME:-"; gets(f.name); gotoxy(8,10); cout<<"FATHER NAME:-"; gets(f.fname); gotoxy(8,12); cout<<"DATE OF BIRTH:-"; cin>>f.dob; gotoxy(8,14); cout<<"ADDRESS:-"; cin>>f.address; gotoxy(8,16); cout<<"COURSE NAME:-"; cin>>f.course; gotoxy(8,18); cout<<"DURATION:-"; cin>>f.duration; gotoxy(8,19); cout<<"TOTAL FEE:-"; cin>>f.total_fee; gotoxy(8,21); cout<<"PAID FEE:-"; cin>>f.paid_fee; gotoxy(8,23); cout<<"DUES FEE:-"; f.dues_fee=f.total_fee-f.paid_fee; cout<<f.dues_fee;
  • 36. 36 getch(); file.open("fe.dat",ios::app|ios::out); file.seekp(0l,ios::end); file.write((char *)&f,sizeof(f)); file.close(); clrscr(); fee_menu(); } void fee::received() { int count=0; int no; long int pos; clrscr(); gotoxy(16,2); cout<<"RECEIVED FEE"; gotoxy(4,3); cout<<"***************************************************************** *******"; file.open("fe.dat",ios::in|ios::out); file.seekg(0L,ios::beg); gotoxy(8,8); cout<<"STUDENT ROLL:-"; cin>>no; while(file.read((char *)&f,sizeof(f))) { if(no==f.roll) { gotoxy(8,10); cout<<"STUDENT NAME:-"; cout<<f.name; gotoxy(8,12); cout<<"COURSE NAME:-"; cout<<f.course; gotoxy(8,14); cout<<"DURATION:-"; cout<<f.duration; gotoxy(8,16); cout<<"RECEIVED FEE:-"; cin>>f.paid_fee; gotoxy(8,18); cout<<"DUES FEE:-"; f.dues_fee=f.dues_fee - f.paid_fee; cout<<f.dues_fee; getch(); pos=count*sizeof(f); file.seekp(pos,ios::beg); file.write((char *)&f,sizeof(f)); file.close();
  • 37. 37 } count++; } clrscr(); fee_menu(); } void fee::list_fee() { int i=7; clrscr(); gotoxy(16,2); cout<<"LIST OF FEE RECORD"; gotoxy(2,3); cout<<"***************************************************************** ***********"; gotoxy(5,5); cout<<"ROLL STUDENT NAME COURSE NAME PAID FEE DUES FEE"; gotoxy(2,6); cout<<"***************************************************************** ***********"; file.open("fe.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&f,sizeof(f))) { gotoxy(5,i); cout<<f.roll; gotoxy(12,i); cout<<f.name; gotoxy(45,i); cout<<f.course; gotoxy(57,i); cout<<f.total_fee; gotoxy(68,i); cout<<f.dues_fee; i++; if(i==25) { i=7; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,2); cout<<"LIST OF FEE RECORD"; gotoxy(2,3);
  • 38. 38 cout<<"***************************************************************** **********"; gotoxy(5,5); cout<<"ROLL STUDENT NAME COURSE NAME PAID FEE DUES FEE"; gotoxy(2,6); cout<<"***************************************************************** ***********"; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; file.close(); getch(); clrscr(); fee_menu(); } void fee::modify_fee() { int count=0; int no; long int pos; file.open("fe.dat",ios::in|ios::out); file.seekg(0L,ios::beg); clrscr(); gotoxy(16,2); cout<<"MODIFY FEE"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(8,5); cout<<"STUDENT ROLL:-"; cin>>no; while(file.read((char *)&f,sizeof(f))) { if(no==f.roll) { gotoxy(8,8); cout<<"STUDENT NAME:-"; gets(f.name); gotoxy(8,10); cout<<"FATHER NAME:-"; gets(f.fname); gotoxy(8,12); cout<<"DATE OF BIRTH:-"; cin>>f.dob; gotoxy(8,14); cout<<"ADDRESS:-"; cin>>f.address;
  • 39. 39 gotoxy(8,16); cout<<"COURSE NAME:-"; cin>>f.course; gotoxy(8,18); cout<<"DURATION:-"; cin>>f.duration; gotoxy(8,19); cout<<"TOTAL FEE:-"; cin>>f.total_fee; gotoxy(8,21); cout<<"PAID FEE:-"; cin>>f.paid_fee; gotoxy(8,23); cout<<"DUES FEE:-"; f.dues_fee=f.total_fee-f.paid_fee; cout<<f.dues_fee; getch(); pos=count*sizeof(f); file.seekp(pos,ios::beg); file.write((char *)&f,sizeof(f)); file.close(); } count++; } clrscr(); fee_menu(); } void fee::del_fee() { int no; clrscr(); gotoxy(16,2); cout<<"DELETE FEE RECORD"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"ROLL NUMBER:-"; cin>>no; gotoxy(15,24); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') {
  • 40. 40 fstream temp; file.open("fe.dat", ios::in); temp.open("TEMP.dat", ios::out); file.seekg(0, ios::beg); while (!file.eof()) { file.read((char *)&f, sizeof(f)); if (file.eof()) break; if (f.roll != no) { temp.write((char *)&f, sizeof(f)); } } file.close(); temp.close(); file.open("fe.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&f, sizeof(f)); if (temp.eof()) break; if (f.roll!= no) file.write((char *)&f, sizeof(f)); } file.close(); temp.close(); gotoxy(15,25); cout<<"record deleted:"; getch(); } else { clrscr(); file.close(); } clrscr(); fee_menu(); } //********************** exam coading ***************************** void exam::examination()
  • 41. 41 { char ch; do { clrscr(); gotoxy(16,2); cout<<"EXAMINATION MENU OF COLLEGE SYSTEM"; gotoxy(4,3); cout<<"***************************************************************** *****"; sysdate(); gotoxy(20,6); cout<<"1.ADD COURSE EXAM"; gotoxy(20,8); cout<<"2.LIST OF COURSE EXAM & DATE"; gotoxy(20,10); cout<<"3.MODIFY COURSE EXAM"; gotoxy(20,12); cout<<"4.DELETE COURSE EXAM"; gotoxy(4,18); cout<<"***************************************************************** *****"; gotoxy(20,24); cout<<"<0>FOR RETURN"; gotoxy(30,22); cout<<"ENTER YOUR CHOICE:"; ch=getch(); switch(ch) { case '0': break; case '1': add_exam_term(); break; case '2': list_exam_term(); break; case '3': modify_exam_term(); break; case '4': del_exam_term(); break; } }while(!ch); } int exam::code() { int count=0;
  • 42. 42 f.open("exam.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { count=p.course_code; } count++; f.close(); return count; } void exam::add_exam_term() { clrscr(); gotoxy(16,2); cout<<"ADD EXAMINATION TERM"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,5); cout<<"Date:-"; gotoxy(5,7); cout<<"EXAM CODE:-"; p.course_code=code(); cout<<p.course_code; gotoxy(5,9); cout<<"COURSE NAME:-"; gets(p.course_name); gotoxy(5,11); cout<<"DURATION:-"; cin>>p.duration; gotoxy(5,13); cout<<"EXAM TERM:-"; gets(p.exam_term); gotoxy(5,15); cout<<"EXAM DATE:-"; gets(p.exam_date); f.open("exam.dat",ios::app|ios::out); f.seekp(0L,ios::end); f.write((char *)&p,sizeof(p)); f.close(); clrscr(); examination(); } void exam::modify_exam_term() { clrscr(); int count=0;
  • 43. 43 int no; long int pos; f.open("exam.dat",ios::in|ios::out); f.seekg(0L,ios::beg); gotoxy(16,2); cout<<"MODIFY EXAMINATION TERM"; gotoxy(4,3); cout<<"***************************************************************** ******"; gotoxy(5,7); cout<<"EXAM CODE:-"; cin>>no; while(f.read((char *)&p,sizeof(p))) { if(no==p.course_code) { gotoxy(5,5); cout<<"Date:-"; gotoxy(5,9); cout<<"COURSE NAME:-"; gets(p.course_name); gotoxy(5,11); cout<<"DURATION:-"; cin>>p.duration; gotoxy(5,13); cout<<"EXAM TERM:-"; gets(p.exam_term); gotoxy(5,15); cout<<"EXAM DATE:-"; gets(p.exam_date); pos=count*sizeof(p); f.seekp(pos,ios::beg); f.write((char *)&p,sizeof(p)); f.close(); } count++; } clrscr(); examination(); } void exam::list_exam_term() { int i=7; clrscr(); gotoxy(16,3); cout<<"LIST OF EXAMINATION"; gotoxy(4,4);
  • 44. 44 cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EXAM CODE COURSE NAME DURATION EXAM TERM EXAM DATE "; f.open("exam.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { gotoxy(7,i); cout<<p.course_code; gotoxy(20,i); cout<<p.course_name; gotoxy(35,i); cout<<p.duration; gotoxy(48,i); cout<<p.exam_term; gotoxy(61,i); cout<<p.exam_date; i++; if(i==25) { i=7; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,3); cout<<"LIST OF EXAMINATION"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EXAM CODE COURSE NAME DURATION EXAM TERM EXAM DATE "; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; f.close(); getch(); clrscr(); examination(); } void exam::del_exam_term() { int no;
  • 45. 45 clrscr(); gotoxy(16,2); cout<<"DELETE EXAMINATION TERM"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"EXAM CODE:-"; cin>>no; gotoxy(15,24); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') { fstream temp; f.open("exam.dat", ios::in); temp.open("TEMP.dat", ios::out); f.seekg(0, ios::beg); while (!f.eof()) { f.read((char *)&p, sizeof(p)); if (f.eof()) break; if (p.course_code != no) { temp.write((char *)&p, sizeof(p)); } } f.close(); temp.close(); f.open("exam.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&p, sizeof(p)); if (temp.eof()) break; if (p.course_code!= no) f.write((char *)&p, sizeof(p)); } f.close(); temp.close(); gotoxy(15,25); cout<<"record deleted:"; getch(); } else
  • 46. 46 { clrscr(); f.close(); } clrscr(); examination(); } //******************** EMPLOYEE MENU COADING *************************** void emp::employee() { clrscr(); gotoxy(16,3); cout<<"EMPLOYEE SYSTEMN"; gotoxy(4,4); cout<<"***************************************************************** *****"; sysdate(); gotoxy(15,6); cout<<"1.EMPLOYEE RECORD"; gotoxy(15,8); cout<<"2.EMPLOYEE SALARY "; gotoxy(4,10); cout<<"***************************************************************** ****"; gotoxy(20,24); cout<<"<0>FOR RETURN BACK:"; gotoxy(20,20); cout<<"enter your choice:"; ch=getch(); clrscr(); if(ch=='0'||ch=='1'||ch=='2') { switch(ch) { case '0': break; case '1': {
  • 47. 47 employee_record(); break; } case '2': { salary(); break; } } } else { gotoxy(25,10); cout<<"invalid option:"; sleep(2); clrscr(); employee(); }} void emp::employee_record() { gotoxy(16,3); cout<<"EMPLOYEE SYSTEMN"; gotoxy(4,4); cout<<"***************************************************************** *****"; sysdate(); gotoxy(15,6); cout<<"1.ADD EMPLOYEE "; gotoxy(15,8); cout<<"2.MODIFY EMPLOYEE "; gotoxy(15,11); cout<<"3.LIST OF EMPLOYEE"; gotoxy(15,14); cout<<"4.VIEW INDIVIDUAL EMPLOYEE"; gotoxy(15,17); cout<<"5.DELETE EMPLOYEE"; gotoxy(4,19); cout<<"***************************************************************** ****"; gotoxy(20,24); cout<<"<0>for exit program:"; gotoxy(20,20); cout<<"enter your choice:";
  • 48. 48 ch=getch(); clrscr(); switch(ch) { case '0': { employee(); break; } case '1': { add_employee(); break; } case '2': { modify_employee(); break; } case '3': { list_employee(); break; } case '4': { indi_employee(); break; case '5': { del_employee(); break; } } }} int emp::code() { int count=0; f.open("em.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { count=p.e_no; } count++; f.close(); return count;
  • 49. 49 } void emp::add_employee() { do { clrscr(); gotoxy(16,3); cout<<"ADD NEW EMPLOYEE"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EMPLOYEE NUMBER:"; p.e_no=code(); cout<<p.e_no; gotoxy(5,7); cout<<"NAME:"; gets(p.e_name); gotoxy(5,9); cout<<"DOB:"; gets(p.dob); gotoxy(5,11); cout<<"CITY:"; gets(p.city); gotoxy(5,13); cout<<"DISTRICT:"; gets(p.dist); gotoxy(5,15); cout<<"STATE:"; gets(p.state); gotoxy(5,17); cout<<"ZIP:"; gets(p.zip); gotoxy(5,19); cout<<"DESIGNATION:"; gets(p.desi); gotoxy(5,21); cout<<"DATE OF JOIN:"; gets(p.doj); gotoxy(5,23); cout<<"DEPARTMENT:"; gets(p.dept); gotoxy(30,21); cout<<"SALARY:"; cin>>p.bsal; gotoxy(30,23); cout<<"GRADE:"; cin>>p.g;
  • 50. 50 f.open("em.dat",ios::app|ios::out); f.seekg(0L,ios::end); f.write((char *)&p,sizeof(p)); f.close(); gotoxy(20,25); cout<<"more(y/n):";ch=getch(); }while(ch=='y'); clrscr(); employee_record(); } void emp::modify_employee() { int count=0; int no; long int pos; f.open("em.dat",ios::in|ios::out); f.seekg(0L,ios::beg); clrscr(); gotoxy(16,3); cout<<"MODIFY EMPLOYEE"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EMPLOYEE NUMBER:"; cin>>no; while(f.read((char *)&p,sizeof(p))) { if(no==p.e_no) { gotoxy(5,7); cout<<"NAME:"; gets(p.e_name); gotoxy(5,9); cout<<"DOB:"; gets(p.dob); gotoxy(5,11); cout<<"CITY:"; gets(p.city); gotoxy(5,13); cout<<"DISTRICT:"; gets(p.dist); gotoxy(5,15); cout<<"STATE:"; gets(p.state); gotoxy(5,17);
  • 51. 51 cout<<"ZIP:"; gets(p.zip); gotoxy(5,19); cout<<"DESIGNATION:"; gets(p.desi); gotoxy(5,21); cout<<"DATE OF JOIN:"; gets(p.doj); gotoxy(5,23); cout<<"DEPARTMENT:"; gets(p.dept); gotoxy(30,21); cout<<"SALARY:"; cin>>p.bsal; gotoxy(30,23); cout<<"GRADE:"; cin>>p.g; pos=count*sizeof(p); f.seekp(pos,ios::beg); f.write((char *)&p,sizeof(p)); f.close(); } count++; } clrscr(); employee_record(); } void emp::list_employee() { int i=8; clrscr(); gotoxy(16,3); cout<<"ADD NEW EMPLOYEE"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EMP CODE EMP NAME DESIGATION SALARY"; gotoxy(5,6); cout<<"***************************************************************** ********"; f.open("em.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { gotoxy(8,i); cout<<p.e_no; gotoxy(17,i);
  • 52. 52 cout<<p.e_name; gotoxy(40,i); cout<<p.desi; gotoxy(57,i); cout<<p.bsal; i++; if(i==24) { i=8; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,3); cout<<"ADD NEW EMPLOYEE"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EMP CODE EMP NAME DESIGATION SALARY"; gotoxy(5,6); cout<<"***************************************************************** ********"; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; f.close(); getch(); clrscr(); employee_record(); } void emp::indi_employee() { int count=0; int no; long int pos; clrscr(); f.open("em.dat",ios::in); f.seekg(0L,ios::beg); clrscr(); gotoxy(16,3); cout<<"INDIVIDUAL LIST OF EMPLOYEE"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"EMPLOYEE NUMBER:";
  • 53. 53 cin>>no; while(f.read((char *)&p,sizeof(p))) { if(no==p.e_no) { gotoxy(5,7); cout<<"NAME:"; cout<<p.e_name; gotoxy(5,9); cout<<"DOB:"; cout<<p.dob; gotoxy(5,11); cout<<"CITY:"; cout<<p.city; gotoxy(5,13); cout<<"DISTRICT:"; cout<<p.dist; gotoxy(5,15); cout<<"STATE:"; cout<<p.state; gotoxy(5,17); cout<<"ZIP:"; cout<<p.zip; gotoxy(5,19); cout<<"DESIGNATION:"; cout<<p.desi; gotoxy(5,21); cout<<"DATE OF JOIN:"; cout<<p.doj; gotoxy(5,23); cout<<"DEPARTMENT:"; cout<<p.dept; gotoxy(30,21); cout<<"SALARY:"; cout<<p.bsal; gotoxy(30,23); cout<<"GRADE:"; cout<<p.g; } count++; } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; f.close(); getch(); clrscr(); employee_record(); }
  • 54. 54 void emp::del_employee() { int no; clrscr(); gotoxy(16,2); cout<<"DELETE COURSE RECORD"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"COURSE CODE:-"; cin>>no; gotoxy(15,24); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') { fstream temp; f.open("em.dat", ios::in); temp.open("TEMP.dat", ios::out); f.seekg(0, ios::beg); while (!f.eof()) { f.read((char *)&p, sizeof(p)); if (f.eof()) break; if (p.e_no != no) { temp.write((char *)&p, sizeof(p)); } } f.close(); temp.close(); f.open("em.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&p, sizeof(p)); if (temp.eof()) break; if (p.e_no!= no) f.write((char *)&p, sizeof(p)); } f.close(); temp.close();
  • 55. 55 gotoxy(15,25); cout<<"record deleted:"; getch(); } else { clrscr(); f.close(); } clrscr(); employee_record(); } void emp::salary() { clrscr(); gotoxy(16,3); cout<<"EMPLOYEE SALARY"; gotoxy(4,4); cout<<"***************************************************************** *****"; sysdate(); gotoxy(15,6); cout<<"1.SALARY SLIP"; gotoxy(15,8); cout<<"2.CHANE SALARY "; gotoxy(4,10); cout<<"***************************************************************** ****"; gotoxy(20,24); cout<<"<0>FOR RETURN BACK:"; gotoxy(20,20); cout<<"enter your choice:"; ch=getch(); clrscr(); switch(ch) { case '0': { employee(); break; } case '1': { salary_slip(); break; } case '2':
  • 56. 56 { change_salary(); break; } } } void emp::salary_slip() { int i=8; clrscr(); gotoxy(16,2); cout<<"SALARY SLIP"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"EMP CODE EMP NAME DESIGATION SALARY"; gotoxy(4,6); cout<<"***************************************************************** ********"; f.open("em.dat",ios::in); f.seekg(0L,ios::beg); while(f.read((char *)&p,sizeof(p))) { gotoxy(8,i); cout<<p.e_no; gotoxy(17,i); cout<<p.e_name; gotoxy(40,i); cout<<p.desi; p.ta=p.bsal*5/100; p.da=p.bsal*10/100; p.hra=p.bsal*12/100; p.pf=p.bsal*5/100; p.tsal=(p.bsal+p.ta+p.da+p.hra)-p.pf; gotoxy(57,i); cout<<p.tsal; i++; if(i==24) { i=8; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,2); cout<<"SALARY SLIP"; gotoxy(4,4);
  • 57. 57 cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"EMP CODE EMP NAME DESIGATION SALARY"; gotoxy(4,6); cout<<"***************************************************************** ********"; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; f.close(); getch(); clrscr(); salary(); } void emp::change_salary() { int count=0; int no; long int pos; gotoxy(16,2); cout<<"MODIFY SALARY "; gotoxy(4,4); cout<<"***************************************************************** *******"; f.open("em.dat",ios::in|ios::out); f.seekg(0L,ios::beg); gotoxy(8,6); cout<<"EMPLOYEE NUMBER:"; cin>>no; while(f.read((char *)&p,sizeof(p))) { if(no==p.e_no) { gotoxy(8,9); cout<<"SALARY:"; cin>>p.bsal; pos=count*sizeof(p); f.seekp(pos,ios::beg); f.write((char *)&p,sizeof(p)); f.close(); } count++; } clrscr(); salary(); }
  • 58. 58 //*************************** MENU6 COADING ***************************** void library::library_menu() { clrscr(); gotoxy(16,3); cout<<"LIBRARY SYSTEM"; gotoxy(4,4); cout<<"***************************************************************** ******"; sysdate(); gotoxy(20,24); cout<<"<0>for return"; gotoxy(15,6); cout<<"1.BOOKS RECORD"; gotoxy(15,10); cout<<"2.MEMBER RECORD"; gotoxy(15,14); cout<<"3.BOOK ISSUE/RETURN"; gotoxy(4,18); cout<<"***************************************************************** ********"; gotoxy(20,20); cout<<"Enter your choice:"; ch=getch(); clrscr(); switch(ch) { case '0': break; case '1': { book_record(); break; } case '2': { member_record(); } case '3': { book_issue_return(); } }
  • 59. 59 } void library::book_record() { gotoxy(16,3); cout<<"BOOKS RECORD MENU"; gotoxy(4,4); cout<<"***************************************************************** *****"; sysdate(); gotoxy(15,6); cout<<"1.ADD NEW BOOK RECORD"; gotoxy(15,8); cout<<"2.MODIFY BOOK RECORD"; gotoxy(15,11); cout<<"3.LIST OF BOOK RECORD"; gotoxy(15,14); cout<<"4.DELETE BOOK RECORD"; gotoxy(4,18); cout<<"***************************************************************** ******"; gotoxy(20,24); cout<<"<0> for return:"; gotoxy(20,20); cout<<"Enter your choice:"; ch=getch(); clrscr(); switch(ch) { case '0': { library(); break; } case '1': { add_book(); break; } case '2': { modify_book(); break; } case '3': { list_book(); break;
  • 60. 60 } case '4': { delete_book(); break; } } } int library::bcode() { int count=0; file.open("book.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&s,sizeof(s))) { count=s.book_no; } count++; file.close(); return count; } void library::add_book() { clrscr(); gotoxy(16,3); cout<<"ADD BOOKS RECORD MENU"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(8,7); cout<<"BOOK NUMBER:-"; s.book_no=bcode(); cout<<s.book_no; gotoxy(8,9); cout<<"BOOK TITLE:-"; gets(s.book_title); gotoxy(8,11); cout<<"AURTHER NAME:-"; gets(s.aname); gotoxy(8,13); cout<<"PUBLISHER NAME:-"; gets(s.pname); gotoxy(8,15); cout<<"PRICE:-"; cin>>s.price; gotoxy(8,17);
  • 61. 61 cout<<"NUMBER OF PAGE:-"; cin>>s.page_no; gotoxy(8,19); cout<<"SAVE(Y/N):-"; cout<<"s"; getch(); file.open("book.dat",ios::app|ios::out); file.seekp(0L,ios::end); file.write((char *)&s,sizeof(s)); file.close(); clrscr(); book_record(); } void library::modify_book() { int count=0; int no; long int pos; file.open("book.dat",ios::in|ios::out); file.seekg(0L,ios::beg); clrscr(); gotoxy(16,3); cout<<"MODIFY BOOKS RECORD MENU"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(8,7); cout<<"BOOK NUMBER:-"; cin>>no; while(file.read((char *)&s,sizeof(s))) { if(no==s.book_no) { gotoxy(8,5); cout<<"Date:-"; gotoxy(8,9); cout<<"BOOK TITLE:-"; gets(s.book_title); gotoxy(8,11); cout<<"AURTHER NAME:-"; gets(s.aname); gotoxy(8,13); cout<<"PUBLISHER NAME:-"; gets(s.pname); gotoxy(8,15); cout<<"PRICE:-"; cin>>s.price; gotoxy(8,17); cout<<"NUMBER OF PAGE:-";
  • 62. 62 cin>>s.page_no; gotoxy(8,19); cout<<"SAVE(Y/N):-"; cout<<"s"; getch(); pos=count*sizeof(s); file.seekp(pos,ios::beg); file.write((char *)&s,sizeof( s)); file.close(); } count++; } clrscr(); book_record(); } void library::list_book() { int i=8; clrscr(); gotoxy(16,3); cout<<"LIST OF BOOKS"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"BOOK NO. BOOK NAME AURTHER NAME PUBLISHER NAME PRICE PAGES"; gotoxy(4,6); cout<<"***************************************************************** *********"; file.open("book.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&s,sizeof(s))) { gotoxy(7,i); cout<<s.book_no; gotoxy(15,i); cout<<s.book_title; gotoxy(30,i); cout<<s.aname; gotoxy(45,i); cout<<s.pname; gotoxy(61,i); cout<<s.price; gotoxy(70,i); cout<<s.page_no; i++; if(i==25) { i=9;
  • 63. 63 gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,3); cout<<"LIST OF BOOKS"; gotoxy(4,4); cout<<"***************************************************************** ********"; gotoxy(5,5); cout<<"BOOK NO. BOOK NAME AURTHER NAME PUBLISHER NAME PRICE PAGES"; gotoxy(4,6); cout<<"***************************************************************** *********"; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; file.close(); getch(); clrscr(); book_record(); } void library::delete_book() { int no; clrscr(); gotoxy(16,2); cout<<"DELETE BOOK RECORD"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"BOOK NUMBER:-"; cin>>no; gotoxy(15,20); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') { fstream temp; file.open("book.dat", ios::in); temp.open("TEMP.dat", ios::out); file.seekg(0, ios::beg); while (!file.eof())
  • 64. 64 { file.read((char *)&s, sizeof(s)); if (file.eof()) break; if (s.book_no != no) { temp.write((char *)&s, sizeof(s)); } } file.close(); temp.close(); file.open("book.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&s, sizeof(s)); if (temp.eof()) break; if (s.book_no!= no) file.write((char *)&s, sizeof(s)); } file.close(); temp.close(); gotoxy(15,22); cout<<"Record deleted:"; getch(); } else { clrscr(); file.close(); } clrscr(); book_record(); } void library::member_record() { clrscr(); gotoxy(16,3); cout<<"MEMBER RECORD MENU"; gotoxy(4,4);
  • 65. 65 cout<<"***************************************************************** ********"; sysdate(); gotoxy(15,8); cout<<"1.ADD NEW MEMBER RECORD"; gotoxy(15,11); cout<<"2.MODIFY MEMBER RECORD"; gotoxy(15,14); cout<<"3.LIST OF MEMBER RECORD"; gotoxy(15,17); cout<<"4.DELETE MEMBER RECORD"; gotoxy(4,19); cout<<"***************************************************************** ********"; gotoxy(20,25); cout<<"<0> for return:"; gotoxy(20,20); cout<<"Enter your choice:"; ch=getch(); clrscr(); switch(ch) { case '0': { library(); break; } case '1': { add_member(); break; } case '2': { modify_member(); break; } case '3': { list_member(); break; } case '4': { delete_member(); break; } } }
  • 66. 66 int library::mcode() { int count=0; file.open("mem.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&s,sizeof(s))) { count=s.mem_no; } count++; file.close(); return count; } void library::add_member() { clrscr(); gotoxy(16,3); cout<<"ADD NEW MEMBER"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(8,7); cout<<"MEMBER NUMBER:-"; s.mem_no=mcode(); cout<<s.mem_no; gotoxy(8,9); cout<<"MEMBER NAME:-"; gets(s.mem_name); gotoxy(8,11); cout<<"ROLL NUMBER:-"; cin>>s.rno; gotoxy(8,13); cout<<"CLASS NAME:-"; gets(s.class_name); gotoxy(8,15); cout<<"ADDRESS:-"; gets(s.add); gotoxy(8,17); cout<<"MEMBERSHIP FEE:-"; cin>>s.mem_fee; gotoxy(8,19); cout<<"SAVE(Y/N):-"; cout<<"s"; getch();
  • 67. 67 file.open("mem.dat",ios::app|ios::out); file.seekp(0L,ios::end); file.write((char *)&s,sizeof(s)); file.close(); clrscr(); member_record(); } void library::modify_member() { int count=0; int no; long int pos; file.open("mem.dat",ios::in|ios::out); file.seekg(0L,ios::beg); clrscr(); gotoxy(16,3); cout<<"MODIFY MEMBER RECORD"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(8,7); cout<<"MEMBER NUMBER:-"; cin>>no; while(file.read((char *)&s,sizeof(s))) { if(no==s.mem_no) { gotoxy(8,5); cout<<"Date:-"; gotoxy(8,9); cout<<"MEMBER NAME:-"; gets(s.mem_name); gotoxy(8,11); cout<<"ROLL NUMBER:-"; cin>>s.rno; gotoxy(8,13); cout<<"CLASS NAME:-"; gets(s.class_name); gotoxy(8,15); cout<<"ADDRESS:-"; gets(s.add); gotoxy(8,17); cout<<"MEMBERSHIP FEE:-"; cin>>s.mem_fee; gotoxy(8,19); cout<<"SAVE(Y/N):-"; cout<<"s";
  • 68. 68 getch(); pos=count*sizeof(s); file.seekp(pos,ios::beg); file.write((char *)&s,sizeof(s)); file.close(); } count++; } clrscr(); member_record(); } void library::list_member() { int i=8; clrscr(); gotoxy(16,3); cout<<"LIST OF MEMBER"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"MEMBER NO. MEMBER NAME ROLL NO. CLASS FEE"; gotoxy(4,6); cout<<"***************************************************************** *******"; file.open("mem.dat",ios::in); file.seekp(0l,ios::beg); while(file.read((char *)&s,sizeof(s))) { gotoxy(8,i); cout<<s.mem_no; gotoxy(18,i); cout<<s.mem_name; gotoxy(42,i); cout<<s.rno; gotoxy(55,i); cout<<s.class_name; gotoxy(65,i); cout<<s.mem_fee; i++; if(i==25) { i=8; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,3); cout<<"LIST OF MEMBER"; gotoxy(4,4);
  • 69. 69 cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"MEMBER NO. MEMBER NAME ROLL NO. CLASS FEE"; gotoxy(4,6); cout<<"***************************************************************** *******"; } } gotoxy(20,24); cout<<"PRESS ESC TO BACK"; file.close(); getch(); clrscr(); member_record(); } void library::delete_member() { int no; clrscr(); gotoxy(16,2); cout<<"DELETE MEMBER RECORD"; gotoxy(4,3); cout<<"***************************************************************** ****"; fstream out; gotoxy(5,5); cout<<"MEMBERSHIP NUMBER:-"; cin>>no; gotoxy(15,20); cout<<"DELETE(Y/N):-"; char c; cin>>c; if(c=='y') { fstream temp; file.open("mem.dat", ios::in); temp.open("TEMP.dat", ios::out); file.seekg(0, ios::beg); while (!file.eof()) { file.read((char *)&s, sizeof(s)); if (file.eof()) break; if (s.mem_no != no) { temp.write((char *)&s, sizeof(s));
  • 70. 70 } } file.close(); temp.close(); file.open("mem.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&s, sizeof(s)); if (temp.eof()) break; if (s.mem_no!= no) file.write((char *)&s, sizeof(s)); } file.close(); temp.close(); gotoxy(15,25); cout<<"record deleted:"; getch(); } else { clrscr(); file.close(); } clrscr(); member_record(); } void library::book_issue_return() { clrscr(); gotoxy(16,3); cout<<"BOOKS ISSUE RETURN"; gotoxy(4,4); cout<<"***************************************************************** *******"; sysdate(); gotoxy(15,8); cout<<"1.BOOK ISSUE"; gotoxy(15,10); cout<<"2.BOOK RETURN"; gotoxy(15,12); cout<<"3.LIST OF ISSUED BOOK"; gotoxy(15,14);
  • 71. 71 cout<<"4.LIST OF RETURN BOOK"; gotoxy(4,18); cout<<"***************************************************************** *******"; gotoxy(20,24); cout<<"<0>FOR RETURN"; gotoxy(20,20); cout<<"Enter your choice:"; ch=getch(); clrscr(); switch(ch) { case '0': library(); break; case '1': { book_issue(); break; } case '2': { book_return(); break; } case '3': { list_issue_book(); break; } case '4': list_return_book(); } } void library::book_issue() { a: clrscr(); char c; gotoxy(16,3); cout<<"BOOK ISSUE "; gotoxy(4,4); cout<<"***************************************************************** *******"; ifstream f1; f1.open("book.dat",ios::in); f1.seekg(0L,ios::beg); gotoxy(8,5);
  • 72. 72 cout<<"Date:-"; gotoxy(8,7); cout<<"BOOK NUMBER:-"; int no; cin>>no; int flag=found(no); if (flag ==1) { goto a; } while(f1.read((char *)&s,sizeof(s))) { if(no==s.book_no) { s.book_no=no; gotoxy(8,9); cout<<"BOOK TITLE:-"; cout<<s.book_title; gotoxy(8,11); cout<<"AURTHER NAME:-"; cout<<s.aname; gotoxy(8,13); cout<<"PUBLISHER NAME:-"; cout<<s.pname; gotoxy(8,15); cout<<"PRICE:-"; cout<<s.price; gotoxy(8,17); cout<<"NUMBER OF PAGE:-"; cout<<s.page_no; gotoxy(8,19); cout<<"MEMBERSHIP NUMBER:-"; int m_no; cin>>s.mem_no; gotoxy(8,21); cout<<"ROLL:-"; cin>>s.roll; gotoxy(8,23); cout<<"CLASS:-"; cin>>s.clas; gotoxy(8,25); cout<<"SAVE(Y/N):-"; cin>>c; break; }
  • 73. 73 } if(c=='y') { file.open("is.dat",ios::app|ios::out); file.seekp(0L,ios::end); file.write((char *)&s,sizeof(s)); file.close(); f1.close(); } else { clrscr(); file.close(); f1.close(); } clrscr(); book_issue_return(); } int library::found(int a) { fstream f1; int flag=0; f1.open("is.dat",ios::in); file.seekg(0L,ios::beg); while(f1.read((char *)&s,sizeof(s))) { if(a==0) break; if(a==s.book_no) { gotoxy(20,24); flag=1; cout<<"book are allready issued"; gotoxy(20,25); cout<<"please enter '0' in book number to return back:"; getch(); } } f1.close(); return(flag); } void library::book_return() { clrscr(); int m_no;
  • 74. 74 int no; gotoxy(16,3); cout<<"BOOK RETURN"; gotoxy(4,4); cout<<"***************************************************************** *******"; file.open("is.dat",ios::in); file.seekg(0L,ios::beg); gotoxy(8,5); cout<<"Date:-"; gotoxy(8,6); cout<<"MEMBERSHIP NUMBER:-"; cin>>m_no; gotoxy(8,8); cout<<"BOOK NUMBER:-"; cin>>no; while(file.read((char *)&s,sizeof(s))) { if(no==s.book_no && m_no==s.mem_no) { gotoxy(8,9); cout<<"BOOK TITLE:-"; cout<<s.book_title; gotoxy(8,11); cout<<"AURTHER NAME:-"; cout<<s.aname; gotoxy(8,13); cout<<"PUBLISHER NAME:-"; cout<<s.pname; gotoxy(8,15); cout<<"PRICE:-"; cout<<s.price; gotoxy(8,17); cout<<"NUMBER OF PAGE:-"; cout<<s.page_no; gotoxy(8,21); cout<<"ROLL:-"; cout<<s.roll; gotoxy(8,23); cout<<"CLASS:-"; cout<<s.clas; } } file.close(); gotoxy(15,24); cout<<"RETURN(Y/N):-"; char c; cin>>c; if(c=='y')
  • 75. 75 { fstream temp; file.open("is.dat", ios::in); temp.open("TEMP.dat", ios::out); file.seekg(0, ios::beg); while (!file.eof()) { file.read((char *)&s, sizeof(s)); if (file.eof()) break; if (s.book_no != no) { temp.write((char *)&s, sizeof(s)); } } file.close(); temp.close(); file.open("is.dat", ios::out); temp.open("TEMP.dat", ios::in); temp.seekg(0, ios::beg); while (!temp.eof()) { temp.read((char *)&s, sizeof(s)); if (temp.eof()) break; if (s.book_no != no) file.write((char *)&s, sizeof(s)); } file.close(); temp.close(); gotoxy(15,25); cout<<"record deleted:"; getch(); clrscr(); book_issue_return(); } else { clrscr(); file.close(); } remove("temp.dat"); } void library::list_issue_book() { int i=8; clrscr(); gotoxy(16,3); cout<<"LIST OF ISSUED BOOK";
  • 76. 76 gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP NUMBER"; gotoxy(4,6); cout<<"***************************************************************** ********"; file.open("is.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&s,sizeof(s))) { gotoxy(7,i); cout<<s.book_no; gotoxy(15,i); cout<<s.book_title; gotoxy(30,i); cout<<s.aname; gotoxy(70,i); cout<<s.mem_no; i++; if(i==25) { i=8; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,3); cout<<"LIST OF RETURN BOOK"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP NUMBER"; gotoxy(4,6); cout<<"***************************************************************** ********"; } } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; file.close(); getch(); clrscr(); book_issue_return(); }
  • 77. 77 void library::list_return_book() { int i=8; clrscr(); gotoxy(16,3); cout<<"BOOKS ISSUE RETURN"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP NUMBER"; gotoxy(4,6); cout<<"***************************************************************** ********"; file.open("return.dat",ios::in); file.seekg(0L,ios::beg); while(file.read((char *)&s,sizeof(s))) { gotoxy(7,i); cout<<s.book_no; gotoxy(15,i); cout<<s.book_title; gotoxy(30,i); cout<<s.aname; gotoxy(70,i); cout<<s.mem_no; i++; if(i==25) { i=8; gotoxy(20,24); cout<<"PRESS ANY KEY TO CONTINUE"; getch(); clrscr(); gotoxy(16,3); cout<<"BOOKS ISSUE RETURN"; gotoxy(4,4); cout<<"***************************************************************** *******"; gotoxy(5,5); cout<<"BOOK NO. BOOK NAME AURTHER NAME MEMBERSHIP NUMBER"; gotoxy(4,6); cout<<"***************************************************************** ********"; }
  • 78. 78 } gotoxy(20,24); cout<<"PRESS ANY KEY TO BACK"; file.close(); getch(); clrscr(); book_issue_return(); } //********************** main menu ****************************** class main_menu:library { public: main_menu() { date d; getdate(&d); int year=d.da_year; if(year>=2019) { cout<<"some files are missing or deleted in your software please check:"; cout<<endl<<"press any key:"; getch(); exit(0); } } void representation(); void list() { char ch; do { clrscr(); gotoxy(16,2); cout<<"MAIN MENU OF COLLEGE SYSTEM"; gotoxy(4,3); cout<<"***************************************************************** *****"; sysdate(); gotoxy(20,6); cout<<"1.COURSE LIST"; gotoxy(20,8); cout<<"2.STUDENT LIST"; gotoxy(20,10); cout<<"3.FEE RECORD"; gotoxy(20,12);
  • 79. 79 cout<<"4.EXAMINATION DEPARTMENT"; gotoxy(20,14); cout<<"5.EMPLOYEE RECORD"; gotoxy(20,16); cout<<"6.LIBRAARY SYSTEM"; gotoxy(4,19); cout<<"***************************************************************** *****"; gotoxy(20,24); cout<<"<0>FOR EXIT PROGRAM"; gotoxy(30,22); cout<<"ENTER YOUR CHOICE:"; ch=getch(); switch(ch) { case '0': exit(0); case '1': course_menu(); break; case '2': student_menu(); break; case '3': fee_menu(); break; case '4': examination(); break; case '5': employee(); break; case '6': library_menu(); break; } }while(ch); } }; void main_menu::representation() { int gd=DETECT,gm; initgraph(&gd,&gm,"../bgi"); int l=getmaxx()/2-10,t=getmaxy()/2-5,r=getmaxx()/2+10,b=getmaxy()/2+5; while(l<=625 && b<=470) {
  • 80. 80 cleardevice(); setfillstyle(8,4); bar(l-10,t-8,r+10,b+8); setfillstyle(8,1); bar(l,t,r,b); delay(100); l-=16;t-=12;r+=16;b+=12; } setlinestyle(2,4,1); // Designing of corner setcolor(3); setfillstyle(8,3); pieslice(21,18,270,360,50); setfillstyle(8,3); pieslice(617,18,270,180,50); // outline boundry setcolor(12); rectangle(l+5,t+2,r-5,b-2); setcolor(11); rectangle(l+16,t+12,r-16,b-12); sleep(1); // sepretor setfillstyle(10,3); bar(22,410,617,423); delay(200); // designing of symbol setcolor(11); setfillstyle(0,4); rectangle(80,150,200,300); setcolor(11); setfillstyle(10,4); line(90,100,190,100); setcolor(11); setfillstyle(10,4); line(90,100,50,170); setcolor(11); setfillstyle(10,4); line(190,100,230,170); setcolor(11); setfillstyle(10,4); line(50,170,230,170); setcolor(11); setfillstyle(10,4); line(200,250,250,250); setcolor(11); setfillstyle(10,4); line(250,250,250,250); setcolor(11); setfillstyle(10,4); line(50,350,250,350); setcolor(11); setfillstyle(10,4); line(50,250,80,250); setcolor(11); setfillstyle(10,4); line(50,250,50,350); setcolor(11); setfillstyle(10,4); line(250,250,250,350); setcolor(11); setfillstyle(10,4); line(160,260,160,300); setcolor(11); setfillstyle(10,4); line(135,260,135,300); setcolor(11); setfillstyle(10,4); line(135,260,160,260); setcolor(11); setfillstyle(10,4); line(170,80,170,100); setcolor(11); setfillstyle(10,4); line(160,80,160,100); setcolor(11); setfillstyle(10,4); line(150,80,175,80); setcolor(11); setfillstyle(10,4); line(165,60,155,80); setcolor(11); setfillstyle(10,4); line(165,60,180,80); // Title char* a[4]={"WELCOME","TO", "COLLAGE MANAGEMENT","SYSTEM"}; int x[4]={330,390,250,330}; int y[4]={210,250,280,310}; setcolor(11); for(int i=0;i<4;i++) { settextstyle(1,0,5); sleep(1); if(i==1||i==2) settextstyle(1,0,4); outtextxy(x[i],y[i],a[i]); }
  • 81. 81 rectangle(21,409,617,424); // processbar setfillstyle(2,4); for(i=21;i<598;i++) { bar(i,410,i+20,423); delay(20); } setcolor(11); rectangle(l+5,t+2,r-5,b-2); setcolor(9); rectangle(l+16,t+12,r-16,b-12); setcolor(4); pieslice(21,18,270,360,50); pieslice(617,18,270,180,50); // Status fonr_names setcolor(11); settextstyle(1,0,1); outtextxy(150,430,"<<--* PRESS ANY KEY FOR NEXT *-- >>"); getch(); // ending of welcome page while(l<(getmaxx()/2-10) && b>(getmaxy()/2+5)) { cleardevice(); setfillstyle(8,1); bar(l,t,r,b); setfillstyle(8,4); bar(l+10,t+8,r-10,b-8); delay(100); l+=16;t+=12;r-=16;b-=12; } delay(100); cleardevice(); closegraph(); } void password() { int gd=DETECT,gm; initgraph(&gd,&gm,"../bgi"); cleardevice(); char uid[15],*pass; setcolor(12); rectangle(10,8,628,470); setcolor(11); rectangle(26,18,617,460); sleep(1); settextstyle(1,0,4); outtextxy(40,100,"USER AUTHORIZATION CHECK SCREEN"); settextstyle(1,0,1); outtextxy(50,130,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~"); settextstyle(1,0,3); outtextxy(200,210,"USER ID:"); outtextxy(200,240,"PASSWORD:"); x: gotoxy(45,15); cin>>uid; gotoxy(45,17); pass=getpass(" "); if(strcmp(uid,"priee")==0 && strcmp(pass,"BCAIII")==0)
  • 82. 82 { gotoxy(35,22); cout<<"Authorized user"; sleep(2); gotoxy(35,22); cout<<" "; main_menu mm; mm.representation(); mm.list(); } else { gotoxy(35,22); cout<<"Unauthorized User"; sleep(2); gotoxy(35,22); cout<<" "; gotoxy(45,15); cout<<" "; gotoxy(45,17); cout<<" "; goto x; } cleardevice(); closegraph(); } void main() { clrscr(); password(); clrscr(); }
  • 84. 84
  • 85. 85
  • 86. 86
  • 87. 87
  • 88. 88
  • 89. 89
  • 90. 90
  • 91. 91
  • 92. 92 `
  • 93. 93 PERT CHART May 30 Aug 22 May10,2018 May 15 June 15 July 30 Aug 15 June20 June 5 Writing Manual Start Analysis Design coding Finish Testing & implementation Design Review Feasibility study
  • 94. 94
  • 95. 95 Testing The testing process focusing on the logical internals of the Software, ensuring that all statements have been tested, and one the functional external, that is, conducing test to uncover errors and ensure that defined input will produce actual results that agrees with required results. Unit Testing: In this project the smallest testable unit is the encapsulated class and object. Because in OOPs encapsulation derives the definition of classes and objects. Class testing for the OOPs software is driven by the operations encapsulated by the class and the state, behaviors of the class. Integration Testing: There are two different strategies for integration testing for OOPs systems. The first, thread-based testing integrates the set of classes required to respond to one input or even for the system. Each thread is integrated and tested individually. Regression testing is applied to make ensure that no side effect occurs. The second integration approach, use-based testing, begins the construction of the system by testing those classes that uses very few server classes. Validation Testing: At the validation or system level, the details of class connection are tested. Now, the validation of OOPs software focuses on user-visible actions and users- recognizable output from the system. After conducting validation tests, we find that the following validations are implemented properly for this project: i. Transaction date is the system date/current date. ii. Initial balance for any registration should not be less than Rs 5000/- Random Testing We apply random testing for classes and sub classes. Each of there operation is applied for class account but certain constrains are implied. Example: - the account no must be open before other operation can be applied and closed after all operations are completed.
  • 96. 96 Implementation & Maintanance Implementation: This section discussed three aspects of implementation 1) Training personnel: Those who are directly or indirectly related with system development work must know in detail with their roles will be , how they can make the efficient use of the system & what the system will do or not do for them . Here both the employees & users need training. a) System operator training: * How to turn the equipment on and use it. * How to power off & knowledge what constitutes normal operation? b) User training: * User training deals with operation of system itself, with proper attention given to the data handling technique. * Users are trained in method of entering transaction ending & view reports. 2) Conversion Method: For conversion of old system to new one we employee parallel system to run both the system in parallel under this approach, user continue to operate their old system as well as this start using the new system. This method is safest one because it insure that in case of any problem in using the new system, the organization can still fall back to the hold system without loss of time & money we were prepared a list of all tasks including the following: - * List of all files that are required during conversion. * Identify all data required to build new files during conversion. * Identify all controls to be made during conversion. * Assign the responsibility for each task. 3) Post implementation Review: After the system is implemented and conversion is complete, there is a time to determine whether the system is meeting the expectation & where improvement is needed. Keeping these facts in mind, we prepare a formal review plan. An overall plan covers the following areas: - a) Administrative Plan: Review area objectives, operating costs, actual operating performance & benefits.
  • 97. 97 b) Personnel requirement plan: Review performance objectives & training performance to data. c) Hardware Plan: Review performance specification. System maintenance: System maintenance is actually the implementation of the post implementation review plan .So, at this stage we implement the following maintenance area: - 1) Administrative maintenance: - The following activities are maintained under this maintenance. * User objective maintenance: This is an extremely critical area since it may be possible that over the period of time either the system doesn’t meet the initial objectives of the users or the user objectives get changed as a result of the changes in the overall objectives of the organization. * Operating cost and benefit maintenance: Under this maintenance current budget are design to manipulate the cost and saving of the system. 2) Personnel requirement maintenance: Under this maintenance all activities involving system personnel & staff member associated with the system are maintained i.e. * Maintain the performance of personnel objectives with current performance labels; * Maintain training performance through testing & conducting interviews. 3) Hardware maintenance: The hardware of the new system is also maintained including services, terminals & communication networks. The main target is a comparison of current performance with design specification. For implementing the overall post implementation plans, actual we employee little effort. Because most of essential tasks that are maintained in this stage are already performed with more efficiently .For example: - * During system development the requirement was defined more accurately. * System documentation was prepared in a better way. * Processing logic was also design using more effective way. * Existing tool and technique are better utilized. * System engineering courses are managed effectively.
  • 98. 98 Cost Estimation When we start this new project, the first question that we were heard was “How much will this cost?“ while cost are a major factor in deciding both the scope of new system & even whether or not to have one the bottom line setup costs are not important as deciding overall return from the new system. An overall return factors in several cost element including: - * Cost of setup, including hardware & software. * Cost of converting exiting information. * Cost of creating new information. * Cost of designing & programming for new system application. * Cost of training and while that can quickly add up to a significant sum, we will see that cost is reduced in other area including: - 1) Communication: Communication is improved. The way of an organization communicates its message is vital to the success of the organization. Communicating with both the employee & customers can change the way people see that organization. Employee often complains about poor communication, they feel left out of the loop or like they were working on a project that has no focus or purpose. Using this new computerized system employee can share information in an easy to use format that removes many organization constraints. 2) Printing: Reports will still need to be printed, but employee will only have to print the relevant information as needed .A significant saving over printing & binding the entire reports. 3) Security: Safe guarding sensitive & important data in a form i.e. accessible to the only authorized personal.
  • 99. 99 Future Scope of the Project Normally the “COLLEGE MANAGEMENT SYSYTEM “ covers different area of college. How ever this project “COLLEGE MANAGEMENT SYSYTEM “ only the implementation of daily transaction records .The data accurate in this project is used periodically to provide different type of managerial information. The future application of this “COLLEGE MANAGEMENT SYSYTEM “ is: - * This overall project is basically written in function & can be used in conjunction with other program, for future development “COLLEGE MANAGEMENT SYSYTEM”. * We have provided many data function through which any one can know about any information of students, course, fee details employee details, and library details. * The project is using the modern trend OOPS that gives better design to the software, which help in maintaining code in terms of reusability, modifiability. * These attribute a quite wanting in today’s complex software scenario. OOPS giving a better designs objective taken this problem & provide better design objective.
  • 100. 100 Validation checks While inputting the data records the following validations will be checked : i) The Roll may be opened by a person on his own behalf , but more than one roll can’t be opened in the same roll number because the roll numbers are generated automatically. ii) The name, address should not be blank and not greater than 25 characters. iii) The password should not be blank and also not greater than 8 character. iv) The password that was entered is not visible in correct format. v) Transaction date is the system date/current date. vi) Registration holder of that account after proper password checking.
  • 101. 101 Bibliography At the end, the following bibliography is in no way complete. However it is an attempt to list a few number of sources and references when we have used for the development & design of the project in this elegant form. Title of the Book Author/Publisher  PROGRAMMING IN C++ D. Ravi Chandram. (TMH)  TEACH YOURSELF C++ Herbert Schildt(TMH)  LET US C++ YASWANT KANITKAR