Computer Science Project Report: Grade - Xii
Computer Science Project Report: Grade - Xii
PROJECT REPORT
GRADE – XII
“…………………………………………………………………………
……………….”
Date:
Registration No.:
Signature of Principal
ACKNOWLEDGEMENT
2. SOFTWARE:-
✓ Operating System –OS7, OS8
✓ Python IDLE
✓ MYSQL
FEASIBILITY STUDY
Feasibility study is a system proposal according to its
work, ability, impact on the operation ability to meet the
needs of users and efficient use of resources. An important
outcome of preliminary investigations the determination of
that system requested feasible.
ECONOMICAL FEASIBILITY:-
Economic analysis is the most frequently used method
for measuring the records of the customers, their bookings
and offers that they expect etc., and compare them with the
cost. This software is not very costly. So customer’s records
can be maintained at a cheaper cost and every hotel would
like to use this software so that the customer’s records can
be managed easily.
TECHNICAL FEASIBILTY:-
Technical feasibility center on the existing computer
system and to what extent it can support the proposed task.
This involves financial consideration to accommodate
technical enhancements. It is technically feasible because
whatever technology is needed to develop this software is
easily available.
ERRORS AND ITS TYPES
An error, some time called “A BUG” is anything in the code
that prevents a program from compiling and running
correctly. There are broadly three types of errors as follows:
a. Syntax error:-
It refers to formal rules governing the construction
of valid statements in a language.
b. Semantics error:-
It refers to the set of rules which give the meaning
of a statement.
2. Beta Testing:-
Accepts It is a formal type of software
testing which is carried out by the customers. It is
performed in a real environment before releasing the
products into the market for the actual end-users. It is
carried out to ensure that there are no major failures in
the software or product and it satisfies the business
requirement. Beta Testing is successful when the
customer the software.
1.Corrective Maintenance:-
When the program after compilation shows
error because of some unexpected situations, untested areas
such errors are fixed up by Corrective maintenance.
2. Adaptive Maintenance:-
Changes in the environment in which an
information system operates may lead to system
management. To accommodate changing needs time to time
maintenance is done and is called Adaptive maintenance.
3. Preventive Maintenance:-
If possible the errors could be anticipated
before they actually occur; the maintenance is called
Preventive maintenance.
4. Perfective Maintenance:-
In this rapidly changing world, information
technology is the fastest growing area. If the existing system
is maintained to keep tuned with the new features, new
facilities, new capabilities, it is said to be Perfective
maintenance.
Functions Used
Commit():-
This method sends a COMMIT statement to
the MySQL server, committing the current transaction.
Since by default Connector/Python does not autocommit, it
is important to call this method after every transaction that
modifies data for tables that use transactional storage
engines.
Fetchall():-
The method fetches all (or all remaining)
rows of a query result set and returns a list of tuples. If no
more rows are available, it returns an empty list.
Exec():-
Exec function can dynamically execute code
of python programs. The code can be passed in as string or
object code to this function. The object code is executed as
is while the string is first parsed and checked for any syntax
error.
FLOWCHART
Source Code:-
from sys import exit
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='',data
base='project')
if conn.is_connected():
print('successfully connected')
c1=conn.cursor()
print('---------------------------------------------')
print("HOSPITAL MANAGEMENT SYSTEM")
print('---------------------------------------------')
print('"GOD WISHES YOU"')
print("1.LOGIN")
print("2.EXIT")
choice=int(input("ENTER YOUR CHOICE:"))
if choice==1:
u1=input("enter user name:")
pwd1=input("enter the password:")
while u1=='vikas'and pwd1=='vikas12':
print('connected')
print("WELCOME TO HOSPITAL")
print("successfully connected")
print('1.RegisteringPatient details')
print('2.RegisteringDoctor details')
print('3.RegisteringWorker details')
print("4.total patient details")
print("5.total doctor details")
print("6.total worker details")
print('7.Patient detail')
print('8.Doctor detail')
print('9.Worker detail')
print('10.Exit')
choice=int(input('ENTER YOUR CHOICE:'))
if choice==1:
p_name=input('Enter Patient Name:')
p_age=int(input('Enter Age:'))
p_problems=input('Enter the Problem/Disease:')
p_phono=int(input('Enter Phone number:'))
sql_insert="insert into patient_details
values(""'"+p_name+"',"+str(p_age)
+",'"+p_problems+"',"+str(p_phono)+")"
c1.execute(sql_insert)
print('SUCCESSFULLY REGISTERED')
conn.commit()
elif choice==2:
d_name=input('Enter Doctor Name:')
d_age=int(input('Enter Age:'))
d_department=input('Enter the Department:')
d_phono=int(input('Enter Phone number:'))
sql_insert="insert into doctor_details
values(""'"+d_name+"',"+str(d_age)
+",'"+d_department+"',"+str(d_phono)+")"
c1.execute(sql_insert)
print('successfully registered')
conn.commit()
elif choice==3:
w_name=input('Enter Worker Name:')
w_age=int(input('Enter Age:'))
w_workname=input('Enter type of work:')
w_phono=int(input('Enter Phone number:'))
sql_insert="insert into worker_details
values(""'"+w_name+"',"+str(w_age)
+",'"+w_workname+"',"+str(w_phono)+")"
c1.execute(sql_insert)
print('successfully registered')
conn.commit()
elif choice==4:
sql_w='select*from patient_details '
c1.execute(sql_w)
r = c1.fetchall()
for i in r :
print(i)
elif choice==5:
sql_x="select*from doctor_details"
c1.execute(sql_x)
s=c1.fetchall()
for i in s:
print(i)
elif choice==6:
sql_y="select*from worker_details"
c1.execute(sql_y)
t=c1.fetchall()
for i in t:
print(i)
elif choice==7:
h=input("Enter the name:")
sql_w='select*from patient_details where
p_name=("{}")'.format(h)
c1.execute(sql_w)
u = c1.fetchall()
for i in u:
print(i)
elif choice==8:
d=input("Enter the name:")
sql_d='select*from doctor_details where
p_name=("{}")'.format(d)
c1.execute(sql_d)
v=c1.fetchall()
for i in v:
print(i)
elif choice==9:
f=input("Enter the name:")
sql_f='select*from worker_details where
p_name=("{}")'.format(f)
c1.execute(sql_f)
w=c1.fetchall()
for i in w:
print(i)
elif choice==10:
exit()
break
else:
print('wrong username&password')
if choice==2:
exit()
OUTPUT:-
CONCLUSION
Python supports both function-oriented and
structure-oriented programming. It has
features of dynamic memory management
which can make use of computational
resources efficiently. It is also compatible
with all popular operating systems and
platforms. Hence this language can be
universally accepted by all programmers.
BIBLIOGRAPHY
WWW.GEEKSFORGEEKS.ORG
WWW.PROJECTWORLDS.IN
WWW.PYTHONWOLRD.IN
WWW.WIKIPEDIA.COM