0% found this document useful (0 votes)
17 views13 pages

Project File 1 Data - Entry - Managment

The document outlines a Computer Science project for the session 2023-2024 at Gardenia Public School, focusing on a Data Entry and Management system developed in Python. It includes sections such as a certificate, acknowledgment, introduction, source code, output window, and bibliography. The project allows users to enter, search, modify, and delete records of individuals, demonstrating basic database management skills.

Uploaded by

youcangoup44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views13 pages

Project File 1 Data - Entry - Managment

The document outlines a Computer Science project for the session 2023-2024 at Gardenia Public School, focusing on a Data Entry and Management system developed in Python. It includes sections such as a certificate, acknowledgment, introduction, source code, output window, and bibliography. The project allows users to enter, search, modify, and delete records of individuals, demonstrating basic database management skills.

Uploaded by

youcangoup44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Gardenia Public School

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

print("Total number of rows


Deleted",mycursor.rowcount)
main()

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:

Press 1 for data entry:


Press 2 for Search any record:

Press 3 for deleting any record:

Press 4 to show all records:


Table used
Bibliography
Book Name
Preeti Arora

Website
http://python.mykvs.in/index.php

https://www.google.co.in/

THANK
YOU

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy