Dental Management CS PROJECT 2
Dental Management CS PROJECT 2
KAIRAV CHAUDHARY
XII-B
Certificate
This is to certify that the Project entitled DENTAL
Management System is a bona fide work done by
KAIRAV CHAUDHARY of Class XII-B, Session in partial
fulfillment of CBSE’s Examination 2024-25 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.
ACKNOWLEDGEMENT
I would like to extend my sincere and heartfelt
gratitude to my computer science teacher, Mrs.
Anshu sharma, who has helped me in this
endeavor and has always been very cooperative
and without his guidance and help, the project
could not have been what it evolved to be.
I am thankful to my parents for their cooperation
and encouragement.
CONTENTS
∙ System Development Life Cycle
∙ Theory
∙ Hardware and Software used
∙ Python code
∙ Output
∙ Usage
∙ Bibliography
System Development Life Cycle
The Software Development Life Cycle (SDLC)
refers to a methodology with clearly defined
processes for creating high-quality software. In
detail, the SDLC methodology focuses on the
following phases of software development:
Theory
What is Database?
Hardware used:
Laptop with Intel ® i3 processor with inbuilt 4GB RAM
Software's used:
∙ Python 3.9 with MySql connector module. ∙ MySql
∙ MS Word (for documentation)
Python Code
print("***************************Dental Management
System***************************")
print("************By- KAIRAV CHAUDHARY,Class- XII B, Roll no.
27**************")
import sys
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='12345',database='dental_management_system')
cur=conn.cursor()
if conn.is_connected:
user=input("Enter New User Name : ")
user=user.upper()
passwrd=input("Enter New Password : ")
passwrd=passwrd.upper()
cur.execute("insert into accounts values('" + user + "','" + passwrd + "')")
print("ACCOUNT ADDED SUCCEFULLY")
conn.commit()
#The Main Program
import sys
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='12345',database='dental_management_system')
cur=conn.cursor()
if conn.is_connected:
print(" ▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄ ")
print(" Dental Management System ")
print(" ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒")
print("1. Login")
print("2. Exit")
print()
option=int(input("Enter your choise : "))
if option==1:
print()
user=input('User Name : ')
user=user.upper()
cur.execute("select * from accounts where User_Name like '" + user + "'")
datas=cur.fetchall()
for i in datas:
value_1=i[0]
value_2=i[1]
if user==value_1:
password=input('Password : ')
password=password.upper()
if password==value_2:
print()
print('Login succefull')
print()
from time import gmtime,strftime
a=strftime("%d %b %Y",gmtime())
b=strftime("%H %M %S",gmtime())
c=strftime("%a ",gmtime())
print('Date : ',a)
print('Day : ',c)
print('Time : ',b)
print()
while(True):
print("1. Add Patients records")
print("2. Add Salary records")
print("3. Veiw Patient Detail")
print("4. Delete patient detail")
print("5. To Exit")
print(" ###################*********#################")
print(" =============================================")
print()
choise=int(input('Enter a option : '))
if choise==1:
print()
print("Patient Details : ")
print()
name=input('Name : ')
name=name.upper()
age=int(input('Age : '))
doc=input('Doctor Consulted : ')
doc=doc.upper()
add=input('Address : ')
add=add.upper()
phone_no=int(input('Phone Number : '))
cur.execute("insert into patient_record values('" + name + "'," + str(age) + ",'" + doc + "','" + add + "'," +
str(phone_no) + ")")
conn.commit()
print('Record added')
print('Press enter to continue')
print()
print()
if choise==2:
print()
print("Employee Details : ")
print()
emp_name=input('Employee_Name : ')
emp_name=emp_name.upper()
proffesion=input('Proffession : ')
proffesion=proffesion.upper()
salary=int(input('Salary Amount : '))
add=input('Address : ')
add=add.upper()
phone_no=input('Phone_Number : ')
cur.execute("insert into salary_record values('" + emp_name + "','" + proffesion + "'," + str(salary) + ",'" + add +
"'," + str(phone_no) + ")")
conn.commit()
print('Record added')
print('Press enter to continue')
print()
print()
if choise==3:
print()
name=input('Name of the patient : ')
name=name.upper()
cur.execute("select * from patient_record where patient_name like '" + str(name) + "'")
data=cur.fetchall()
if data!=0:
for row in data:
print()
print("Patient Details : ")
print()
print('Name : ',row[0])
print('Age : ',row[1])
print('Doctor consulted : ',row[2])
print('Address : ',row[3])
print('Phone Number : ',row[4])
print('Press enter to continue')
input()
else:
print()
print("Patient Record Does not Exist")
if choise==4:
print()
name=input('Name of the patient : ')
name=name.upper()
cur.execute("delete from patient_record where Patient_Name like '" + name + "'")
print('Record Deleted Succefully')
print('Press enter to continue')
print()
print()
if choise==5:
print(" Thank you for using \"DENTAL MANAGEMENT SYSTEM\"")
print(" ==== Program Terminated ====")
break
else:
print('Invalid Password')
print('Tryagain')
elif option==2:
print(" Thank you for using \"DENTAL MANAGEMENT SYSTEM\"")
print(" ==== Program Terminated ====")
sys.exit()
conn.commit()
input()
OUTPUT
1. Welcome screen
2. Login
3. Command screen
4. Adding data
5. Viewing data
6. To delete data
Usage
∙ Open command prompt / Terminal and install mysql
connector for python using:
pip install mysql-connector
1. https://www.google.com
2. https://en.wikipedia.org