0% found this document useful (0 votes)
30 views33 pages

Computer Science Project Report: Grade - Xii

Uploaded by

yu868771
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)
30 views33 pages

Computer Science Project Report: Grade - Xii

Uploaded by

yu868771
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/ 33

Computer science

PROJECT REPORT
GRADE – XII

PROJECT PREPARED BY:

NAME OF THE STUDENT : ……………………………………………………

ROLL NUMBER : …………………………………………………………

PROJECT TOPIC : …………………………………..................

HOSUR PUBLIC SCHOOL


2022 – 2023
CERTIFICATE
This is to certify that the project work entitled

“…………………………………………………………………………

……………….”

is a bonafide record of work done

by…………………………………… , Roll no:……………….…in

partial fulfilment for the award of 12th standard during

the academic year 2022 - 2023.

Date:
Registration No.:

Signature of Internal Signature of External


Examiner Examiner

Signature of Principal
ACKNOWLEDGEMENT

I would like to take this opportunity to express my deep


sense of gratitude to all those people without whom this project
could have never been completed. First and foremost I like to
thank God for giving me such a great opportunity to work on this
project, and I would like to express my special thanks and
gratitude to the Management, the Directors and the
Correspondent of Hosur Public School, for their constant guidance
and providing a very nice platform to learn.

I would also like to thank our Principal – Dr. V. Bindhu Hosur


Public School, for her constant encouragement and moral support
without which I would have never be able to give my best.

I would also like to thank Mr. A.M. Balakrishna, Computer


Science Teacher, Hosur Public School, who gave me the wonderful
opportunity to do this project, which also helped me in doing a lot
of research and I came to know about so many new things from
this study I am really thankful to all.
Index
S.No Contents Pg.No Signature
1
SYSTEM REQUIREMENT
2
FEASIBILITY STUDY
3
ERRORS AND ITS TYPES
4
TESTING
5
MAINTENANCE
6
FUNCTION USED
7
FLOW CHART OF PROGRAM
8
SOURCE CODE
9
OUTPUT
10
CONCLUSION
11
BIBLIOGRAPHY
SYSTEM REQUIREMENTS
1. HARDWARE:-
✓ Processor
✓ Keyboard
✓ Minimum memory - 2GB

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:

1. Compile- time errors:-


Errors that occurs during compilation of
a program is called compile time error. It has two types 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.Run time Errors:-


That occur during the execution of
program are run time errors. These are harder to detect
errors. Some run-time error stop the execution of program
which is then called program “Crashed”.
3. Logical Errors:-
Sometimes, even if you don’t encounter
any error during compiling-time and runtime, your program
does not provide the correct result. This is because of the
programmer’s mistaken analysis of the problem he or she is
trying to solve. Such errors are called logical error.
TESTING
1. Alpha Testing:-
It is the most common type of testing
used in the software industry. The objective of this
testing is to identify all possible issues or defects before
releasing it into the market or to the user. It is conducted
at the developer’s site.

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.

3. White Box Testing:-


White box testing is based on the knowledge
about the internal logic of an application’s code. It is
also known as Glass box Testing. Internal Software and
code working should be known for performing this type
of testing. These tests are based on the coverage of the
code statements, branches, paths, conditions etc.
4. Black Box Testing:-
It is a software testing, method in which the
internal structure or design of the item to be tested is not
known to the tester. This method of testing can applied
virtually to every level of the software testing.
MAINTENANCE
Programming maintenance refers to
the modifications in the program. After it has been
completed, in order to meet changing requirement
or to take care of the errors that shown up. There
are four types of maintenance:-

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

You might also like