0% found this document useful (0 votes)
7 views13 pages

Final Project Library

Uploaded by

manishxrma0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views13 pages

Final Project Library

Uploaded by

manishxrma0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

FINAL PROJECT

Bachelor of Computer Application

Submitted By : Submitted To :
Anurag Gupta
Manish Kumar Sharma (23scse1670001)
Khushi (23scse1690064)
Lakshya(23scse1690009)
Manish Shahi(23scse1690032)
.
Krishna(23scse1690066)

.hghg
E-Library
Management
System
An efficient C++ program designed to simplify library
management. This E-Library system provides a user-friendly
interface to add, display, and query book information,
empowering libraries and book enthusiasts to streamline their
collections.
Key Features

1 Add Books 2 Display Books


Easily input book details like name, View the complete library of books
author, pages, and price. with a single command.

3 Search by Author 4 Book Count


Quickly locate all books by a specific Instantly see the total number of
author. books in the library.
Program Structure
Data Structure User Interface Logical Flow

The program uses a struct A menu-driven interface The main function


called "library" to store allows users to easily includes a loop for user
book details, and an array navigate and access the interaction, with a switch-
of these structs to hold various functionalities of case statement managing
the entire collection. the E-Library system. the different program
features.
Code :
#include <iostream>

#include <string>

using namespace std;

struct library {

string book_name;

string author;

int pages;

float price;

};

int main()

library lib[100];
Code Walkthrough
Struct Definition Menu Logic Functionality

The "library" struct is The main function Each case in the switch
defined to store book includes a loop for user statement handles a
details like name, author, interaction, with a switch- specific task, such as
pages, and price. case statement managing adding books, displaying
the different program the library, searching by
features. author, and counting the
total books.
Adding Books
Prompt
User is asked to input book details like name, author, pages, and price.

Store
The book information is stored in the "lib" array of library structs.

Increment
The total book count is incremented to keep track of the library size.
Displaying Books
Iterate Display
The program iterates through the "lib" The book information is then printed to
array of library structs. the user in a formatted manner.

1 2 3

Access
It accesses the book details stored in
each struct member.
Searching by Author
Prompt Match
The user is asked to input the author's The program checks each book's author
name to search for. against the user's input.

Display Flexibility
All books by the specified author are This feature allows users to quickly find
then displayed to the user. books by their preferred authors.
Counting Books

Book Count Calculation Display


The program keeps track of It simply returns the The total book count is
the total number of books current value of the book then printed to the user for
in the library. count variable. easy reference.
Output :
Real-World Applications
Libraries Prototype
This E-Library system can be The simple C++ program can serve as a
implemented in school, college, and prototype for more advanced library
community libraries to manage their management systems in the future.
book collections.

1 2 3

Personal Use
Book enthusiasts can use the program
to organize and track their personal
book collections.
Conclusion
1 Efficient Management 2 Extensibility
The E-Library Management The program's modular design
System provides a user-friendly allows for easy expansion with
and efficient way to manage additional features to meet the
book information in libraries and evolving needs of library
personal collections. management.

3 Educational Value
This C++ project serves as an excellent learning tool for students and
professionals to understand data structures and program design.

You might also like