0% found this document useful (0 votes)
25 views14 pages

DENTAL

Uploaded by

yourbhargav111
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)
25 views14 pages

DENTAL

Uploaded by

yourbhargav111
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/ 14

SOURCE CODE

import sys
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='manager'
)
cur=conn.cursor()
cur.execute("create database dental_management_system")
print("Database created succefully")
conn=sql.connect(host='localhost',user='root',passwd='manager'
,database='dental_management_system')
cur.execute('create table patient_record( Patient_Name
varchar(50),
Age int(3),
Doctor_Conculted varchar(50),
Address varchar(150),
Phone_Number bigint(15))')
cur.execute('create table salary_record( Employee_Name
varchar(50),
Proffession varchar(20),
Salary_Amount varchar(9),
Address varchar(150),
Phone_Number bigint(15))')
cur.execute('create table accounts( User_Name varchar(20)
primary key, password varchar(30) unique)')
print('Tables created successfully')
conn.commit()
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()
if conn.is_connected:
print(" Dental Management
System ")
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()
print("1. Add Patients records")
print("2. Add Salary records")
print("3. Veiw Patient Detail")
print("4. Delete patient detail")
print()
choise=int(input('Enter a option : '))
if choise==1:
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')
if choise==2:
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')
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])
input()
else:
print()
print("Patient Record Doesnot 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')
else:
print('Invalid Password')
print('Tryagain')
elif option==2:
sys.exit()
conn.commit()
input()
OUTPUT
OPTION – 1:
OPTION – 2:
OPTION – 3:
TESTING

Software Testing is an empirical investigation conducted


to provide stakeholders with information about the quality of
the product or service under test[1] , with respect to the
context in which it is intended to operate. Software Testing also
provides an objective, independent view of the software to
allow the business to appreciate and understand the risks at
implementation of the software. Test techniques include, but
are not limited to, the process of executing a program or
application with the intent of finding software bugs.
It can also be stated as the process of validating and
verifying that a software program/application/product meets
the business and technical requirements that guided its design
and development, so that it works as expected and can be
implemented with the same characteristics. Software Testing,
depending on the testing method employed, can be
implemented at any time in the development process, however
the most test effort is employed after the requirements have
been defined and coding process has been completed.

TESTING METHODS
Software testing methods are traditionally divided into
black box testing and white box testing. These two approaches
are used to describe the point of view that a test engineer
takes when designing test cases.
BLACK BOX TESTING
Black box testing treats the software as a "black box,"
without any knowledge of internal implementation. Black box
testing methods include: equivalence partitioning, boundary
value analysis, all-pairs testing, fuzz testing, model-based
testing, traceability matrix, exploratory testing and
specification-based testing.

SPECIFICATION-BASED TESTING

Specification-based testing aims to test the


functionality of software according to the applicable
requirements.[16] Thus, the tester inputs data into, and only
sees the output from, the test object. This level of testing
usually requires thorough test cases to be provided to the
tester, who then can simply verify that for a given input, the
output value (or behaviour), either "is" or "is not" the same
as the expected value specified in the test case.
Specification-based testing is necessary, but it is
insufficient to guard against certain risks

ADVANTAGES AND DISADVANTAGES

The black box tester has no "bonds" with the code, and a
tester's perception is very simple: a code must have bugs.
Using the principle, "Ask and you shall receive," black box
testers find bugs where programmers don't. But, on the other
hand, black box testing has been said to be "like a walk in a
dark labyrinth without a flashlight," because the tester
doesn't know how the software being tested was actually
constructed.
That's why there are situations when (1) a black box
tester writes many test cases to check something that can be
tested by only one test case, and/or (2) some parts of the
back end are not tested at all. Therefore, black box testing
has the advantage of "an unaffiliated opinion," on the one
hand, and the disadvantage of "blind exploring," on the other.

WHITE BOX TESTING

White box testing, by contrast to black box testing, is


when the tester has access to the internal data structures and
algorithms (and the code that implement these)

Types of white box testing:-


The following types of white box testing exist:
api testing - Testing of the application using
Public and Private APIs.
Code coverage - creating tests to satisfy some
criteria of code coverage.
For example, the test designer can create tests to cause
all statements in the program to be executed at least once.
fault injection methods.
mutation testing methods.
static testing - White box testing includes all
static testing.

CODE COMPLETENESS EVALUATION


White box testing methods can also be used to evaluate
the completeness of a test suite that was created with black
box testing methods. This allows the software team to examine
parts of a system that are rarely tested and ensures that the
most important function points have been tested.

Two common forms of code coverage are:


Function Coverage: Which reports on functions
executed and
Statement Coverage: Which reports on the number of
lines executed to complete the test.
They both return coverage metric, measured as a percentage

INSTALATION PROCEDURE
Dental Management System :-
Pre-Requisites :-

1. You have to have the following softwares for the


successful running of this software; which are

I) Python (Only for the First time), it is


downloadable from 'www.python.org'.

II) MySQL (Only for the First time), it is


downloadable from 'www.mysql.org'.
Installation :-

1. There will be two folders namely 'Python Files' and


'EXE files'.

2. The folder 'Python Files' will contain the source code


of the software in python language. If you are running the
software by the 3rd step mentioned below you have to pre
install the following modules :-

I) mysql.connector

II) matplotlib.

3. Open the files in any python editors and run it to


start and work on the software.

4. The folder 'EXE files' will contain two files namely


'main.exe' and 'Tables_in_mysql.exe'.

5. First run the 'Tables_in_mysql.exe' to create the


tables in MySQL.

1. Then run the file 'main.exe' to start and work on the


software.

CAUTION :-
If you are running the software through running the
python files or by running the .exe files ; first run the file
named 'Tables_in_mysql'.

The .exe file will take a lot of time; so be PATIENT.

HARDWARE AND SOFTWARE


REQUIREMENTS
I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE
II. PROCESSOR : PENTIUM(ANY) OR AMD
ATHALON(3800+- 4200+ DUAL CORE)
III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R
MSI
K9MM-V VIA K8M800+8237R PLUS
CHIPSET FOR AMD ATHALON
IV. RAM : 512MB+
V. Hard disk : SATA 40 GB OR ABOVE
VI. CD/DVD r/w multi drive combo: (If back up required)
VII. FLOPPY DRIVE 1.44 MB : (If Backup required)
VIII. MONITOR 14.1 or 15 -17 inch
IX. Key board and mouse
X. Printer : (if print is required –
[Hard copy])
SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python

BIBLIOGRAPHY

1. Computer science With Python - Class XI By : Sumita


Arora
2. A Project Report On Blood Bank Management System (BBMS)

By : Praveen M Jigajinni
3. Website: https://www.w3resource.com

***

You might also like