Professional Documents
Culture Documents
REPORT]
[FOOD BILLING SYSTEM]
FOR
Under the Guidance of: [MS ANNI KUMAR (PGT COMPUTER SCIENCE)]
FOOD BILLING SYSTEM
CERTIFICATE
This is to certify that the Project entitled, Food Billing System is a bonafide work done
AISSCE Examination 2024 and has been carried out under my direct supervision and
guidance. This report or a similar report on the topic has not been submitted for any other
examination and does not form a part of any other course undergone by the candidate.
1
FOOD BILLING SYSTEM
ACKNOWLEDGEMENT
In the accomplishment of this project successfully, many people have best owned upon
me their blessings and the heart pledged support, this time I am utilizing to thank all the
people who have been concerned with this project.
I would like to express my special thanks of gratitude to our principal Ms. Teena Solanki
teacher and Informatics Practices teacher Ms. Anni Kumar who gave me the golden
opportunity to do this wonderful project on the topic (Write the topic name), 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 them. The suggestions and instructions given by my IP teachers have
served as the major contributor towards the completion of the project.
Any attempt at any level can 't be satisfactorily completed without the support and
guidance of my parents and friends.
I would like to thank my parents who helped me a lot in gathering different information,
collecting data and guiding me from time to time in making this project, despite of their
busy schedules, they gave me different ideas in making this project unique.
Thanking you,
Your name
XII-
2
FOOD BILLING SYSTEM
INDEX
S.No. CONTENT PAGE NO.
2. Features of Python
3. Features of MySql
5. Coding
6. Output
7. Bibliography
3
FOOD BILLING SYSTEM
The main.py is the first program where 4 buttons are displayed and the user can add,
modify, delete or run the report.py programs. The Addition.py programs helps to add
record of a new bill generated. Modification.py helps to modify the bill and deletion.py
helps to delete any record according to the billno.
Report.py helps to search any bill and also display all the records of the table customer.
4
FOOD BILLING SYSTEM
FEATURES OF PYTHON
Python is a widely used general-purpose, high level programming language. It was
initially designed by Guido van Rossum in 1991 and developed by Python Software
Foundation. It was mainly developed for emphasis on code readability, and its syntax
allows programmers to express concepts in fewer lines of code.
Python is a programming language that lets you work quickly and integrate systems more
efficiently.
Interpreted There are no separate compilation and execution steps like C and C+
+. Directly run the program from the source code. Internally, Python
converts the source code into an intermediate form called bytecodes
which is then translated into native language of specific computer to
run it. No need to worry about linking and loading with libraries, etc.
5
FOOD BILLING SYSTEM
Rich Library Support The Python Standard Library is vary vast. Known as the
“batteries included” philosophy of Python ;It can help do
various things involving regular expressions, documentation
generation, unit testing, threading, databases, web browsers,
CGI, email, XML, HTML, WAV files, cryptography, GUI and
many more. Besides the standard library, there are various other
high-quality libraries such as the Python Imaging Library which
is an amazingly simple image manipulation library.
FEATURES OF MYSQL
6
FOOD BILLING SYSTEM
Database
A database is simply a collection of structured data. Think of taking a selfie: you push a
button and capture an image of yourself. Your photo is data, and your phone’s gallery is
the database. A database is a place in which data is stored and organized. The word
“relational” means that the data stored in the dataset is organized as tables. Every table
relates in some ways. If the software doesn’t support the relational data model, just call it
DBMS.
Open source
Open source means that you’re free to use and modify it. Anybody can install the
software. You can also learn and customize the source code to better accommodate your
needs. However, The GPL (GNU Public License) determines what you can do depending
on conditions. The commercially licensed version is available if you need more flexible
ownership and advanced support.
Client-server model
Computers that install and run RDBMS software are called clients. Whenever they need
to access data, they connect to the RDBMS server. That’s the “client-server” part.
MySQL is one of many RDBMS software options. RDBMS and MySQL are often
thought to be the same because of MySQL’s popularity. To name a few big web
applications like Facebook, Twitter, YouTube, Google, and Yahoo! all use MySQL for
data storage purposes. Even though it was initially created for limited usage, now it’s
7
FOOD BILLING SYSTEM
compatible with many important computing platforms like Linux, macOS, Microsoft
Windows, and Ubuntu.
SQL
MySQL and SQL are not the same. Be aware that MySQL is one of the most popular
RDBMS software’s brand name, which implements a client-server model. So, how do the
client and server communicate in an RDBMS environment? They use a domain specific
language – Structured Query Language (SQL). If you ever encounter other names that
have SQL in them, like PostgreSQL and Microsoft SQL server, they are most likely
brands which also use SQL syntax. RDBMS software is often written in other
programming languages, but always use SQL as their primary language to interact with
the database. MySQL itself is written in C and C++.
Computer scientist Ted Codd developed SQL in the early 1970s with an IBM based
relational model. It became more widely used in 1974 and quickly replaced similar, then-
outdated languages, ISAM and VISAM. History aside, SQL tells the server what to do
with the data. It is similar to your WordPress password or code. You input it into the
system to gain access to the dashboard area. In this case, SQL statements can instruct the
server to perform certain operations:
Data manipulation: adding, deleting, changing, sorting, and other operations to modify
the data, the values or the visuals.
Data identity: defining data types, e.g. changing numerical data to integers. This also
includes defining a schema or the relationship of each table in the database
Data access control: providing security techniques to protect data, this includes deciding
who can view or use any information stored in the database.
8
FOOD BILLING SYSTEM
The image explains the basic structure of the client-server structure. One or more devices
(clients) connect to a server through a specific network. Every client can make a request
from the graphical user interface (GUI) on their screens, and the server will produce the
desired output, as long as both ends understand the instruction. Without getting too
technical, the main processes taking place in a MySQL environment are the same, which
are:
MySQL creates a database for storing and manipulating data, defining the
relationship of each table.
Clients can make requests by typing specific SQL statements on the MySQL.
The server application will respond with the requested information and it will
appear on the clients’ side.
Why is MySQL so Popular?
MySQL is indeed not the only (R)DBMS on the market, but it is one of the most popular
ones and only second to Oracle Database when scored using critical parameters like the
number of mentions in search results, professional profiles on LinkedIn, and frequency of
technical discussions on internet forums. The fact that many major tech giants rely on it
further solidifies the well-deserved position. Why so? Here are the reasons:
You can modify the source code to meet your own expectations, and don’t need to pay
anything for this level of freedom, including the options for upgrading to the advanced
commercial version. The installation process is relatively simple, and shouldn’t take
longer than 30 minutes.
9
FOOD BILLING SYSTEM
High performance
A wide array of cluster servers backs MySQL. Whether you are storing massive amounts
of big e-Commerce data or doing heavy business intelligence activities, MySQL can
assist you smoothly with optimum speed.
An industry standard
Industries have been using MySQL for years, which means that there are abundant
resources for skilled developers. MySQL users can expect rapid development of the
software and freelance experts willing to work for a smaller wage if they ever need them.
Secure
Your data should be your primary concern when choosing the right RDBMS software.
With its Access Privilege System and User Account Management, MySQL sets the
security bar high. Host-based verification and password encryption are both available.
10
FOOD BILLING SYSTEM
b. MySQL
MySQL>=4.1
import pymysql
#database connection
connection =
pymysql.connect(host="localhost",user="root",passwd="",database="databaseName" )
cursor = connection.cursor()
connection.close()
11
FOOD BILLING SYSTEM
Let’s now create a table named Artist having columns – name, id and track.
import pymysql
#database connection
cursor = connection.cursor()
TRACK CHAR(10))"""
cursor.execute(ArtistTableSql)
connection.close()
To insert some row entities in the table. First we have to write the queries to insert
different data, then execute it with the help of cursor.
import pymysql
#database connection
cursor = connection.cursor()
12
FOOD BILLING SYSTEM
cursor.execute(insert1)
cursor.execute(insert2)
connection.commit()
connection.close()
We have inserted two rows in the above code. Now we to retrieve those. To do this have
a look at the following example:
import pymysql
#database connection
cursor = connection.cursor()
cursor.execute(retrive)
rows = cursor.fetchall()
print(row)
13
FOOD BILLING SYSTEM
connection.commit()
connection.close()
To rename the name of the first artist from Towang to Tauwang. To update any attribute
of any entity do the following:
cursor.execute(updateSql )
cursor.execute(deleteSql )
Sometimes we may need to drop any table before creating any new table so that name
collision does not take place. To drop the Artists table, we can do this as following:
cursor.execute(dropSql)
14
FOOD BILLING SYSTEM
CODING
15
FOOD BILLING SYSTEM
OUTPUTS
16
FOOD BILLING SYSTEM
BIBLIOGRAPHY
https://www.journaldev.com/15539/python-mysql-
example-tutorial
https://www.tutorialspoint.com/
http://zetcode.com/python/pymysql/
https://pymysql.readthedocs.io/en/latest/user/
examples.html
https://www.w3schools.com/
https://pynative.com/
17