Professional Documents
Culture Documents
Submitted by
SCHOOL OF COMPUTING
COLLEGE OF ENGINEERING AND TECHNOLOGY
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Under Section 3 of UGC Act, 1956)
S.R.M. NAGAR, KATTANKULATHUR – 603 203
CHENGALPATTU DISTRICT
November 2023
1|Page
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
TABLE OF CONTENTS
1 Problem Statement
2|Page
2 Methodology / Procedure/ Algorithm
3 Flowchart
4 Coding (C/Python)
7 Results/Screenshots
8 Conclusion
9 References
1. PROBLEM STATEMENT
3|Page
2. METHODOLOGY/ PROCEDURE/
ALGORITHM
4|Page
3. FLOWCHART
5|Page
4. CODING (Python)
import mysql.connector as m
import random as r
mc=m.connect(host="localhost",user="root",password="sql@123",database="apartment")
mcu=mc.cursor()
ch='y'
6|Page
while ch=='y' or ch=='Y':
if (c==1):
k="s"
print("1.entry\n2.depature\n3.update\n4.display\n5.exit")
if (h==1):
peopleResiding=int(input("Enter the number of people that are going to be residing in the house:"))
mcu.execute(q1)
mc.commit()
elif (h==2):
mc.commit()
elif (h==3):
mcu.execute(de,(upn,))
peopleResiding=int(input("Enter the number of people that are going to be residing in the house:"))
mcu.execute(q2)
mc.commit()
elif (h==4):
p=mcu.fetchall()
for i in p:
print(i)
elif (h==5):
8|Page
break
else:
k=input("enter 's' or 'S', if you want to continue , press any other key if you want to exist:")
elif (c==2):
q="l"
print("1.entry\n2.depature\n3.update\n4.display\n5.exit")
if (h==1):
mcu.execute(q7)
mc.commit()
elif (h==2):
mcu.execute(l,(dqn,))
mc.commit()
9|Page
elif (h==3):
mcu.execute(dee,(lpn,))
mcu.execute(q9)
mc.commit()
elif (h==4):
p=mcu.fetchall()
for i in p:
print(i)
elif (h==5):
break
else:
q=input("enter 'l' or 'L', if you want to continue , press any other key if you want to exist:")
elif (c==3):
x="z"
10 | P a g e
while x=='z' or x=='Z':
if (j==1):
mcu.execute(q21)
mc.commit()
elif (j==2):
mcu.execute(o,(djn,))
mc.commit()
elif (j==3):
mcu.execute(dec,(lnn,))
mcu.execute(q21)
mc.commit()
elif (j==4):
p=mcu.fetchall()
for i in p:
print(i)
elif (j==5):
break
else:
x=input("enter 'Z' or 'z', if you want to continue , press any other key if you want to exist:")
elif (c==4):
p=mcu.fetchall()
print("the vise president of the apartment this election is tenant of house number:",(r.choice(p)))
elif (c==5):
break
else:
12 | P a g e
print("please enter valid option")
ch=input("enter 'y' or 'Y', if you want to continue , press any other key if you want to exist:")
13 | P a g e
14 | P a g e
15 | P a g e
7. CONCLUSION
Apartment tenant record system is an environment where all the process of tenants in the
apartment is managed. It is done through the automated computerized method. conventionally
this system is done using papers, file and binders. This system saves the time of the
administrator. It includes process like adding additional information of tenant, maintenance of
the record. This makes the system easy to handle and feasible for finding the omission with
updating at the same time. If filed a query to search or update in a manual system, it will take a
lot of time to process the query and make a report which is a tedious job. This computerized
system stores all the data in the database which makes it easy to fetch and update whenever
needed.
16 | P a g e
8. REFERENCES
HTTPS://WWW.W3SCHOOLS.COM/PYTHON/PYTHON_MYSQL_GETSTARTED.ASP
HTTPS://WWW.TUTORIALSPOINT.COM/PYTHON/
PYTHON_DATABASE_ACCESS.HTM
HTTPS://PYTHONSPOT.COM/MYSQL-WITH-PYTHON/
17 | P a g e