Professional Documents
Culture Documents
A
MICROPROJECT REPORT
ON
SUBMITTED
BY
Under Guidance of :
Mrs. Sheetal Kawale
Maharashtra State
Board of technical Education
Certificate
This is to certify that Ms. Dishaa Raskar with Roll No. 06 of Third Semester of Diploma in
Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code : 0040) has
successfully completed the Micro-Project in Object oriented programming using C++ for
the academic year 2019-2020.
2
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
Maharashtra State
Board of technical Education
Certificate
This is to certify that Ms. Madhura Pansare with Roll No. 19 of Third Semester of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code :
0040) has successfully completed the Micro-Project in Object oriented programming
using C++for the academic year 2019-2020.
3
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
Maharashtra State
Board of technical Education
Certificate
This is to certify that Ms. Riddhi Pawar with Roll No. 21 of Third Semester of Diploma in
Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code : 0040) has
successfully completed the Micro-Project in Object oriented programming using C++ for
the academic year 2019-2020.
4
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
Annexure -1
1.0Brief Introduction:
A library management system is an enterprise resource planning system for a library, used to
track items owned, orders made, bills paid, and patrons who have borrowed.
A library management system usually comprises a relational database, software to interact with
that database, and two graphical user interfaces (one for patrons, one for staff). Most library
management systems separate software functions into discrete programs called modules, each
of them integrated with a unified interface.
3.0Action Plan:
5
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
6
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
1.0Brief Introduction:
A library management system is an enterprise resource planning system for a library, used to
track items owned, orders made, bills paid, and patrons who have borrowed.
A library management system usually comprises a relational database, software to interact with
that database, and two graphical user interfaces (one for patrons, one for staff). Most library
management systems separate software functions into discrete programs called modules, each
of them integrated with a unified interface.
7
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
4.0Action Plan:
Syntax
switch( expression )
{
case value-1:
Block-1;
Break;
case value-2:
Block-2;
Break;
case value-n:
Block-n;
Break;
default:
Block-1;
Break;
}
Statement-x;
Explaination
9
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
Value-1, 2, n are case labels which are used to identify each case individually. Remember that
case labels should not be same as it may create a problem while executing a program. Suppose
we have two cases with the same label as '1'. Then while executing the program, the case that
appears first will be executed even though you want the program to execute a second case. This
creates problems in the program and does not provide the desired output.
The break keyword in each case indicates the end of a particular case. If we do not put the break
in each case then even though the specific case is executed, the switch will continue to execute
all the cases until the end is reached. This should not happen; hence we always have to put break
keyword in each case. Break will terminate the case once it is executed and the control will fall
out of the switch.
The default case is an optional one. Whenever the value of test-expression is not matched with
any of the cases inside the switch, then the default will be executed. Otherwise, it is not
necessary to write default in the switch.
Once the switch is executed the control will go to the statement-x, and the execution of a
program will continue.
Break Statement
It is used to come out of the loop instantly. When a break statement is encountered inside a loop,
the control directly comes out of loop and the loop gets terminated. It is used with if statement,
whenever used inside loop.
This can also be used in switch case control structure. Whenever it is encountered in switch-case
block, the control comes out of the switch-case
Syntax
break;
Explanation
Break statement used in case 1 will exit switch statement when case 1 completes its execution.
If break statement is not used then after case 1 compile will execute case 2 also and gives output
as : welcome to case 1
welcome to case 2
10
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
#include<iostream>
#include<conio.h>
#include<string.h>
#include<process.h>
class books {
public:
int stock;
char bookname[20];
float price;
void loadbooks();
void display();
};
void books::loadbooks() {
cin>>bookname;
cin>>author;
11
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
cin>>publisher;
cout<<"\nEnter Price:";
cin>>price;
cout<<"\nEnter Stock:";
cin>>stock;
cout<<"\n-------------\n";
void books::display() {
cout<<"\nStock Present:"<<stock;
cout<<"\n-------------\n";
int main() {
books ob[10];
int ch, n;
do{
cout<<"\n****\n";
12
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
cout<<"\n1.Load Books\n2.Display\n3.Search\n4.Exit\n";
cin>>ch;
switch(ch)
cin>>n;
for(int i=0;i<n;i++)
ob[i].loadbooks();
break;
case 2:
for(int i=0;i<n;i++)
ob[i].display();
break;
case 3:
cin>>bname;
cin>>aname;
for(int i=0;i<n;i++)
13
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
if(strcmp(bname, ob[i].bookname)==0&&strcmp(aname,ob[i].author))
cout<<"\nBook Present\n\n";
cout<<"\nStock Present:"<<ob[i].stock;
cout<<"\n-------------\n";
break;
else
cout<<"Not Present!!";
break;
break;
case 4: exit(1);
}while(1);
14
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
OUTPUT
15
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System
16
Department of Computer Technology Academic Year 2020-2021