Вы находитесь на странице: 1из 88

This is to certify that

HARSHIT SHARMA of CLASS XII A


has done this project on
SCHOOL LAB MANAGEMENT
(A DBMS)
under my supervision
and to my complete satisfaction.

Jan.13
NITI ARORA
(PGT Computer Science)

MS.

It is my solemn duty to place on record my


sincere thanks and deep sense of gratitude to
my respected teacher, Ms.Niti Arora, for her
invaluable guidance, keen interest and
constant encouragement for fulfillment of this
project.

Certificate

Acknowledgement

Overview of C++

Requirements

Header Files

Classes, Objects &Functions

Source Code

Compilation Report
Output
Bibliography

OVERVIEW OF C++
C++ is an "object oriented" programming language created by
Bjarne Stroustrup and released in 1985. It implements "data
abstraction" using a concept called "classes", along with other
features to allow object-oriented programming. Parts of the C++
program are easily reusable and extensible; existing code is easily
modifiable without actually having to change the code. C++ adds a
concept called "operator overloading" not seen in the earlier OOP
languages and it makes the creation of libraries much cleaner.
C++ maintains aspects of the C programming language, yet has
features which simplify memory management. Additionally, some
of the features of C++ allow low-level access to memory but also
contain high level features.
C++ could be considered a superset of C. C programs will run in
C++ compilers. C uses structured programming concepts and
techniques while C++ uses object oriented programming and
classes which focus on data. C++ is a general purpose
programming language with a bias towards systems programming
that

is a better C
supports object-oriented programming

Some of the important object oriented features are namely:


Objects:

Object is the basic unit of object-oriented programming. Objects


are identified by its unique name. An object represents a particular
instance of a class. There can be more than one instance of an
object. Each instance of an object can hold its own relevant data.

Classes:
Classes are data types based on which objects are created. Objects
with similar properties and methods are grouped together to form
a Class. Thus a Class represents a set of individual objects.
Characteristics of an object are represented in a class as
Properties. The actions that can be performed by objects become
functions of the class and are referred to as Methods.
Inheritance:
Inheritance is the process of forming a new class from an existing
class or base class. The base class is also known as parent class or
super class, the new class that is formed is called derived class.
Derived class is also known as a child class or sub class.
Inheritance helps in reducing the overall code size of the program,
which is an important concept in object-oriented programming.
Data Abstraction:

Data Abstraction increases the power of programming language by


creating user defined data types. Data Abstraction also represents
the needed information in the program without presenting the
details.
Data Encapsulation:
Data Encapsulation combines data and functions into a single unit
called class. When using Data Encapsulation, data is not accessed
directly; it is only accessible through the functions present inside
the class. Data Encapsulation enables the important concept of
data hiding possible.

Polymorphism:
Polymorphism allows routines to use variables of different types at
different times. An operator or function can be given different
meanings or functions. Polymorphism refers to a single function or
multi-functioning operator performing in different ways.
Overloading:
Overloading is one type of Polymorphism. It allows an object to
have different meanings, depending on its context. When an
exiting operator or function begins to operate on new data type, or
class, it is understood to be overloaded.
Reusability:

This term refers to the ability for multiple programmers to use the
same written and debugged existing class of data. This is a time
saving device and adds code efficiency to the language.
Additionally, the programmer can incorporate new features to the
existing class, further developing the application and allowing
users to achieve increased performance. This time saving feature
optimizes code, helps in gaining secured applications and
facilitates easier maintenance on the application.

DESCRIPTION:
Project Category :DBMS
Target Group : can be used with any school lab by varying the
contents of the stock.
Project Member :

HARSHIT SHARMA

1. THIS PROJECT IS BASICALLY A SCHOOL LAB DATABASE

MANAGEMENT PROJECT
2. WE CAN USE IT FOR ANY LAB JUST BY CHANGING THE STOCK
LIST
3. IT MANAGES THE STOCK OF THE LAB AND ALSO SERVES AS
THE ISSUE REGISTER
4. IT STORES THE DATA OF THE STUDENTS TO WHOM
EQUIPMENT IS ISSUED
5. CAN BE USED WITH ANY LAB BY CHANGING ITS STOCK
6. SET TIME TABLE ACCORDING TO YOUR OWN NEEDS
7. SEARCH STOCK ON THE BASIS OF NAME,NUMBER,CATEGORY
8. SEARCH ISSUE LIST ON THE BASIS OF NAME ROLL
NO.,CATEGORY,EQUIPMENT NO.
9. MODIFY STOCK ,DISPLAY STOCK,UPDATE STOCK,DELTE
STOCK.
10.
MAINTAIN ISSUE LIST(ISSUE,REDEPOSIT,UPDATE,MODIFY)

REQUIREMENTS

The Project requires the following:


Hardware
o Computer System (P-II or above with standard

configuration)
o Keyboard
o Mouse
Software
o DOS 6.22 /Windows OS (any version)

o Turbo C++

HEADER FILES USED


In computer programming, particularly in the C and C++
programming languages, a header file or include file is a file,
usually in the form of source code that is automatically included in
another source file by the compiler. Typically, header files are
included via compiler directives at the beginning (or head) of the
other source file.
A header file commonly contains forward declarations of
subroutines, variables, and other identifiers. Identifiers that need to
be declared in more than one source file can be placed in one
header file, which is then included whenever its contents are
required.
In the C and C++ programming languages, standard library
functions are traditionally declared in header files

#include <fstream.h>

read(), write(), open(),

close(),cin,cout,.

#include <stdio.h> :

gets(),puts().

#include <conio.h> :

getch(), clrscr()

#include <dos.h>

delay()

#include <process.h>

exit()

#include<string.h>
PROGRAM FILES
1. Lab_man.cpp :
DATA FILES

: strcmpi()

1. stock.dat : To store data about stock.


2. student.dat : To store data about student.

3. Time table.dat : to store time table.


CLASSES, FUNCTIONS and OBJECTS (LAB_MAN.CPP)
void settable();
//Function to set the time table of
school
void showtable();
// Function to display time table
int retroll();
// function to return roll no. of student
int retequipo();
// function to return equipment no.
void getequip()
//For getting data about stock from the
user
void displayequip()
//for displaying data of stock.dat
void studata()
//for getting data about student from user
void displaystu()
//to display the contents of
student.dat
void intro()
//to show introduction screen
void exitf()
//to show exit screen
char* retequipn
//to return equipment name
char* retstudn
//to return student name
int retequipct
//to return equipment category
int rollno
//to return roll no.
void description
//to describe the project
void description2
//to describe the project
void modify
//to modify a particular record of the time
table
class timetable
//for time table management
{
char t[7][80];
public:
//timetable();
void settable();
void showtable();
};
class lab_manage
{
char std_name[30]; //for stock data and student data
int studroll;
int equipno;
int equipquan;

char equip_name[30];
int category;
};

********************************************************************
*****
PROJECT TITLE : "SCHOOL LAB MAAGEMENT"
**
PROGRAM NAME : LAB_MAN.CPP
**
MADE BY
: HARSHIT SHARMA
**
CLASS
: XII A
**
ROLL No.
: 27
**
BOARD ROLL No.
:
**
YEAR
: 2011-12
**
********************************************************************
******
SOURCE CODE:
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<dos.h>
#include<string.h>
class timetable
{
char t[7][80];
public:
//timetable();
void settable();
void modify(int);
void showtable();
};
void timetable::modify(int mf)
{
clrscr();
switch(mf)
{
case 1:cout<<"\n enter new time table of monday \n";
gets(t[0]);
break;
case 2:cout<<"\n enter new time table of tuesday \n";
gets(t[1]);
break;
case 3:cout<<"\n enter new time table of wednesday \n";

gets(t[2]);
break;
case 4:cout<<"\n enter new time table of thursday \n";
gets(t[3]);
break;
case 5:cout<<"\n enter new time table of friday \n";
gets(t[4]);
break;
case 6:cout<<"\n enter new time table of saturday \n";
gets(t[5]);
break;
default: cout<<"invalid day no.";
delay(900);
break;
}
}
void timetable::settable()
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"*********************************** TIME TABLE
**********************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
for(int o=0;o<=6;o++)
{
cout<<"=================================
========================================
=======";

cout<<"\n enter the time table of day "<<o+1<<"\n";


switch(o+1)
{
case 1:cout<<"MONDAY\n";
break;
case 2:cout<<"TUESDAY\n";
break;
case 3:cout<<"WEDNESDAY\n";
break;
case 4:cout<<"THURSDAY\n";
break;
case 5:cout<<"FRIDAY\n";
break;
case 6:cout<<"SATURDAY\n";
break;
case 7:cout<<"SUNDAY\n";
break;
default: cout<<"\n";
}
gets(t[o]);
delay(300);
}
}
void timetable::showtable()
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"*********************************** TIME TABLE
**********************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";

cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n The time table saved in the system is \n";
for(int y=0;y<=6;y++)
{
cout<<"\n Time table of day "<<y+1<<"\n";
switch(y+1)
{
case 1:cout<<"MONDAY\n";
break;
case 2:cout<<"TUESDAY\n";
break;
case 3:cout<<"WEDNESDAY\n";
break;
case 4:cout<<"THURSDAY\n";
break;
case 5:cout<<"FRIDAY\n";
break;
case 6:cout<<"SATURDAY\n";
break;
case 7:cout<<"SUNDAY\n";
break;
default: cout<<"\n";
};
puts(t[y]);
delay(2000);
}
}
class lab_manage
{
char std_name[30];
int studroll;
int equipno;
int equipquan;
char equip_name[30];
int category;
public:
char* retstudn()
{

return std_name;
}
int rollno()
{
return studroll;
}
char* retequipn()
{
return equip_name;
}
int retequipct()
{
return category;
}
void studata();
void getequip()
{
cout<<"\n enter equipment number ";
cin>>equipno;
cout<<"\n enter equipment name ";
gets(equip_name);
cout<<"\n enter equipment quantity ";
cin>>equipquan;
cout<<"\n enter category of equipment ";
cout<<"\n (electrical=1/optical=2/general=3) \n";
cin>>category;
}
void displayequip()
{
cout<<"\n equipment number "<<equipno;
cout<<"\n equipment name ";
delay(300);
puts(equip_name);
cout<<"equipment quantity "<<equipquan;
delay(300);
cout<<"\n equipment category
(1=electrical,2=optical,3=general "<<category;
}
int retequipno()
{

return equipno;
}
struct qn{int nn,sn;};
void displaystu();
};
void lab_manage::studata()
{
cout<<"\n enter the student name \n";
gets(std_name);
cout<<"\n enter student rollno.\n";
cin>>studroll;
cout<<"\n enter the equipment no. to be issued \n";
cin>>equipno;
cout<<"\n enter equipment category
\n(1=electrical,2=optical,3=general \n";
cin>>category;
}
void lab_manage::displaystu()
{
cout<<"\n Name of the student \n";
puts(std_name);
cout<<" Roll no. of the student \n";
cout<<studroll;
cout<<"\n equipment no. of the equipment issued \n";
cout<<equipno;
cout<<"\n enter equipment category
\n(1=electrical,2=optical,3=general \n";
cout<<category;
}
void intro()
{
char s;
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
delay(900);
cout<<"\n<<<<<<<<<<<<<<<<<<<<<<<<<< SCHOOL
LAB MANAGEMENT PROJECT
>>>>>>>>>>>>>>>>>>>>>>>";

delay(900);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
delay(900);
cout<<"\n\n\n\n\n\n\n\n\n\t\t\t*************************************
***** \n\t\t\t A DBMS
\n\t\t\t****************************************** \n\t\t\t WELCOME
TO SCHOOL LAB MANAGEMENT PROJECT ";
delay(900);
cout<<"\t\t\t\t\t MADE BY HARSHIT SHARMA \n \t\t\t CLASS-X11A \n\t\t\t ROLL NO.-27";
delay(900);
cout<<"\n \t\t\t PRESS Y TO START OR E TO EXIT ";
delay(900);
cin>>s;
if(s=='e'||s=='E')
{
exit(0);
}
else
{
}
}
void description()
{
clrscr();
cout<<"****////////////////////////////////DESCRIPTION\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\****";
cout<<"\n\n\n\n\n\n\n\n\n";
cout<<"****** THIS PROJECT IS BASICALLY A SCHOOL LAB
DATABASE MANAGEMENT PROJECT******";
cout<<"\n********* WE CAN USE IT FOR ANY LAB JUST BY
CHANGING THE STOCK LIST **********";
cout<<"\n**** IT MANAGES THE STOCK OF THE LAB AND ALSO
SERVES AS THE ISSUE REGISTER ****";
cout<<"\n****** AND STORES THE DATA OF THE STUDENTS TO
WHOM EQUIPMENT IS ISSUED *******";
cout<<"\n****************************** PRESS ENTER TO START
****************************";

getch();
}
void exitf()
{
clrscr();
char s;
cout<<"\n\n\n\n\n\n\n\n\n\t\t\t*************************************
***** \n\t\t\t A DBMS
\n\t\t\t****************************************** \n\t\t\t ";
delay(900);
cout<<"\n\t\t\t MADE BY HARSHIT SHARMA \n \t\t\t CLASS-X11-A
\n\t\t\t ROLL NO.-27";
delay(900);
cout<<"\n\t\t\t SCHOOL LAB MANAGEMENT PROJECT";
delay(900);
cout<<"\n\t\t\t SPECIAL THANKS TO MY TEACHER MS.NITI ARORA
";
delay(900);
cout<<"\n \t\t\t ARE YOU SURE YOU WANT TO EXIT ";
delay(900);
cout<<"\n \t\t\t ENTER Y FOR YES AND N FOR NO \n \t\t\t";
cin>>s;
if(s=='y'||s=='Y')
{
clrscr();
cout<<"\n\n\n\n\n**********************************************
**********************************";
delay(500);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
delay(500);
cout<<"********************************************************
************************";
delay(500);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
delay(500);

cout<<"********************************************************
************************";
delay(500);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
delay(500);
cout<<"*********************************** GOOD BYE
***********************************";
delay(500);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
delay(500);
cout<<"********************************************************
************************";
delay(500);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
delay(500);
cout<<"********************************************************
************************";
delay(500);
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
delay(500);
exit(0);
}
else
return;
}
void description2()
{
clrscr();
delay(400);
cout<<"///////////////////////// SCHOOL LAB MANAGEMENT
PROJECT \\\\\\\\\\\\\\\\\\\\\\\\";
cout<<"\n";

cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
cout<<"\n";
delay(600);
cout<<"*************************** FEATURES OF THIS PROJECT
***************************";
delay(600);
cout<<"\n*1.CAN BE USED WITH ANY LAB BY CHANGING ITS
STOCK ";
delay(600);
cout<<"\n*2.SET TIME TABLE ACCORDING TO YOUR OWN
NEEDS ";
delay(600);
cout<<"\n*3.SEARCH STOCK ON THE BASIS OF
NAME,NUMBER,CATEGORY";
delay(600);
cout<<"\n*4.SEARCH ISSUE LIST ON THE BASIS OF NAME ROLL
NO.,CATEGORY,EQUIPMENT NO. ";
delay(600);
cout<<"\n*5.MODIFY STOCK ,DISPLAY STOCK,UPDATE
STOCK,DELTE STOCK ";
delay(600);
cout<<"\n*6. MAINTAIN ISSUE
LIST(ISSUE,REDEPOSIT,UPDATE,MODIFY)";
delay(600);
cout<<"\n******************************************************
";
cout<<"\n PRESS ENTER TO START \n";
getch();
}
void main()
{
clrscr();
lab_manage a[50];
lab_manage b[50];

timetable te;
intro();
description();
description2();
int r,j,i,g,d,m,l,n,s2=0;
char p;
qn q;
cout<<"\n WANT TO CONTINUE WITH STORED DATA(IF YOU ARE
A REGULAR USER) \n OR NOT(IF YOU ARE A NEW USER) \n ENTER
YOUR CHOICE(Y/N)";
cin>>p;
if(p=='y'||p=='Y')
{
fstream fh;
fh.open("quan.dat",ios::in||ios::binary);
n=q.nn;
l=q.sn;
}
else
{
n=0;
l=0;
}
do
{
clrscr();
cout<<"///////////////////////// SCHOOL LAB MANAGEMENT
PROJECT \\\\\\\\\\\\\\\\\\\\\\\\";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~;
cout<<"********************************** MAIN MENU
***********************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~; cout<< " \n \t\t\t\t

1.Stock Manager \n\t\t\t\t 2.Issue Register \n\t\t\t\t 3.Time Table


\n\t\t\t\t 4.Exit " ;
cout<<"\n\t\t\t\t Enter Your Choice(1-4) \n\t\t\t\t";
cin>>r;
if(r==1)
{
do
{clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"*************************** STOCK MANAGEMENT MENU
******************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"===================================
========================================
=====";
cout<<"\n\t\t\t\t 1.Enter Stock \n\t\t\t\t 2.Update Stock
\n\t\t\t\t 3.Delete Stock \n\t\t\t\t 4.Display Stock \n\t\t\t\t 5.Modify
stock \n\t\t\t\t 6.search an equipment \n\t\t\t\t 7.back to main menu
\n\t\t\t\t";
cout<<"\n\t\t\t\t Enter your choice \n\t\t\t\t ";
cin>>j;
if(j==1)
{
clrscr();

s2+=1;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"**************************** ENTER STOCK OF YOUR
LAB **************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"===================================
========================================
=====";
char ch='y';
fstream fa;
fa.open("stock.dat",ios::out||ios::binary);
for(i=0;ch=='y'||ch=='Y';i++)
{
cout<<"===================================
========================================
=====";
a[i].getequip();
fa.write((char*)&a[i],sizeof(a[i]));
cout<<"\n want to enter more(Y/N) \n";
cin>>ch ;
n++;
}

fa.close();
}
else if(j==2)
{
if(s2!=0)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"******************************* ENTER MORE STOCK
*******************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
fstream fb;
char c='y';
fb.open("stock.dat",ios::in||ios::out||ios::ate||ios::binary);
for(i=n;c=='y'||c=='Y';i++)
{
cout<<"\n==================================
========================================
=======";
a[i].getequip();
fb.write((char*)&a[i],sizeof(a[i]));
cout<<"\n Want to enter more (Y/N)\n";

cin>>c;
n++;
}
fb.close();
}
else
break;
}
else if(j==3)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"**************************** STOCK DELETION
SECTION ****************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n enter the equipment no. to be deleted \n";
int k,f=0;
cin>>k;
fstream fc,fd;
fc.open("stock.dat",ios::in||ios::binary);
fd.open("temp.dat",ios::out||ios::binary);
int de=n;
for(i=0;i<=de;i++)
{

fc.read((char*)&a[i],sizeof(a[i]));
if(a[i].retequipno()==k)
{
f=f+1;
for(int e=i;e<=n-1;e++)
{
a[e]=a[e+1];
}
n--;
}
else
fd.write((char*)&a[i],sizeof(a[i]));
}
remove("stock.dat");
rename("temp.dat","stock.dat");
if(f==1)
cout<<"\n equipment number "<<k<<" is deleted ";
else
cout<<"\n equipment not found \n ";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
getch();
}
else if(j==4)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"************************* DISPLAYING THE
EQUIPMENT LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
fstream fp;
fp.open("stock.dat",ios::in||ios::binary);
for(int u=0;u<=n-1;u++)
{
cout<<"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~";
fp.read((char*)&a[u],sizeof(a[u]));
a[u].displayequip();
}
fp.close();
}
else if(j==5)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";

cout<<"******************************* MODIFY STOCK


***********************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n ENTER THE EQUIPMENT NO. OF THE EQUIPMENT
YOU WANT TO MODIFY ";
int f,fg=0;
cin>>f;
fstream fn,fo;
fn.open("stock.dat",ios::in||ios::binary);
fo.open("temp.dat",ios::out||ios::binary);
for(int e=0;e<=n-1;e++)
{
fn.read((char*)&a[e],sizeof(a[e]));
if(a[e].retequipno()==f)
{
fg+=1;
a[e].getequip();
fo.write((char*)&a[e],sizeof(a[e]));
}
else
{
fo.write((char*)&a[e],sizeof(a[e]));
}
}
if(fg!=0)
{
cout<<"\n##################################
###################################";
cout<<"EQUIPMENT NO. "<<f<<" FOUND AND MODIFIED ";
cout<<"\n CHECK NEW EQUIPMENT LIST FROM THE OPYION
DISPLAY STOCK IN STOCK MANAGEMENT MENU";

delay(7000);
}
else
{
cout<<"\n###############################
######################################";
cout<<"\n EQUIPMENT NO. "<<f<<" NOT FOUND IN LIST ";
delay(4000);
}
}
else if(j==6)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n";
cout<<"*******************************************************
*************************";
cout<<"*********************** WELCOME TO THE SEARCH
SECTION **************************";
cout<<"*******************************************************
*************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n\t\t\t\t ENTER MODE BY WHICH YOU WANT TO
SEARCH ";
cout<<"\n\t\t\t\t 1.BY EQUIPMENT NO. \n\t\t\t\t 2.BY
EQUIPMENT NAME \n\t\t\t\t 3.BY EQUIPMENT CATEGORY \n\t\t\t\t
ENTER YOUR CHOICE(1-3) \n\t\t\t\t";
int ce;
cin>>ce;
if(ce==1)

{
clrscr();
int se,f=0;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~" ;
cout<<"***********************************************************
*********************";
cout<<"***********************************************************
*********************";
cout<<"\n ENTER THE EQUIPMENT NO. YOU WANT TO
SEARCH FOR \n";
cin>>se;
clrscr();
fstream fp;
fp.open("stock.dat",ios::in||ios::binary);
for(int p=0;p<=n-1;p++)
{
fp.read((char*)&a[p],sizeof(a[p]));
if(a[p].retequipno()==se)
{
f=f+1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";

cout<<"*********************** DATA OF SEARCHED


EQUIPMENT IS **************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
a[p].displayequip();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************* SEARCHED EQUIPMENT IS NOT
IN LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
}
}

else if(ce==2)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"*******************************************************
*************************";
cout<<"*******************************************************
*************************";
cout<<"\n\t\t\t\t ENTER THE EQUIPMENT NAME YOU WANT TO
SEARCH FOR ";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
int f=0;
char ve[80];
gets(ve);
fstream fp;
fp.open("stock.dat",ios::in||ios::binary);
for(int p=0;p<=n-1;p++)
{
fp.read((char*)&a[p],sizeof(a[p]));
if(!(strcmpi(a[p].retequipn(),ve)))
{
f+=1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";

cout<<"*********************** DATA OF SEARCHED


EQUIPMENT IS **************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
a[p].displayequip();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************* SEARCHED EQUIPMENT IS NOT
IN LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
}
}

else if(ce==3)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"*******************************************************
*************************";
cout<<"*******************************************************
*************************";
cout<<" ENTER THE EQUIPMENT CATEGORY YOU WANT TO
SEARCH FOR ";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"\n 1=electrical,2=optical,3=general \n";
int ct,f=0;
cin>>ct;
fstream fp;
fp.open("stock.dat",ios::in||ios::binary);
for(int p=0;p<=n-1;p++)
{
fp.read((char*)&a[p],sizeof(a[p]));
if(a[p].retequipct()==ct)
{
f+=1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";

cout<<"*********************** DATA OF SEARCHED


EQUIPMENT IS **************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
a[p].displayequip();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************* SEARCHED EQUIPMENT IS NOT
IN LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
}
}

else
{
cout<<"\n going back to sub menu ";
delay(900);
}
}
else
cout<<"\n Going back to main menu";
delay(900);
}while(j<7);
}
else if(r==2)
{
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n";
cout<<"************************** WELCOME TO ISSUE
REGISTER ***************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n";
cout<<"\n\t\t\t\t 1.issue equipment \n\t\t\t\t 2.redeposit
equipment \n\t\t\t\t 3.check net status \n\t\t\t\t 4.update issue
list \n\t\t\t\t 5.search issue list \n\t\t\t\t 6.modify issue list \n\t\t\t\t
7.back to main menu";
cout<<"\n\t\t\t\t Enter your choice(1-7) \n";
cin>>d;
if(d==1)

{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************** WELCOME TO THE ISSUE
SECTION ****************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
char t='y';
fstream fh;
fh.open("stud_ent.dat",ios::app||ios::binary);
for(int w=0;t=='y'||t=='Y';w++)
{
cout<<"===================================
========================================
=====";
b[w].studata();
fh.write((char*)&b[w],sizeof(b[w]));
cout<<"\n want to enter more (Y/N) \n";
l++;
cin>>t;
}
fh.close();
}
else if(d==2)

{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n";
cout<<"************************** REDEPOSITION SECTION
********************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
int f=0;
cout<<"\n enter the student roll no who wants to redeposit
equipment \n";
cin>>m;
fstream fk,fl;
fk.open("stud_ent.dat",ios::in||ios::binary);
fl.open("temp.dat",ios::out||ios::binary);
for(int o=0;o<=l-1;o++)
{
fk.read((char*)&b[o],sizeof(b[o]));
if(b[o].retroll()==m)
{
f=f+1;
for(int s=o;s<=l-1;s++)
{
b[s]=b[s+1];
}
l--;
}
else
fl.write((char*)&b[o],sizeof(b[o]));

}
fk.close();
fl.close();
remove("stud_ent.dat");
rename("temp.dat","stud_ent.dat");
if(f==0)
{
cout<<"\n roll no. not in issue list ";
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";cout<<"\n roll no. found and removed from the list
";
getch();
}
}
else if(d==3)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
cout<<"\n";
cout<<"******************************** ISSUE LIST
************************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~";

cout<<"\n net status of the issue list is \n" ;


fstream fm;
fm.open("stud_ent.dat",ios::in||ios::binary);
for(int u=0;u<=l-1;u++)
{
cout<<"\n";
cout<<"=================================
========================================
=======";
fm.read((char*)&b[u],sizeof(b[u]));
b[u].displaystu();
getch();
}
}
else if(d==4)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"*******************************************************
*************************";
cout<<"************************* WELCOME TO UPDATE ISSUE
LIST *************************";
cout<<"*******************************************************
*************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n";
fstream fs;
fs.open("stud_ent.dat",ios::out||ios::in||ios::ate||ios::binary);
char co='y';
for(int y=l;co=='y'||co=='Y';y++)

{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
b[l].studata();
fs.write((char*)&b[l],sizeof(b[l]));
l++;
cout<<"want to enter more (Y/N) \n";
cin>>co;
}
fs.close();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"***********************************************************
*********************";
cout<<"%%%%%%%%%%%%%%%%%%%%%%%% CHECK
NEW LIST FROM SUB MENU %%%%%%%%%%%%%%%%%%%%%
%%%%%";
cout<<"***********************************************************
*********************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
}
else if(d==5)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n";
cout<<"*******************************************************
*************************";
cout<<"*********************** WELCOME TO THE SEARCH
SECTION **************************";
cout<<"*******************************************************
*************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n\t\t\t\t ENTER MODE BY WHICH YOU WANT TO
SEARCH ";
cout<<"\n\t\t\t\t 1.BY EQUIPMENT NO. \n\t\t\t\t 2.BY STUDENT
NAME \n\t\t\t\t 3.BY EQUIPMENT CATEGORY \n\t\t\t\t 4.BY STUDENT
ROLL NO.\n\t\t\t\t ENTER YOUR CHOICE(1-4) \n\t\t\t\t";
int ce;
cin>>ce;
if(ce==1)
{
clrscr();
int se,f=0;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";

cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~" ;
cout<<"***********************************************************
*********************";
cout<<"***********************************************************
*********************";
cout<<" ENTER THE EQUIPMENT NO. THROUGH WHICH YOU
WANT TO SEARCH \n";
cout<<"***********************************************************
*********************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~" ;
cin>>se;
clrscr();
fstream fp;
fp.open("stud_ent.dat",ios::in||ios::binary);
for(int p=0;p<=l-1;p++)
{
fp.read((char*)&b[p],sizeof(b[p]));
if(b[p].retequipno()==se)
{
f=f+1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"************ DATA OF ISSUE LIST RELATED TO
SEARCHED EQUIPMENT NO. IS ***********";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
b[p].displaystu();
getch();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************* SEARCHED EQUIPMENT IS NOT
IN LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
}
}
else if(ce==2)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"*******************************************************
*************************";
cout<<"*******************************************************
*************************";
cout<<"********* ENTER THE STUDENT NAME THROUGH YOU
WANT TO SEARCH ISSUE LIST *********";
cout<<"*******************************************************
*************************";
cout<<"*******************************************************
*************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
int f=0;
char ve[80];
gets(ve);
fstream fp;
fp.open("stud_ent.dat",ios::in||ios::binary);
for(int p=0;p<=l-1;p++)
{
fp.read((char*)&b[p],sizeof(b[p]));
if(!(strcmpi(b[p].retstudn(),ve)))
{

f+=1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"*********************** DATA OF SEARCHED
EQUIPMENT IS **************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
b[p].displaystu();
getch();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"****************** SEARCHED EQUIPMENT IS NOT IN
ISSUE LIST *********************";

cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
getch();
}
}
else if(ce==3)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"*******************************************************
*************************";
cout<<"*******************************************************
*************************";
cout<<"**** ENTER THE EQUIPMENT CATEGORY YOU WANT TO
SEARCH FOR IN THE ISSUE LIST *****";
cout<<"*******************************************************
*************************";
cout<<"*******************************************************
*************************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~" ;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~";
cout<<"\n 1=electrical,2=optical,3=general \n";
int ct,f=0;

cin>>ct;
fstream fp;
fp.open("stock.dat",ios::in||ios::binary);
for(int p=0;p<=l-1;p++)
{
fp.read((char*)&b[p],sizeof(b[p]));
if(b[p].retequipct()==ct)
{
f+=1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"*********************** DATA OF SEARCHED
EQUIPMENT IS **************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
b[p].displaystu();
getch();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************* SEARCHED EQUIPMENT IS NOT
IN LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
getch();
}
}
else if(ce==4)
{
clrscr();
int se,f=0;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~" ;
cout<<"***********************************************************
*********************";
cout<<"***********************************************************
*********************";

cout<<"\n\t\t\t\t ENTER THE ROLL NO. THROUGH WHICH YOU


WANT TO SEARCH \n\t\t\t\t";
cout<<"***********************************************************
*********************";
cout<<"***********************************************************
*********************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~" ;
cin>>se;
clrscr();
fstream fp;
fp.open("stud_ent.dat",ios::in||ios::binary);
for(int p=0;p<=l-1;p++)
{
fp.read((char*)&b[p],sizeof(b[p]));
if(b[p].rollno()==se)
{
f=f+1;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"************** DATA OF ISSUE LIST RELATED TO
SEARCHED ROLL NO. IS **************";
cout<<"\n";

cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
b[p].displaystu();
getch();
}
}
if(f==0)
{
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"********************* SEARCHED EQUIPMENT IS NOT
IN LIST ************************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
getch();
}
}
}
else if(d==6)
{

cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"***********************************************************
*********************";
cout<<"***********************************************************
*********************";
cout<<"********************** WELCOME TO THE MODIFICATION
MENU ************************";
cout<<"***********************************************************
*********************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n enter the student roll no whose issue record you
want to modify ";
cout<<"\n";
fstream ft,fu;
ft.open("stud_ent.dat",ios::in||ios::binary);
fu.open("temp.dat",ios::out||ios::binary);
int y,fo=0;
cin>>y;
for(int mo=0;mo<=l-1;mo++)
{
ft.read((char*)&b[mo],sizeof(b[mo]));
if(y==b[mo].rollno())
{
fo=fo+1;
cout<<"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~";
cout<<"\n enter the new data \n";
b[mo].studata();

fu.write((char*)&b[mo],sizeof(b[mo]));
}
else
{
fu.write((char*)&b[mo],sizeof(b[mo]));
}
}
ft.close();
fu.close();
if(fo==0)
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n ROLL NO. " <<y<<" NOT FOUND \n";
getch();
break;
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"***********************************************************
*********************";
cout<<"*********************** ROLL NO. FOUND AND
MODIFIED ****************************";
cout<<"\t\t\t\t CHECK NEW ISSUE LIST FROM ISSUE REGISTER
MENU ";
getch();
}

}
else
cout<<"\n going back to the main menu";
delay(5000);
}while(d<7);
}
else if(r==3)
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n";
cout<<"************************** WELCOME TO TIME TABLE
SECTION ***********************";
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
do
{
clrscr();
cout<<"\n\t\t\t\t 1.enter the time table \n\t\t\t\t 2.display the
time table \n\t\t\t\t 3.modify time table \n\t\t\t\t\ 4.back to main
menu ";
cout<<"\n\t\t\t\t enter your choice(1-3) \n\t\t\t\t";
cin>>g;
if(g==1)
{
te.settable();
fstream fy;
fy.open("time_ta.dat",ios::out||ios::binary);
fy.write((char*)&te,sizeof(te));
fy.close();

}
else if(g==2)
{
fstream fy;
fy.open("time_ta.dat",ios::in||ios::binary);
fy.read((char*)&te,sizeof(te));
te.showtable();
cout<<"\n press enter to return \n";
getch();
}
else if(g==3)
{
int da,fl=0;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"***********************************************************
*********************";
cout<<"************************* WELCOME TO MODIFY TIME
TABLE *************************";
cout<<"***********************************************************
*********************";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~";
cout<<"\n ENTER DAY NO. WHOSE TIME TABLE YOU WANT TO
MODIFY \n";
cout<<"\n 1=MONDAY \t 2=TUESDAY \t 3=WEDNESDAY \n
4=THURSDAY \t 5=FRIDAY \t 6=FRIDAY \n 7=SUNDAY ";
cin>>da;
fstream fz,fv;
fv.open("time_ta.dat",ios::out||ios::binary);
for(int i=1;i<=7;i++)
{

if(i==da)
{
te.modify(da);
fl+=1;
}
}
fv.write((char*)&te,sizeof(te));
if(fl==0)
{
cout<<"\n wrong choice \n";
}
else
{
cout<<"\n time table modified ";
}
cout<<"\n press enter to return \n";
getch();
}
}while(g<3);
}
else if(r==4)
{
fstream fg;
fg.open("quan.dat",ios::out||ios::binary);
q.nn=n;
q.sn=l;
fg.write((char*)&q,sizeof(q));
fg.close();
exitf();
}
}while(r<=4);
getch();
getch();
}

OUTPUT :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<<<<<<<<<<<<<<<<<<<<<<<<<< SCHOOL LAB
MANAGEMENT PROJECT >>>>>>>>>>>>>>>>>>>>>>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
******************************************
A DBMS
******************************************
WELCOME TO SCHOOL LAB MANAGEMENT PROJECT
MADE BY HARSHIT SHARMA
CLASS-X11-A
ROLL NO.-27
PRESS Y TO START OR E TO EXIT

****////////////////////////////////DESCRIPTION\\\\\\\\\\\\\\\\\\\\\\\\\\\\\***
****** THIS PROJECT IS BASICALLY A SCHOOL LAB DATABASE
MANAGEMENT PROJECT******
********* WE CAN USE IT FOR ANY LAB JUST BY CHANGING THE
STOCK LIST **********
**** IT MANAGES THE STOCK OF THE LAB AND ALSO SERVES AS
THE ISSUE REGISTER ****
****** AND STORES THE DATA OF THE STUDENTS TO WHOM
EQUIPMENT IS ISSUED *******
****************************** PRESS ENTER TO START
****************************
///////////////////////// SCHOOL LAB MANAGEMENT PROJECT \\\\\\\\\\\\
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*************************** FEATURES OF THIS PROJECT
***************************
*1.CAN BE USED WITH ANY LAB BY CHANGING ITS STOCK
*2.SET TIME TABLE ACCORDING TO YOUR OWN NEEDS
*3.SEARCH STOCK ON THE BASIS OF NAME,NUMBER,CATEGORY
*4.SEARCH ISSUE LIST ON THE BASIS OF NAME ROLL
NO.,CATEGORY,EQUIPMENT NO.
*5.MODIFY STOCK ,DISPLAY STOCK,UPDATE STOCK,DELTE STOCK
*6. MAINTAIN ISSUE LIST(ISSUE,REDEPOSIT,UPDATE,MODIFY)
******************************************************
PRESS ENTER TO START
///////////////////////// SCHOOL LAB MANAGEMENT PROJECT \\\\\\\\\\\\
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************** MAIN MENU
***********************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.Stock Manager
2.Issue Register
3.Time Table
4.Exit
Enter Your Choice(1-4)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*************************** STOCK MANAGEMENT MENU
******************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
========================================
========================================
1.Enter Stock
2.Update Stock
3.Delete Stock
4.Display Stock
5.Modify stock
6.search an equipment
7.back to main menu
Enter your choice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**************************** ENTER STOCK OF YOUR LAB
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
========================================
========================================
========================================
========================================
enter equipment number 1
enter equipment name vernier callipers

enter equipment quantity 40


enter category of equipment
(electrical=1/optical=2/general=3) 3
want to enter more(Y/N)
========================================
========================================
enter equipment number 2
enter equipment name potentiometer
enter equipment quantity 40
enter category of equipment
(electrical=1/optical=2/general=3)
1
want to enter more(Y/N)
========================================
========================================
enter equipment number 3
enter equipment name prism
enter equipment quantity 40
enter category of equipment
(electrical=1/optical=2/general=3)
2
want to enter more(Y/N)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

************************* DISPLAYING THE EQUIPMENT LIST


************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
equipment
equipment
equipment
equipment

number 1
name vernier callipers
quantity 40
category (1=electrical,2=optical,3=general) 3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
equipment
equipment
equipment
equipment

number 2
name potentiometer
quantity 40
category (1=electrical,2=optical,3=general) 1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
equipment
equipment
equipment
equipment

number 3
name prism
quantity 40
category (1=electrical,2=optical,3=general) 2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
******************************* ENTER MORE STOCK
*******************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
========================================
========================================
=
enter equipment number 4
enter equipment name galvanometer
enter equipment quantity 40
enter category of equipment
(electrical=1/optical=2/general=3)
1
Want to enter more (Y/N)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**************************** STOCK DELETION SECTION
****************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enter the equipment no. to be deleted
4
equipment number 4 is deleted
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
******************************* MODIFY STOCK
***********************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTER THE EQUIPMENT NO. OF THE EQUIPMENT YOU WANT TO
MODIFY 2
enter equipment number 4
enter equipment name ammeter
enter equipment quantity 40
enter category of equipment
(electrical=1/optical=2/general=3)
1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
*********************** WELCOME TO THE SEARCH SECTION
**************************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTER MODE BY WHICH YOU WANT TO
SEARCH
1.BY EQUIPMENT NO.

2.BY EQUIPMENT NAME


3.BY EQUIPMENT QUANTITY
ENTER YOUR CHOICE(1-3)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
***
ENTER THE EQUIPMENT NO. YOU WANT TO SEARCH FOR 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************** DATA OF SEARCHED EQUIPMENT IS
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
equipment number 1
equipment name vernier callipers
equipment quantity 40
equipment category (1=electrical,2=optical,3=general) 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
************

ENTER THE EQUIPMENT NAME YOU WANT TO SEARCH FOR


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ammeter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************** DATA OF SEARCHED EQUIPMENT IS
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
equipment number 4
equipment name ammeter
equipment quantity 40
equipment category (1=electrical,2=optical,3=general) 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
************
ENTER THE EQUIPMENT CATEGORY YOU WANT TO SEARCH FOR
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1=electrical,2=optical,3=general
1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************** DATA OF SEARCHED EQUIPMENT IS
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
equipment number 4
equipment name ammeter
equipment quantity 40
equipment category (1=electrical,2=optical,3=general) 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************************** WELCOME TO ISSUE REGISTER
***************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.issue equipment
2.redeposit equipment
3.check net status
4.update issue list
5.search issue list
6.modify issue list
7.back to main menu
Enter your choice(1-7)
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

********************** WELCOME TO THE ISSUE SECTION


****************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
========================================
========================================
enter the student name
AKARSH
enter student rollno.
1
enter the equipment no. to be issued
1
enter equipment category
(1=electrical,2=optical,3=general)
1
want to enter more (Y/N)
========================================
========================================
enter the student name
DINESH
enter student rollno.
2
enter the equipment no. to be issued
1
enter equipment category

(1=electrical,2=optical,3=general)
2
want to enter more (Y/N)
========================================
========================================
enter the student name
HARSHIT
enter student rollno.
3
enter the equipment no. to be issued
4
enter equipment category
(1=electrical,2=optical,3=general)
2
want to enter more (Y/N)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************************** REDEPOSITION SECTION
********************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enter the student roll no who wants to redeposit equipment
1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
roll no. found and removed from the list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
******************************** ISSUE LIST
************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net status of the issue list is
========================================
========================================
Name of the student
DINESH
Roll no. of the student
2
equipment no. of the equipment issued
1
enter equipment category
(1=electrical,2=optical,3=general)
2
========================================
========================================
Name of the student
HARSHIT
Roll no. of the student
3

equipment no. of the equipment issued


4
enter equipment category
(1=electrical,2=optical,3=general)
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
************************* WELCOME TO UPDATE ISSUE LIST
*************************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enter the student name
MAYANK
enter student rollno.
4
enter the equipment no. to be issued
2
enter equipment category
(1=electrical,2=optical,3=general
2
want to enter more (Y/N)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
*********************** WELCOME TO THE SEARCH SECTION
**************************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTER MODE BY WHICH YOU WANT TO
SEARCH
1.BY EQUIPMENT NO.
2.BY STUDENT NAME
3.BY EQUIPMENT CATEGORY
4.BY STUDENT ROLL NO.
ENTER YOUR CHOICE(1-4)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
************
ENTER THE EQUIPMENT NO. THROUGH WHICH YOU WANT TO
SEARCH
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************ DATA OF ISSUE LIST RELATED TO SEARCHED
EQUIPMENT NO. IS ***********
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the student
MAYANK
Roll no. of the student
4
equipment no. of the equipment issued
2
enter equipment category
(1=electrical,2=optical,3=general
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
************
********* ENTER THE STUDENT NAME THROUGH YOU WANT TO
SEARCH ISSUE LIST *********

********************************************************************
************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************** DATA OF SEARCHED EQUIPMENT IS
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the student
HARSHIT
Roll no. of the student
3
equipment no. of the equipment issued
4
enter equipment category
(1=electrical,2=optical,3=general
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
********************************************************************
************************

**** ENTER THE EQUIPMENT CATEGORY YOU WANT TO SEARCH


FOR IN THE ISSUE LIST *****
********************************************************************
************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1=electrical,2=optical,3=general
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************** DATA OF SEARCHED EQUIPMENT IS
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the student
DINESH
Roll no. of the student
2
equipment no. of the equipment issued
1
enter equipment category
(1=electrical,2=optical,3=general
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*********************** DATA OF SEARCHED EQUIPMENT IS


**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the student
HARSHIT
Roll no. of the student
3
equipment no. of the equipment issued
4
enter equipment category
(1=electrical,2=optical,3=general
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************** DATA OF SEARCHED EQUIPMENT IS
**************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the student
MAYANK
Roll no. of the student
4
equipment no. of the equipment issued
2
enter equipment category
(1=electrical,2=optical,3=general
2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
************
ENTER THE ROLL NO. THROUGH WHICH YOU WANT TO SEARCH
********************************************************************
************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************** DATA OF ISSUE LIST RELATED TO SEARCHED ROLL
NO. IS **************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the student
DINESH
Roll no. of the student
2
equipment no. of the equipment issued
1
enter equipment category
(1=electrical,2=optical,3=general
2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
********************************************************************
************
********************** WELCOME TO THE MODIFICATION MENU
************************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enter the student roll no whose issue record you want to modify
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
enter the new data
enter the student name
DEEPAK
enter student rollno.
2
enter the equipment no. to be issued
3
enter equipment category
(1=electrical,2=optical,3=general
2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
*********************** ROLL NO. FOUND AND MODIFIED
****************************
CHECK NEW ISSUE LIST FROM ISSUE REGISTER MENU
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************************** WELCOME TO TIME TABLE SECTION
***********************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.enter the time table
2.display the time table
3.modify time table
4.back to main menu
enter your choice(1-3)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************************** TIME TABLE
*********************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

========================================
========================================
enter the time table of day 1
MONDAY
X11-A PERIOD-6,7
========================================
========================================
enter the time table of day 2
TUESDAY
X-A PERIOD-3,4
========================================
========================================
enter the time table of day 3
WEDNESDAY
VII-A PERIOD-2,3
========================================
========================================
enter the time table of day 4
THURSDAY
VIII-A PERIOD-1,2
========================================
========================================
enter the time table of day 5
FRIDAY
XI-A PERIOD-1,2
========================================
========================================
enter the time table of day 6
SATURDAY
XII-A PERIOD-3,4
========================================
========================================
enter the time table of day 7

SUNDAY
HOLIDAY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*********************************** TIME TABLE
*********************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The time table saved in the system is
Time table of day 1
MONDAY
X11-A PERIOD-6,7
Time table of day 2
TUESDAY
X-A PERIOD-3,4
Time table of day 3
WEDNESDAY
VII-A PERIOD-2,3
Time table of day 4
THURSDAY
VIII-A PERIOD-1,2
Time table of day 5
FRIDAY
XI-A PERIOD-1,2
Time table of day 6
SATURDAY
XII-A PERIOD-3,4

Time table of day 7


SUNDAY
HOLIDAY
press enter to return
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
********************************************************************
************
************************* WELCOME TO MODIFY TIME TABLE
*************************
********************************************************************
************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTER DAY NO. WHOSE TIME TABLE YOU WANT TO MODIFY
1=MONDAY
2=TUESDAY
3=WEDNESDAY
4=THURSDAY
5=FRIDAY
6=FRIDAY
7=SUNDAY
2
enter new time table of tuesday
VI-A PERIOD-3,4
time table modified
press enter to return
******************************************
A DBMS
******************************************
MADE BY HARSHIT SHARMA

CLASS-X11-A
ROLL NO.-27
SCHOOL LAB MANAGEMENT PROJECT
SPECIAL THANKS TO MY TEACHER MS.NITI ARORA
ARE YOU SURE YOU WANT TO EXIT
ENTER Y FOR YES AND N FOR NO
THE END

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
BIBLIOGRAPHY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~ ~~~

1. Computer Science by Sumita Arora

Compilation Report

LINKING

Вам также может понравиться