Computer Science Project
Computer Science Project
Submitted to:-
Mr. Mohit Kumar
1
TABLE OF CONTENTS
Certificate (3)
Declaration (4)
Acknowledgement (5)
Introduction (6)
Header files (8)
Coding (9)
Output (19)
Requirement (24)
Bibliography (25)
2
CERTIFICATE
This is to certify that DISHA is a student of class XII-
A. She has successfully completed project in Computer
Practicals for AISSCE as prescribed by CBSE under
guidance of Mr. Mohit Kumar (subject teacher) during
the year 2019-2020 in partial fulfilment of Computer
Science practical examination of Central Board of
Secondary Education(CBSE).
3
DECLARATION
I here by declare that the project work entitled
“HOSPITAL MANAGEMENT SYSTEM”
submitted to the NAVYUG SCHOOL,
MANDIR MARG is a record of original work
done by me except of experiments, which are
duly acknowledged under the guidance of my
subject teacher.
“Mr. Mohit Kumar”.
4
ACKNOWLEDGMENT
I would like to express my special thanks to our school
“NAVYUG SCHOOL, MANDIR MARG”,NEW DELHI,
Principal Madam Mrs. Nirmal Jit Kaur , to the management
team of our school who gave me the golden opportunity to do
this wonderful project on the topic “HOSPITAL
MANAGEMENT SYSTEM”, which also helped me in doing
a lot of research and I came to know about many new things.
Secondly I would also like to thank my parents and friends
who helped me a lot in finishing this project within the limited
time.
5
INTRODUCTION
The HOSPITAL MANAGEMENT SYSTEM is used to maintain a
list of employees’ names, addresses and employment information and is used to
interactively calculate and print payroll checks.
Overview
6
Customer
Purpose
The Purpose of the project is to maintain the information regarding the
employee and generates the pay slip.
7
HEADER FILES USED
#include<iostream.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
8
CODING
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
struct patient
char FirstName[50];
char LastName[50];
char ID[20];
};
class queue
public:
queue (void);
char DepartmentName[50];
private:
int NumberOfPatients;
patient List[MAXPATIENTS]; 9
};
queue::queue ()
NumberOfPatients = 0;
return 0;
else
List[NumberOfPatients] = p; NumberOfPatients++;
return 1;
int i;
return 0;
List[i+1] = List[i];
List[0] = p; NumberOfPatients++;
return 1;
}
10
patient queue::GetNextPatient (void)
int i; patient p;
if (NumberOfPatients == 0) {
strcpy(p.ID,"");
return p;}
p = List[0];
NumberOfPatients--;
List[i] = List[i+1];
return p;
int i, j, found = 0;
if (stricmp(List[i].ID, p->ID) == 0)
*p = List[i]; found = 1;
NumberOfPatients;
List[j] = List[j+1];
}
11
}
return found;
int i;
if (NumberOfPatients == 0)
else
patient p;
cout << "Please enter data for new patient First name: ";
cin.getline(p.FirstName, sizeof(p.FirstName));
cin.getline(p.LastName, sizeof(p.LastName));
12
cout << "Social security number: ";
cin.getline(p.ID, sizeof(p.ID));
strcpy(p.ID,"");
getch();
return p;
if (p == NULL || p->ID[0]==0)
return;
else
int ReadNumber()
char buffer[20];
cin.getline(buffer, sizeof(buffer));
return atoi(buffer);
}
13
void DepartmentMenu (queue * q)
while (choice != 6)
clrscr();
choice = ReadNumber();
switch (choice)
case 1:
p = InputPatient();
if (p.ID[0])
success = q->AddPatientAtEnd(p);
clrscr();
if (success)
else
{
14
cout << "Error: The queue is full. Cannot add patient:";
OutputPatient(&p);
getch();
break;
case 2:
p = InputPatient();
if (p.ID[0])
success = q->AddPatientAtBeginning(p);
clrscr();
if (success)
else
OutputPatient(&p);
getch();
break;
case 3:
p = q->GetNextPatient();
clrscr();
15
if (p.ID[0])
OutputPatient(&p);}
else
getch();
break;
case 4:
p = InputPatient();
if (p.ID[0])
success = q->RemoveDeadPatient(&p);
clrscr();
if (success)
else
OutputPatient(&p);
getch();
}
16
break;
case 5:
clrscr();
q->OutputList();
getch(); break;
void main ()
int i, MenuChoice = 0;
queue departments[3];
while (MenuChoice != 4)
clrscr();
cout << "" << (i+1) << ": " << departments[i].DepartmentName;
MenuChoice = ReadNumber();
{
17
DepartmentMenu (departments + (MenuChoice-1));
18
OUTPUT
19
20
21
22
23
REQUIREMENTS
SOFTWARE AND HARDWARE REQUIREMENTS
Software Requirements
1. TURBO C++
2. MS DOS
3. WINDOWS XP
4. MICROSOFT OFFICE ACCESS 2003
Hardware Requirements
5. CPU – Intel Core 2 Duo E7300
6. RAM – 1 GB (MIN)
7. Hard disk – 160 GB
8. Operating System – Windows XP with Service Pack 3
(CHT)
24
BIBLIOGRAPHY
Following were source for my project .
www.google.com
www.Wikipedia.com
www.cbseportal.com
www.scribd.com
25