You are on page 1of 16

Object oriented programming using C++ (22316) Library Management System

A
MICROPROJECT REPORT
ON

To create a C++ program on Library Management System

SUBMITTED
BY

Roll No Name of Group Members


06 Dishaa Raskar
19 Madhura Pansare
21 Riddhi Pawar

Under Guidance of :
Mrs. Sheetal Kawale

Diploma Course in Computer Technology


(As per directives of I scheme)

Sinhgad Technical Education Society’s


SOU.VENUTAI CHAVAN POLYTECHNIC, PUNE – 411051.
ACADEMIC YEAR: 2019 – 2020
1
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. 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.

Place: SVCP, Pune Enrollment No:

Date: Exam Seat No:

Mrs. Sheetal Kawale Mrs. A V Kurkute Dr. M S Jadhav

Subject teacher HOD Principal

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.

Place: SVCP, Pune Enrollment No:


Date: Exam Seat No:

Mrs. Sheetal Kawale Mrs. A V Kurkute Dr. M S Jadhav

Subject Teacher HOD Principal

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.

Place: SVCP, Pune Enrollment No:

Date: Exam Seat No:

Mrs. Sheetal Kawale Mrs. A V Kurkute Dr. M S Jadhav

Subject Teacher HOD Principal

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.

Library Management Systems are also knowns as Integrated Library Systems.

2.0 Aim Of The Microproject:

To create a C++ program on Library Management System

3.0Action Plan:

Sr. No Details of Planned start Planned finish Name of


activity date date responsible
team members
1 Understand the Riddhi Pawar
aim of the
project topic Madhura
Pansare
2 Understand how Disha Raskar
they work
Madhura
Pansare
3 Collect all data Riddhi Pawar
of Library
management Madhura
system Pansare
4 Prepare final Riddhi Pawar
report
Disha Raskar

5
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System

4.0. Resources Required:

Sr.No Name of Specification Qty Remark


Resource/material
1 Computer Windows OS 1
2 Turbo C++

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.

Library Management Systems are also knowns as Integrated Library Systems.

2.0Aim Of The Micro project:

To create a C++ program on Library Management System

3.0 Course outcome integrated:

a) Develop C++ programs to solve problems using Procedure Oriented Approach

b) Develop C++ programs using classes and objects

7
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System

4.0Action Plan:

Sr. No Details of Planned start Planned finish Name of


activity date date responsible
team members
1 Understand the Riddhi Pawar
aim of the
project topic Madhura
Pansare
2 Understand how Disha Raskar
they work
Madhura
Pansare
3 Collect all data Riddhi Pawar
of library
management Madhura
system Pansare
4 Prepare final Riddhi Pawar
report
Disha Raskar

5.0. Resources Required:

Sr.No Name of Specification Qty Remark


Resource/materia
l
1 Computer Windows OS 1
2 Turbo C++
8
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System

6.0 Outputs of the microproject:

Switch Case Statement


A switch statement tests the value of a variable and compares it with multiple cases. Once the
case match is found, a block of statements associated with that particular case is executed.
Each case in a block of a switch has a different name/number which is referred to as an
identifier. The value provided by the user is compared with all the cases inside the switch block
until the match is found.
If a case match is found, then the default statement is executed, and the control goes out of the
switch block

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

The expression can be integer expression or a character expression.

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

C program for Library Management System

#include<iostream>

#include<conio.h>

#include<string.h>

#include<process.h>

using namespace std;

class books {

public:

int stock;

char author[20], publisher[20];

char bookname[20];

float price;

void loadbooks();

void display();

};

void books::loadbooks() {

cout<<"\nEnter Book Name:";

cin>>bookname;

cout<<"\nEnter Author Name:";

cin>>author;
11
Department of Computer Technology Academic Year 2020-2021
Object oriented programming using C++ (22316) Library Management System

cout<<"\nEnter Publisher Name:";

cin>>publisher;

cout<<"\nEnter Price:";

cin>>price;

cout<<"\nEnter Stock:";

cin>>stock;

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

void books::display() {

cout<<"\nName of the Book:"<<bookname;

cout<<"\nAuthor of the Book:"<<author;

cout<<"\nPublisher of the Book:"<<publisher;

cout<<"\nPrice of the Book:"<<price;

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

cout<<"\n\nEnter your Choice:";

cin>>ch;

switch(ch)

case 1: cout<<"Enter Number of Books:";

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:

char bname[20], aname[20];

cout<<"Enter name of the Book:";

cin>>bname;

cout<<"Enter name of the Author:";

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<<"\nName of the Book:"<<ob[i].bookname;

cout<<"\nAuthor of the Book:"<<ob[i].author;

cout<<"\nPublisher of the Book:"<<ob[i].publisher;

cout<<"\nPrice of the Book:"<<ob[i].price;

cout<<"\nStock Present:"<<ob[i].stock;

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

break;

else

cout<<"Not Present!!";

break;

break;

default: cout<<"Enter a valid choice!!";

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

You might also like