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

9108-Computer Science Project-Final

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

9108-Computer Science Project-Final

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

ACADEMIC YEAR: 2024-25

SUBJECT: COMPUTER SCIENCE (083)

PROJECT REPORT ON
STUDENT RECORD MANAGEMENT SYSTEM

Submitted by: Adhikari Deep Ranjan Dash


Admission Number: 9108
Class: XII-H
Board Roll Number: ____________________
CERTIFICATE
This is to certify that Adhikari Deep Ranjan Dash, from XII-H,
bearing board roll number ___________________ has
successfully completed the project work entitled “Student
Record Management System” in Python under the guidance of
Mrs. Rajani Trivedi (subject teacher) during the session 2024-25
in partial fulfilment of Computer Science (083) practical
Examination conducted by AISSCE, New Delhi.

Internal Examiner External Examiner


ACKNOWLEDGEMENT

I would like to express my sincere and special gratitude to


our Principal Sir, Nilakantha Panigrahi of our esteemed SAI
International School, Bhubhaneshwar, for always encouraging
us to excel in all that we do.

I would like to thank my Computer Science teacher, Mrs


Rajani Trivedi for her continuous guidance, encouragement
and immense motivation which helped me at all stages of this
project. Lastly I would like to thank my family and friends for
helping me in the completion of the project.
TABLE OF CONTENT
SL CONTENT

1 SOURCE CODE

2 OUTPUT

3 HARDWARE-SOFTWARE REQUIREMENT

4 BIBILIOGRAPHY
SOURCE CODE
class Book:
def __init__(self, book_no, name, price, stock):
self.book_no = book_no
self.name = name
self.price = price
self.stock = stock

def __str__(self):
return f"Book No: {self.book_no}, Name: {self.name},
Price: {self.price}, Stock: {self.stock}"

class Library:
def __init__(self):
self.books = []

def add_book(self):
book_no = int(input("Enter Book No: "))
name = input("Enter Book Name: ")
price = float(input("Enter Book Price: "))
stock = int(input("Enter Book Stock: "))
new_book = Book(book_no, name, price, stock)
self.books.append(new_book)
print(f"Book '{name}' added to the library.")

def display_books(self):
if not self.books:
print("No books in the library.")
return
for book in self.books:
print(book)
def search_book(self):
book_no = int(input("Enter Book No to search: "))
for book in self.books:
if book.book_no == book_no:
print(book)
return
print(f"No book found with Book No: {book_no}")

def update_stock(self):
book_no = int(input("Enter Book No to update stock: "))
for book in self.books:
if book.book_no == book_no:
new_stock = int(input("Enter new stock value: "))
book.stock = new_stock
print(f"Stock updated for Book No: {book_no}. New
Stock: {new_stock}")
return
print(f"No book found with Book No: {book_no}")

def delete_book(self):
book_no = int(input("Enter Book No to delete: "))
for book in self.books:
if book.book_no == book_no:
self.books.remove(book)
print(f"Book with Book No: {book_no} has been
removed from the library.")
return
print(f"No book found with Book No: {book_no}")
# Main program
def main():
library = Library()
while True:
print("\nLibrary Management System")
print("1. Add Book")
print("2. Display Books")
print("3. Search Book")
print("4. Update Book Stock")
print("5. Delete Book")
print("6. Exit")
choice = input("Enter your choice: ")

if choice == '1':
library.add_book()
elif choice == '2':
library.display_books()
elif choice == '3':
library.search_book()
elif choice == '4':
library.update_stock()
elif choice == '5':
library.delete_book()
elif choice == '6':
break
else:
print("Invalid choice, please try again.")

if __name__ == "__main__":
main()
OUTPUT
Library Management System
1. Add Book
2. Display Books
3. Search Book
4. Update Book Stock
5. Delete Book
6. Exit
Enter your choice: 1
Enter Book No: 1
Enter Book Name: Fantasy
Enter Book Price: 400
Enter Book Stock: 4
Book 'Fantasy' added to the library.

Library Management System


1. Add Book
2. Display Books
3. Search Book
4. Update Book Stock
5. Delete Book
6. Exit
Enter your choice: 2
Book No: 1, Name: Fantasy, Price: 400.0, Stock: 4

Library Management System


1. Add Book
2. Display Books
3. Search Book
4. Update Book Stock
5. Delete Book
6. Exit
Enter your choice: 3
Enter Book No to search: 1
Book No: 1, Name: Fantasy, Price: 400.0, Stock: 4
Library Management System
1. Add Book
2. Display Books
3. Search Book
4. Update Book Stock
5. Delete Book
6. Exit
Enter your choice: 4
Enter Book No to update stock: 1
Enter new stock value: 2
Stock updated for Book No: 1. New Stock: 2

Library Management System


1. Add Book
2. Display Books
3. Search Book
4. Update Book Stock
5. Delete Book
6. Exit
Enter your choice: 5
Enter Book No to delete: 1
Book with Book No: 1 has been removed from the library.

Library Management System


1. Add Book
2. Display Books
3. Search Book
4. Update Book Stock
5. Delete Book
6. Exit
Enter your choice: 6
HARDWARE AND SOFTWARE
REQUIREMENTS

Python when used for this program is not very resource


intensive. Any computer assembled in the last 10 years or so
will be able to meet the minimum necessary hardware and
software requirements.

Below are the recommended system requirements:

WINDOWS 7+/
OPERATING SYSTEM LINUX V3+/
MACOS V16+
INTEL CORE I3+/
PROCESSOR
RYZEN 3+
RAM 4 GB+
EMPTY DISK SPACE 5 GB+
SOFTWARE PYTHON 3.X.X
BIBILIOGRAPHY
 Computer Science with Python (Class XII) by Sumita Arora
 www.w3schools.com
 www.programiz.com
 www.geeksforgeeks.org

You might also like