Computer Project Sample 1
Computer Project Sample 1
NAME :
GRADE :
ROLL NO :
SUNBEAM SR SEC SCHOOL
BONAFIDE CERTIFICATE
Teacher Principal
*Introduction
*Features
*Software used
. Front-end:Python
. Back-end:Mysql
*Advantages and Disadvantages
*Source code and output
*Bibliography
INTRODUCTION
The “Library Management system “ has been developed
to overrule the problems prevailing in the practicing
manual system.The application is reduced as much as
possible to avoid errors while entering the data. It also
provides error alert while entering invalid data. No
formal knowledge is needed for the user to use this
system. Thus , by this all it proves it is user friendly.
Library management system , as described above , can
lead to error free, secure , reliable, authentic and fast
management system.
SOFTWARE USED
Python 3.10.0: Python is an interpreted high-level general-purpose
programming language. Its design philosophy accentuates code
readability with the use of significant indentation. Its language
constructs an object-oriented approach aim to help programmers
write clear,logical code for small-and large-scale projects.
Note: Both the programs are interfaced with the help of MySQL
connectorwhich acts as a bridge between these programs
*Fast Process
* Easy maintenance and circulation of books
* Reduces Manual work
* Automation of the library will ensure better less-time consuming,
effective work rather manually.
*It saves organization resources
*Improved access
*Technical issues
*Costly and expensive
*Risk of computer viruses
*The data is prone to cyber hacks
*Equipment and infrastructures
*Requires high-speed Internet connectivity
*User skills
SOURCE CODE
For MySQL:
create database library_app;
use library_app; create
table books (bname
varchar(50), author
varchar(50), bcode
varchar(50), total int(50),
subject varchar(50));
def addbook():
bn=input("Enter Book Name: ")
ba=input("Enter Author's Name: ")
c=int(input("Enter Book Code: ")
t=int(input("Total Books: ") s=input("Enter
Subject: ")
data=(bn,ba,c, t,s) sql='insert into books values(%s,%s, %s,%s,%s):'
c=Con.cursor()
c.execute(sql,data)
con.commit()
print("|n\n\n\nBook Added Successfully...n\n\nin") wait =
input(‘\n\n\nPress enter to continue...n\n\n\n\n\n’)
main()
def issueb():
n=input("Enter Student Name: ")
r=int(input("Enter Reg No.: "))
co=int(input("Enter Book Code: ") d=input("Enter
Date: ")
def dbook():
ac=int(input("Enter Book Code: ")
a="delete from books where bcode=%s;"
data=(ac,) c=Con.cursor()
c.execute(a,data) con.commit()
print("Book deleted successfully") wait
= input(\n\n\nPress enter to
continue.nin\nnn\n\nnnn\n\n) main()
def dispbook():
a="'select * from books;"
c=Con.cursor()
C.execute(a)
myresult=c.fetchall() for
i in myresult:
print("Book name:",i[O])
print("Author:"i[1]) "Book code:"i[2)
print"Total:",i[3]). print("Subject:",i[4])
print("\n\n') wait = input('\n\n\nPress
enter to continue...\n\n\n\n\n\n\n\n\
n\n\n\n') main()
def report_issued_books():
a="'select * from issue;"
c=Con.cursor()
C.execute(a)
myresult=c.fetchall() for i
in myresult:
print(myresult)
def main():
print("”” LIBRARY MANAGEMENT APPLICATION
1. ADD BOOK
2. ISSUE OF BOOK
3. RETURN OF BOOK
4. DELETE BOOK
5. DISPLAY BOOKS
6. REPORT MENU
7. EXIT PROGRAM
“””)
choice-input("Enter Task No:.... ")
print("\n\n\n\n\n\n\n')
if(choice=='1'): addbook()
elif(choice==’2’):
issueb()
elif(choice=-'3'):
returnb()
elif(choice==4'):
dbook()
elif(choice=='5):
dispbook()
elif(choice=6): 2):
print(" REPORT MENU
1. ISSUED BOOKS
2. RETURNED BOOKS
3. GO BACK TO MAIN MENU
\n\n\n
‘’’)
choice=input("Enter Task No......")
print(\n\n\n\n\n\n\n') if
choice==1:
report_issued books()
elif choice=="2:
report_return_books()
elif choice=='3':
main() else:
print(“please try again………..\n\n\n\n\n\n\n\n\n\”)
main() elif(choice==’7’):
print(\n\n\n\n\n\n\n\n\n\n\Thank you have a great
day ahead…………….\n\n\n\n\n\n\n\n\n\n\n’) else:
print(“please try again……………\n\n\n\n\n\n\n\n\n\n”)
main()
BIBLIOGRAPHY