Professional Documents
Culture Documents
Sample of CS 1
Sample of CS 1
•CERTIFICATE
• ACKNOWLEDGEMENT
• INTRODUCTION
•ABOUT THE PROGRAMMING LANGUAGE
(Python & SQL)
•LIBRARIES
•MODULES
• SOURCE CODE + OUTPUTS
•BIBLIOGRAPHY
CERTIFICATE
Teacher's Signature
ACKNOWLEDGEMENT
I would like to express my special
thanks of gratitude to my teacher Mrs.
Anjali Nainwal who gave me the
golden opportunity to do this
wonderful project on the topic Library
management system which also helped
me in doing a lot of Research and i
came to know about so many new
things. I am really thankful to her.
Secondly i would also like to thank my
parents and friends who helped me a
lot in finishing this project within the
limited time. I am making this project
not only for marks but to also increase
my knowledge. THANKS AGAIN TO ALL
WHO HELPED ME
INTRODUCTION
PYTHON – PLUSES
Easy to use
Python is compact and very easy to use
object oriented language with very simple
syntax rules.
Expressive language
It is more capable to expressing the code's
purpose than many other languages.
Interpreted language
Python installation interprets and executes
the code line by line at a time making it
easy to debug.
Cross – Platform language
Python can run equally well on variety of
platforms – Windows,
LINUX/UNIX ,smartphones etc.
Free and Open Source
Python language is freely available i.e. ,
without any cost(from www.python.org).
Variety of Usage/Applications
Scripting, Web applications , Game
development, System Administration ,
Rapid prototyping, GUI programs ,
Database application. All you can do that
alone in Python.
PYTHON – SOME MINUSES (so
human like)
Not the Fastest Language
Python is an interpreted language not a
fully compiled one which makes it execution
time not that fast compared to some
compiled languages.
Lesser Libraries than C , Java , Perl
Python offer library support for almost all
computing programs, but it’s library is still
not competent with languages like C, Java,
Perl as they have larger library collection.
Not Strong on Type Binding
Python interpreter is not very strong on
catching 'Type-mismatch' issues.
Not Easily Convertible
Because of its lack of syntax, it is a
disadvantage when it comes to translating
a program into another programming
language.
PYTHON LIBRARIES
Python Libraries are a set of useful functions
that eliminate the need for writing codes from
scratch.
There are over 137,000 python libraries present
today.
Python libraries play a vital role in developing
machine learning, data science, data
visualization, image and data manipulation
applications and more.
What is a Library?
A library is a collection of pre-combined codes
that can be used iteratively to reduce the time
required to code. They are particularly useful
for accessing the pre-written frequently used
codes, instead of writing them from scratch
every single time.
Similar to the physical libraries, these are a
collection of reusable resources, which means
every library has a root source. This is the
foundation behind the numerous open-source
libraries available in Python.
SOME PYTHON LIBRARIES TO LEARN ABOUT
NUMPY
When it comes to scientific computing,
NumPy is one of the fundamental packages
for Python providing support for large
multidimensional arrays and matrices along
with a collection of high-level mathematical
functions to execute these functions swiftly.
NumPy relies on BLAS and LAPACK for
efficient linear algebra computations.
NumPy can also be used as an efficient
multi-dimensional container of generic
data.
MATPLOTLIB
All the libraries that we have discussed are
capable of a gamut of numeric operations
but when it comes to dimensional plotting,
Matplotlib steals the show. This open-
source library in Python is widely used for
publication of quality figures in a variety of
hard copy formats and interactive
environments across platforms. You can
design charts, graphs, pie charts
scatterplots, histograms, error charts, etc.
SCIPY
This is yet another open-source software
used for scientific computing in Python.
Apart from that, Scipy is also used for Data
Computation, productivity, and high-
performance computing and quality
assurance.The core Scipy packages are
Numpy, SciPy library, Matplotlib, IPython,
Sympy, and Pandas.
TENSORFLOW
The most popular deep learning framework,
TensorFlow is an open-source software
library for high-performance numerical
computation. It is an iconic math library and
is also used for machine learning and deep
learning algorithms. Tensorflow was
developed by the researchers at the Google
Brain team within Google AI organisation,
and today it is being used by researchers for
machine learning algorithms, and by
physicists for complex mathematical
computations. The following operating
systems support TensorFlow: macOS
10.12.6 (Sierra) or later; Ubuntu 16.04 or
later; Windows 7 or above; Raspbian 9.0 or
later.
PYTHON MODULES
A Python module is a Python file containing a
set of functions and variables to be used in an
application. The variables can be of any type
(arrays, dictionaries, objects, etc.)
Modules can be either:
1. Built in
2. User - defined
BENEFITS OF MODULES IN PYTHON
There are a couple of key benefits of creating
and using a module in Python:
Structured Code
Code is logically organized by being grouped
into one Python file which makes development
easier and less error-prone.
Code is easier to understand and use.
Reusability
Functionality defined in a single module can be
easily reused by other parts of the application.
This eliminates the need to recreate duplicate
code.
SQL
SQL Structured Query Language, was developed
in 1970s in an IBM Laboratory. SQL sometimes
also referred to as SEQUEL is a 4th generation
non-procedural language. The non-procedural
languages just need to be specified WHAT of
the problem. That is, in non-procedural
languages ‘WHAT is required’ is specified in
contrast to 3GL’s ‘HOW it is to be done’. Since
SQL is non-procedural and that is what makes it
simple, it makes an RDBMS possible.
SQL, enables the following: (a)
Creating/modifying a database’s structure (b)
Changing security Settings for system
(c)Permitting users for working on databases or
tables (d) Querying Database
(e)Inserting/Modifying/Deleting the database
contents.
MYSQL DATABASE SYSTEM
The key role of a database management system
is information management. A database server
is the key to solving the problems of
information management. In general, a server
must reliably manage a large amount of data in
a multi-user environment so that many users
can concurrently access the same data. A
database server must also prevent
unauthorized access and provide efficient
solutions for failure recovery,
MySQL database system refers to the
combination of a MySQL server instance and a
MySQL database. MySQL operates using
client/server architecture in which the server
runs on the machine containing the databases
and clients connect to the server over a
network. The server operating systems is
usually a Linux (like Redhat 9.0 etc.) or
Windows operating system. Typically MySQL is
supported on Windows XP, Windows Server
2003, Red Hat Fedora Linux, and Debian Linux,
and others. As with any other client/server
application, MySQL is a multi-user database
system, meaning several users can access the
database simultaneously.
MYSQL AND SQL
In order to access data within the MySQL
database, all programs and users must use,
Structured Query Language (SQL). SQL is the set
of commands that is recognised by nearly all
RDBMSS. Usage of SQL has become a standard
for most of RDBMSs. Though application
programs and MySQL tools often allow users to
access database without directly using SQL, but
these applications in turn must use SQL when
executing the user’s request.
The Structured Query Language (SQL) is a
language that enables you to create and
operate on Relational databases, which are sets
of related information stored in tables.
Classification of SQL Statements
DDL(Data Definition Language) : DDL or Data
Definition Language actually consists of the SQL
commands that can be used to define the
Database schema. It simply deals with
Descriptions of the database schema and is
used to create and modify the structure of
database objects in the database.
Examples of DDL commands:
• DROP – is used to delete objects from the
database.
• ALTER-is used to alter the structure of the
database.
print(“public library”)
print(“**welcome**”)
print(“~~~~~~~~~~~~~~”)
if(x==3)
print(“You have chosen issue books”)
print(“Note: The max day of issuing the book is
5 days”)
bookn = input (“Enter the book name which you
want to issue”)
date = input(“Enter the issuing date”)
print(“Thank you! for issuing the book”)
if(x==4):
print(“You have chosen return book”)
rbook=input(“Enter the book name”)
rdate=input(“Enter the returning date”)
print(“Thanks for returning”)
print(“Hope, it was useful for you”)
print(“Thank you! , Please visit again.”)
OUTPUT
PYTHON
SOURCE CODE
MYSQL
Mysql> use db;
Database changed
Mysql> create table book
(s_No int, LoginID varchar(10),
Choosen_Function char(20), Book
char(20));
Query OK, 0 rows affected (0.09 sec)
OUTPUT
MYSQL
BIBLIOGRAPHY