Final Project Library
Final Project Library
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
#include <string>
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
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.