Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

Computer Science Project On

PAYROLL MANAGEMENT SYSTEM


SESSION:2019-2020

Name:- DISHA RAWAT


CLASS:-XII A
C.B.S.E ROLL NO:-

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).

PRINCIPAL SUBJECT TEACHER


Mrs. Nirmal Jit Kaur Mr. Mohit Kumar

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

The purpose of this section is to obtain agreement regarding the


objectives the system must meet. Ultimately this segment defines the
boundaries of the effort. The “ Payroll system” helps administrator honor
their professional commitments by following a tailored version of the
organization’s standard process. This application is supported by a database
consisting of employee’s salary details and their leave allowances. Based on
these details at the end of every month the application automatically credits
the employee’s bank account with their salary. The amount of salary credited
into employees account is a variant of their leave allowances .This Payroll
Processing application also considers employee’s income tax regulations and
loan payment details. Based on these considerations the salary of each
employee is deducted at the source. Taking into account all these aspects the
appropriate accounts of each employee are credited. This application also
includes generation of salary slips to every employee.

6
Customer

The payroll Processing System is an application of LBRCE-JKC. Its target


user group consists of Admin, Employees.

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>

#define MAXPATIENTS 100

struct patient

char FirstName[50];

char LastName[50];

char ID[20];

};

class queue

public:

queue (void);

int AddPatientAtEnd (patient p);

int AddPatientAtBeginning (patient p);

patient GetNextPatient (void);

int RemoveDeadPatient (patient * p);

void OutputList (void);

char DepartmentName[50];

private:

int NumberOfPatients;

patient List[MAXPATIENTS]; 9
};

queue::queue ()

NumberOfPatients = 0;

int queue::AddPatientAtEnd (patient p)

if (NumberOfPatients >= MAXPATIENTS)

return 0;

else

List[NumberOfPatients] = p; NumberOfPatients++;

return 1;

int queue::AddPatientAtBeginning (patient p)

int i;

if (NumberOfPatients >= MAXPATIENTS)

return 0;

for (i = NumberOfPatients-1; i >= 0; i--)

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--;

for (i=0; i<NumberOfPatients; i++)

List[i] = List[i+1];

return p;

int queue::RemoveDeadPatient (patient * p)

int i, j, found = 0;

for (i=0; i<NumberOfPatients; i++)

if (stricmp(List[i].ID, p->ID) == 0)

*p = List[i]; found = 1;

NumberOfPatients;

for (j=i; j<NumberOfPatients; j++)

List[j] = List[j+1];

}
11
}

return found;

void queue::OutputList (void)

int i;

if (NumberOfPatients == 0)

cout << "Queue is empty";

else

for (i=0; i<NumberOfPatients; i++)

cout << "" << List[i].FirstName;

cout << " " << List[i].LastName;

cout << " " << List[i].ID;

// declare functions used by main:

patient InputPatient (void)

// this function asks user for patient data.

patient p;

cout << "Please enter data for new patient First name: ";

cin.getline(p.FirstName, sizeof(p.FirstName));

cout << "Last name: ";

cin.getline(p.LastName, sizeof(p.LastName));
12
cout << "Social security number: ";

cin.getline(p.ID, sizeof(p.ID));

if (p.FirstName[0]==0 || p.LastName[0]==0 || p.ID[0]==0)

strcpy(p.ID,"");

cout << "Error: Data not valid. Operation cancelled.";

getch();

return p;

void OutputPatient (patient * p)

if (p == NULL || p->ID[0]==0)

cout << "No patient";

return;

else

cout << "Patient data:";

cout << "First name: " << p->FirstName;

cout << "Last name: " << p->LastName;

cout << "Social security number: " << p->ID;

int ReadNumber()

char buffer[20];

cin.getline(buffer, sizeof(buffer));

return atoi(buffer);

}
13
void DepartmentMenu (queue * q)

int choice = 0, success; patient p;

while (choice != 6)

clrscr();

cout << "Welcome to department: " << q->DepartmentName;

cout << "Please enter your choice:";

cout << "1: Add normal patient";

cout << "2: Add critically ill patient";

cout << "3: Take out patient for operation";

cout << "4: Remove dead patient from queue";

cout << "5: List queue";

cout << "6: Change department or exit";

choice = ReadNumber();

switch (choice)

case 1:

p = InputPatient();

if (p.ID[0])

success = q->AddPatientAtEnd(p);

clrscr();

if (success)

cout << "Patient added:";

else

{
14
cout << "Error: The queue is full. Cannot add patient:";

OutputPatient(&p);

cout << "Press any key";

getch();

break;

case 2:

p = InputPatient();

if (p.ID[0])

success = q->AddPatientAtBeginning(p);

clrscr();

if (success)

cout << "Patient added:";

else

cout << "Error: The queue is full. Cannot add patient:";

OutputPatient(&p);

cout << "Press any key";

getch();

break;

case 3:

p = q->GetNextPatient();

clrscr();
15
if (p.ID[0])

cout << "Patient to operate:";

OutputPatient(&p);}

else

cout << "There is no patient to operate.";

cout << "Press any key";

getch();

break;

case 4:

p = InputPatient();

if (p.ID[0])

success = q->RemoveDeadPatient(&p);

clrscr();

if (success)

cout << "Patient removed:";

else

cout << "Error: Cannot find patient:";

OutputPatient(&p);

cout << "Press any key";

getch();

}
16
break;

case 5:

clrscr();

q->OutputList();

cout << "Press any key";

getch(); break;

void main ()

int i, MenuChoice = 0;

queue departments[3];

strcpy (departments[0].DepartmentName, "Heart clinic");

strcpy (departments[1].DepartmentName, "Lung clinic");

strcpy (departments[2].DepartmentName, "Plastic surgery");

while (MenuChoice != 4)

clrscr();

cout << "Welcome to Software City Hospital";

cout << "Please enter your choice:";

for (i = 0; i < 3; i++)

cout << "" << (i+1) << ": " << departments[i].DepartmentName;

cout << "4: Exit";

MenuChoice = ReadNumber();

if (MenuChoice >= 1 && MenuChoice <= 3)

{
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 .

Computer Science C++ By Preeti Arora And Sumita Arora

www.google.com

www.Wikipedia.com

www.cbseportal.com

www.scribd.com

25

You might also like