Professional Documents
Culture Documents
Date: _____________
Object oriented
programming
(Lab)
Midterm Project
Introduction of project:
Our project is simply based on library management system in
which we provide student online facility to take the book from library
online and read if he don’t want to sit in the university or collage
library and along with books university also provide newspapers to
student to aware with the current situation of country.
CODE:
#include<iostream>
using namespace std;
public:
News()
{
Criket;
Jobs;
Politics;
}
New(char c,char j,char p)
{
Criket=c;
Jobs=j;
Politics=p;
}
void Nset()
{
cout<<"Enter C for Criket News: "<<endl;
cout<<"Enter J for Jobs news: "<<endl;
cout<<"Enter P for Political news: "<<endl;
char S;
cin>>S;
if(S=='C' || S=='c')
{
cout<<"You select Criket news---"<<endl;
}
else if(S=='J' || S=='j')
{
cout<<"you select Jobs news---"<<endl;
}
else if(S=='P' || S=='p')
{
cout<<"you select Polical news---"<<endl;
}
else
{
cout<<"wrong input";
}
}
};
// News class ended
class Book
//books class started
{
private:
char E,M,H,P,U;
public:
Book()
{
E;
M;
H;
P;
U;
}
New(char e,char m,char h,char pks,char u)
{
E=e;
M=m;
H=h;
P=pks;
U=u;
}
void Bset()
{
cout<<"Press E for English"<<endl;
};
//
books class ended
class library
{
private:
int Reg,LID;
string name,classname;
public:
library()
{
name="";
classname="";
Reg=0;
LID=0;
}
library(int reg, int lid, string n, string cn)
{
Reg=reg;
LID=lid;
name=n;
classname=cn;
}
void set()
{
cout<<"Enter your reg no. ";
cin>>Reg;
cout<<"Enter your name ";
cin>>name;
cout<<"Enter your library id: ";
cin>>LID;
cout<<"Enter your class name ";
cin>>classname;
char A;
cout<<endl;
cout<<"Enter your Selection "<<endl;
cout<<"Enter N for Newspapper Reading or B for Book reading: ";
cin>>A;
if(A=='n'||A=='N')
{
system ("cls");
cout<<"You Select Newspapper readung"<<endl;
News N;
N.Nset();
}
else if(A=='B'||A=='b')
{
system ("cls");
cout<<"You Select Book reading"<<endl;
Book B;
B.Bset();
}
else
{
cout<<"Your Enter Wrong one Programme Ended"<<endl;
}
};
int main()
{
Main:
cout<<endl;
cout<<" -------------------------------- ";
cout<<endl;
cout<<" |**Library Managment System**| ";
cout<<endl;
cout<<" ____________ ";
cout<<endl;
cout<<endl;
library L;
L.set();
// ImPortant Instructions
{
cout<<"Please Read Below Statements ";
cout<<endl;
cout<<endl;
cout<<"There are same Rules And Regulations as below ";
cout<<endl;
cout<<endl;
Output:
Conclusion:
The conclusion of project is that this is very useful for students to safe
their time. If the student is at home and he want a book urgent than he can take
book online though this system and this can safe his time to come university for
book. And it is also used by student’s parents to read newspaper daily.