Project File 1 Data - Entry - Managment
Project File 1 Data - Entry - Managment
Kalyanpur
Session 2023-2024
Computer Science Project File
Submitted To: Submitted By:
Subject Teacher Name-
Class-
PROJECT BASED ON
Data Entry
And
Management system
Index
S No. Content Page No.
1) Certificate 4
2) Acknowledgement 5
3) Introduction 6
4) Source Code 7
5) Output Window 10
6) Bibliography 13
CERTIFICATE
This is to certify that <Your name here> of class XII
(STREAM) of <School name> has done his/her project on
<Project name > under my supervision. He / She 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, NEW
DELHI.
Internal Examiner
External Examiner
Acknowledgement
It is with pleasure that I acknowledge my sincere
gratitude to our teacher, < Teacher name > who taught
and undertook the responsibility of teaching the subject
computer science. I have been greatly benefited from
his/her classes.
My sincere thanks goes to our Principal <Principal
name> who has always been a source of encouragement
and support and without whose inspiration, this project
would not have been a successful.
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.
Last but not least, I would like to thank all those who had
helped directly or indirectly towards the completion of
this project.
Name of student
Class
Introduction
Data entry system project in python is a simple console
application built without the use of graphics. This project
Data entry system helps in managing the record of any
person. In this project we tried to enter all details of any
person like name, mobile, email and city etc. and tried to
maintain all the possibility which may help the user to
enter more record user requires.
Some of the features of the program are:
1) user can enter records of any person.
2) User can get all records inserted.
3) User can get record of any specific person.
4) User can modify any record.
5) User can delete any record.
Source Code
import mysql.connector
mydb=mysql.connector.connect(host="localhost",us
er="root",
password="123456",database="project")
def enter():
mycursor=mydb.cursor()
y="y"
while y=="y":
nm=input("Enter name:")
mob=input("Enter Mobile number:")
em=input("Enter email id:")
c=input("Enter City:")
mycursor.execute("insert into
data_entry2(name,mob,email,city)
values('{}','{}','{}','{}')".format(nm,mob,em,c)
)
mydb.commit()
print(mycursor.rowcount,"Record
Inserted")
y=input("Do you want to insert more
data:")
main()
def search():
mycursor=mydb.cursor()
nm=input("Enter name to be search:")
mycursor.execute("select * from data_entry2
where name='{}'".format(nm))
myrecords=mycursor.fetchall()
print("Name"," "*(20-len("Name")),"|",
"Mob"," "*(12-len("Mob")),"|",
"City"," "*(15-len("City")))
for i in myrecords:
print(i[0]," "*(20-len(i[0])),"|",
i[1]," "*(12-len(i[1])),"|",
i[3]," "*(15-len(i[3])))
print("Total number of rows
retrieved",mycursor.rowcount)
main()
def delete():
mycursor=mydb.cursor()
nm=input("Enter name to be delete:")
mycursor.execute("delete from data_entry2
where name='{}'".format(nm))
mydb.commit
def alldata():
mycursor=mydb.cursor()
mycursor.execute("Select * from
data_entry2")
myrecords=mycursor.fetchall()
print("Name"," "*(20-len("Name")),"|",
"Mob"," "*(12-len("Mob")),"|",
"City"," "*(15-len("City")))
for i in myrecords:
print(i[0]," "*(20-len(i[0])),"|"
,i[1]," "*(12-len(i[1])),"|",
i[3]," "*(15-len(i[3])))
print("Total number of rows
retrieved",mycursor.rowcount)
main()
def main():
print("Welcome to Data Entry System:Main
menu")
print(" 1. Enter\n 2. Search\n 3. Delete
data\n 4. Show all data")
ch=int(input("Enter your Choice:"))
if ch==1:
enter()
elif ch==2:
search()
elif ch==3:
delete()
elif ch==4:
alldata()
else:
print("Enter correct choice")
main()
main()
Output:
Main menu:
Website
http://python.mykvs.in/index.php
https://www.google.co.in/
THANK
YOU