0% found this document useful (0 votes)
124 views25 pages

YUG

Yug Chavda completed a school project on introduction to Python under the supervision of his teacher. He expresses gratitude to his computer science teacher Sonia Choudhary and principal A.P. Kachchap for their encouragement and support. The project introduces Python as an interpreted, object-oriented, high-level programming language that is often used for web development, data analysis, automation, and more. It also provides a brief history of Python and introduces MySQL as a relational database management system.

Uploaded by

prince kumar
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)
124 views25 pages

YUG

Yug Chavda completed a school project on introduction to Python under the supervision of his teacher. He expresses gratitude to his computer science teacher Sonia Choudhary and principal A.P. Kachchap for their encouragement and support. The project introduces Python as an interpreted, object-oriented, high-level programming language that is often used for web development, data analysis, automation, and more. It also provides a brief history of Python and introduces MySQL as a relational database management system.

Uploaded by

prince kumar
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/ 25

This is to certify that YUG CHAVDA of class XII A, ROLL

NUMBER of KENDRIYA VIDYALAYA


has done his project on under my supervision. He has taken
interest and has shown at most sincerity in completion of this
project.

I certify this Project up to my expectation & as per guidelines


issued by CBSE.

Internal Examiner External Examiner

Principal
It is with pleasure that I acknowledge my sincere gratitude
to our teacher, MRS. SONIA CHOUDHARY who taught and
undertook the responsibility of teaching the subject computer
science. I have been greatly benefited from her classes.
I am especially indebted to our Principal MRS. A.P.
KACHCHAP who has always been a source of encouragement
and support and without whose inspiration this project would
not have been a successful I would like to place on record
heartfelt thanks to her.
Finally, I would like to express my sincere appreciation for all
the other students for my batch their friendship & the fine
times that we all shared together.

YUG CHAVDA
INTRODUCTION TO PYTHON

Python is an interpreted, object-oriented, high-


level programming language with dynamic
semantics. Its high-level built in data structures,
combined with dynamic typing and dynamic
binding, make it very attractive for Rapid
Application Development, as well as for use as a
scripting or glue language to connect existing
components together. Python's simple, easy to
learn syntax emphasizes readability and therefore
reduces the cost of program maintenance. Python
supports modules and packages, which
encourages program modularity and code reuse.
The Python interpreter and the extensive
standard library are available in source or binary
form without charge for all major platforms, and
can be freely distributed.
Python is a computer programming language
often used to build websites and software,
automate tasks, and conduct data analysis.
Python is a general-purpose language, meaning
it can be used to create a variety of different
programs and isn’t specialized for any specific
problems. This versatility, along with its
beginner-friendliness, has made it one of the
most-used programming languages today. A
survey conducted by industry analyst firm
RedMonk found that it was the second-most
popular programming language among
developers in 2021

What can you do with python? Some things


include:
• Data analysis and machine learning

• Web development

• Automation or scripting

• Software testing and prototyping

• Everyday tasks
History 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.
INTRODUCTION TO MYSQL
MySQL is a relational database management system
(RDBMS) developed by Oracle that is based on structured
query language (SQL).
A database is a structured collection of data. It may be anything
from a simple shopping list to a picture gallery or a place to hold
the vast amounts of information in a corporate network. In
particular, a relational database is a digital store collecting data
and organizing it according to the relational model. In this
model, tables consist of rows and columns, and relationships
between data elements all follow a strict logical structure. An
RDBMS is simply the set of software tools used to actually
implement, manage, and query such a database
A database is a structured collection of data. It may be anything
from a simple shopping list to a picture gallery or the vast amounts
of information in a corporate network. To add, access, and process
data stored in a computer database, you need a database
management system such as MySQL Server. Since computers are
very good at handling large amounts of data, database
management systems play a central role in computing, as
standalone utilities, or as parts of other applications
INTRODUCTION TO THE PROJECT
The cyber cafe management system is developed with a

view of providing a better experience for customers in

modern cyber cafes. It clears the doubts of the

customers and helps the owner of the cyber cafe in

maintaining a solid record of the customers and

ensuring the paying of bills. It also helps in providing

feedbacks of our cyber cafe. This is a project which helps

us to understand the importance of computers in our

daily life because without them there would have been

no cyber cafes.
SYSTEM REQUIREMENTS

HARDWARE REQUIREMENT:

➢Printer- to print the required documents of the


project.
➢Compact Drive
➢Proccesor: Pentium III and above
➢RAM: 256 MB(minimum)
➢Hard-Disk : 20 GB(minimum)

SOFTWARE REQUIREMENT:

➢ Windows 7 or higher
➢ My-SQL server 5.5 or higher (as backend)
➢ Python idle 3.6 or higher or spyder (as
frontend).

Microsoft Word 2010 or higher for


documentation.
CREATE DATABASE ccms;
USE ccms;
CREATE TABLE Add_new_customer(
Name varchar(50),
Age int(3),
Address varchar(50),
phone_no varchar(15),
email_id varchar(20));
USE CCMS;
CREATE TABLE Time_charges(

Time varchar(15),
Amount int(10));
CREATE TABLE Bill(
Name varchar(50),
Time varchar(10),
Total int(10));
import mysql.connector as sql

conn = sql.connect(host ='localhost',user

='root',password ='',database ='ccms')

if conn.is_connected():

print("successfully connected")

c1=conn.cursor()

c1.execute('create table Add_new_customer(Customer_name

varchar(20),Age int,Address varchar(100),Phone_no

int(10),Email_ID varchar(30))')

c1.execute('create table Bill(Customer_name

varchar(20),Time_accessed_in_min int,Total_charges int)')

c1.execute('create table Time_charges(Time

varchar(30),Amount_charged int)')

print("Table created")

import mysql.connector as sql


conn = sql.connect(host ='localhost',user
='root',password ='',database ='ccms')
if conn.is_connected():
print("successfully connected")
c1=conn.cursor()
print(“********AMARAVIAN CYBER CAFE WELCOMES
YOU**********")
print("CYBER CAFE MANAGEMENT SYSTEM")
print("1.Customer details")
print("2.Time Charges")
print("3.Bill")
print("4.Customers detail view")
print("5.Quit")
a=int(input("Enter your choice :"))
if a==1:
name=input("Enter your name :")
age=int(input("Enter your age :"))
address=input("Enter your residential address :")
phone_no=int(input("Enter your phone number :"))
email_id=input("Enter your Email ID :")
ty="insert into Add_new_customer
values('{}',{},'{}',{},'{}')".format(name,age,address,pho
ne_no,email_id)
c1.execute(ty)
conn.commit()
print("
THANK YOU VISIT AGAIN ")
if a==2:
time=input("Enter the time :")
amount=int(input("Enter the amount :"))
ss="insert into Time_charges
values('{}',{})".format(time,amount)
c1.execute(ss)
conn.commit()
print("THANK YOU VISIT AGAIN")
if a==3:
name=input("Enter your name :")
time=int(input("Enter the time you accessed cyber
cafe in minutes :"))
total=time*30
qw="insert into Bill
values('{}',{},{})".format(name,time,total)
c1.execute(qw)
conn.commit()
print("Please pay Rs.",total)
print("Type YES to pay your bill or NO to pay it
later")
b=input("Type YES or NO:")
if b=="YES":
print("Bill paid successfully")
print("THANK YOU VISIT AGAIN")
else:
print("Bill not paid,pay the bill to leave the
place")
if a==4:
phone_no=input("Enter the phone number of the
customer you want to search :")
ea="select * from Add_new_customer where Phone_no=" +
str(phone_no)
c1.execute(ea)
data=c1.fetchall()
for row in data:
print("Name:",row[0])
print("Age:",row[1])
print("Address:",row[2])
print("Phone number:",row[3])
print("Email ID",row[4])
print("THANK YOU VISIT AGAIN")
if a==5:
print("THANK YOU VISIT AGAIN")
BIBLIOGRAPHY
websites
1. www.google.com
2. www.youtube.com
3. www.geeksforgeeks.org

BOOKS:

1.COMPUTER SCIENCE WITH PYTHON- BY


SUMITA ARORA
2.COMPUTER SCIENCE WITH PYTHON-BY
PREETI ARORA

You might also like