Computer Project
Computer Project
COMPUTER SCIENCE
2023-2024
NAME: LEONDAVID
CLASS: XII - A
1
COMPUTER SCIENCE 2023-24
CERTIFICATE
EXTERNAL EXAMINER
DECLARATION
2
COMPUTER SCIENCE 2023-24
Thiruvananthapuram Signature:
Register No.
TABLE OF CONTENTS
3
COMPUTER SCIENCE 2023-24
01 ACKNOWLEDGEMENT 05
02 INTRODUCTION 06
04 PROPOSED SYSTEM 07
07 TESTING 17
09 SOURCE CODE 21
10 OUTPUT 22
11 BIBLIOGRAPHY 43
ACKNOWLEDGEMENT
4
COMPUTER SCIENCE 2023-24
Apart from my efforts, the success of any project depends largely on the
encouragement and guidance of many others. I take this opportunity to express
my gratitude to all who have been instrumental in the successful completion of
this project.
The guidance and support received from all the members who contributed
to this project was vital for the success of the project. I am grateful for their
constant support and help.
5
COMPUTER SCIENCE 2023-24
INTRODUCTION
The Scope of the project takes care of the details of each and every department. These
details gives the doctor, staffs, specialists and patient details including their salary,
Attendance, doctor’s appointments and the billing system. The details of Doctor and staff
help the hospital to maintain the record of every person. Their attendance details help them to
know about their attentive presence while salary is calculated. The billing system provides an
The objective of this project is to let the students apply the programming
the areas of systems, theory and software development. Students demonstrate ability
6
COMPUTER SCIENCE 2023-24
PROPOSED SYSTEM
The wise saying “To err is human” is no longer valid, it’s out-dated to
rationalize your mistake. One cannot afford to rely on fallible human beings if one
really wants to withstand today’s merciless competition. So, to keep pace with time,
to bring about the best result without malfunctioning and for greater efficiency we
can replace the heaps of files with a more sophisticated hard disk of the computer.
One has to use the data management software. Software has been an asset
markets, have helped in making the organization’s work easier and efficient. Data
management initially had to maintain a lot of ledgers and a lot of paperwork. But
now, software has helped this organization make their work faster and easier. Now,
only this software has to be loaded on the computer and the work can be done.
This prevents a loss of time and money. Work becomes fully automated and
7
COMPUTER SCIENCE 2023-24
any information regarding the organization can be obtained by clicking the button.
Moreover, now it’s an age of computers and automating such an organization gives
it a better look.
divides complex projects into smaller, more easily managed segments or phases.
8
COMPUTER SCIENCE 2023-24
planning phases. End users of the system under development should be involved in
reviewing the output of each phase to ensure the system is being built to deliver the
needed functionality.
INITIATION PHASE
9
COMPUTER SCIENCE 2023-24
Identify basic functional and data requirements to satisfy the business need.
10
COMPUTER SCIENCE 2023-24
Identify and initiate risk mitigation actions, and develop high-level technical
architecture, process models, data models, and a concept of operations. This
phase explores potential technical solutions within the context of the business
need.
It may include several trade-off decisions such as the decision to use COTS
software products as opposed to developing custom software or reusing
software components, or the decision to use an incremental delivery versus a
complete, onetime deployment.
The ITPR must be approved by the State CIO before the project can move
forward.
11
COMPUTER SCIENCE 2023-24
PLANNING PHASE
‘user input. Personnel assignments, costs, project schedule, and target dates are
established.
This phase formally defines the detailed functional user requirements using high-
level requirements identified in the Initiation, System Concept, and Planning phases.
It also delineates the requirements in terms of data, system performance, security,
and maintainability requirements for the system. The requirements are defined in this
phase to a level of detail sufficient for systems design to proceed. They need to be
measurable, testable, and relate to the business need or opportunity identified in the
12
COMPUTER SCIENCE 2023-24
Initiation Phase. The requirements that will be used to determine acceptance of the
system are captured in the Test and Evaluation Master Plan.
Further define and refine the functional and data requirements and document
them in the Requirements Document,
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.
DESIGN PHASE
13
COMPUTER SCIENCE 2023-24
database managers, and network administrators should review and refine the
prototyped designs in an iterative process until they agree on an acceptable design.
Audit, security, and quality assurance personnel should be involved in the review
and approval process. During this phase, the system is designed to satisfy the
functional requirements identified in the previous phase. Since problems in the
design phase could be very expensive to solve in the later stage of the software
development, a variety of elements are considered in the design to mitigate risk.
These include:
Preparing detailed logic specifications for each software module. The result is
a draft System Design Document which captures the preliminary design for
the system.
14
COMPUTER SCIENCE 2023-24
15
COMPUTER SCIENCE 2023-24
Testing as a deployed system with end users working together with contract
personnel
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the user. In
this phase, the system is installed to support the intended business functions.
System performance is compared to performance objectives established during the
planning phase. Implementation includes user notification, user training, installation
of hardware, installation of software onto production computers, and integration of
the system into daily work processes. This phase continues until the system is
operating in production in accordance with the defined user requirements.
16
COMPUTER SCIENCE 2023-24
TESTING
17
COMPUTER SCIENCE 2023-24
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 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
18
COMPUTER SCIENCE 2023-24
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
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, 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)
19
COMPUTER SCIENCE 2023-24
api testing - Testing of the application using Public and Private APIs.
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.
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.
20
COMPUTER SCIENCE 2023-24
21
COMPUTER SCIENCE 2023-24
SOFTWARE REQUIREMENTS:
1. Windows OS
2. Python
3. MySQL
22
COMPUTER SCIENCE 2023-24
SOURCE CODE
while(True):
print("""
================================
WELCOME TO MYHOSPITAL
23
COMPUTER SCIENCE 2023-24
================================
""")
import mysql.connector
mysql=mysql.connector.connect(host="localhost",user="root",password="Leon@123")
mycursor=mysql.cursor()
mycursor.execute("use my_hospitals")
24
COMPUTER SCIENCE 2023-24
while(True):
print("""
1. SIGN IN (LOGIN)
2. SIGN UP (REGISTER)
""")
if r==2:
print("""
=======================================
=======================================
""")
mysql.commit()
25
COMPUTER SCIENCE 2023-24
print("""
=======================================
!!!!!!!!REGISTERED SUCCESSFULLY!!!!!!!!
=======================================
""")
elif r==1:
print("""
==================================
==================================
""")
26
COMPUTER SCIENCE 2023-24
row=mycursor.fetchall()
for i in row:
a=list(i)
if a[0]==str(ps):
while(True):
print("""
1.ADMINISTRATION
3.SIGN OUT
""")
if a==1:
print("""
27
COMPUTER SCIENCE 2023-24
1. SHOW DETAILS
4. EXIT
""")
if b==1:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
if c==1:
row=mycursor.fetchall()
for i in row:
28
COMPUTER SCIENCE 2023-24
b=0
v=list(i)
k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT","FEES","MONTHLY_SALARY"]
d=dict(zip(k,v))
print(d)
elif c==2:
row=mycursor.fetchall()
for i in row:
v=list(i)
k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT","MONTHLY_SALARY"]
d=dict(zip(k,v))
print(d)
elif c==3:
row=mycursor.fetchall()
for i in row:
29
COMPUTER SCIENCE 2023-24
v=list(i)
k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT","MONTHLY_SALARY"]
d=dict(zip(k,v))
print(d)
elif b==2:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
if c==1:
spe=input("ENTER SPECIALISATION:")
age=input("ENTER AGE:")
30
COMPUTER SCIENCE 2023-24
add=input("ENTER ADDRESS:")
fees=input("ENTER FEES:")
ms=input("ENTER MONTHLY_SALARY:")
mysql.commit()
print("SUCCESSFULLY ADDED")
elif c==2:
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
ms=int(input("ENTER MONTHLY_SALARY:"))
mysql.commit()
print("SUCCESSFULLY ADDED")
31
COMPUTER SCIENCE 2023-24
elif c==3:
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
ms=input("ENTER MONTHLY_SALARY:")
mysql.commit()
print("SUCCESSFULLY ADDED")
elif b==3:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
32
COMPUTER SCIENCE 2023-24
if c==1:
row=mycursor.fetchall()
print(row)
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
elif c==2:
row=mycursor.fetchall()
print(row)
33
COMPUTER SCIENCE 2023-24
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
elif c==3:
row=mycursor.fetchall()
print(row)
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
34
COMPUTER SCIENCE 2023-24
elif b==4:
break
elif a==2:
print("""
3. DISCHARGE PATIENT
4. EXIT
""")
if b==1:
row=mycursor.fetchall()
for i in row:
b=0
v=list(i)
k=["NAME","SEX","AGE","ADDRESS","CONTACT"]
d=dict(zip(k,v))
print(d)
35
COMPUTER SCIENCE 2023-24
elif b==2:
address=str(input("ADDRESS: "))
mysql.commit()
for i in mycursor:
v=list(i)
k=['puid','NAME','AGE','ADDRESS','CONTACT']
print(dict(zip(k,v)))
print("""
====================================
!!!!!!!REGISTERED SUCCESSFULLY!!!!!!
36
COMPUTER SCIENCE 2023-24
====================================
""")
elif b==3:
row=mycursor.fetchall()
print(row)
if bill=="y":
mysql.commit()
elif b==4:
break
elif a==3:
break
else:
break
mysql.close()
37
COMPUTER SCIENCE 2023-24
OUTPUT
38
COMPUTER SCIENCE 2023-24
39
COMPUTER SCIENCE 2023-24
40
COMPUTER SCIENCE 2023-24
41
COMPUTER SCIENCE 2023-24
42
COMPUTER SCIENCE 2023-24
43
COMPUTER SCIENCE 2023-24
BIBLOGRAPHY
***
44
COMPUTER SCIENCE 2023-24
45