You are on page 1of 44

Mini project

On
Nigs Enterprises

UTTARANCHAL UNIVERSITY

Session 2017-18

Under the supervision of : Submitted By:


Ms. Pooja Shubham Dhaundiyal
Assistant professor BCA 2 nd sem (B)
 ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to my teacher
“fuddi” .who gave me the golden opportunity to do this wonderful project
on the topic “Nigs Enterprises”, which also helped me in doing a lot of
Research and i came to know about so many new things I am really
thankful to them.
Secondly i would also like to thank my project partner who helped me a lot
in finalizing this project within the limited time frame.

Shubham Dhaundiyal
 DECLARATION
I hereby declare that this mini project work entitled (“Nigs Enterprises”) is an authentic
record of my own work carried out at Uttaranchal University under the guidance of Ms.
“fuddi”.

Date: 5/12/2018 Name: Shubham Dhaundiyal


 CERTIFICATE OF ORIGINALITY
This is to certify that this report entitled “Nigs” is original work done by Shubham
Dhaundiyal during this project submission as a partial fulfilment of the requirement
for the Mini Project of Bachelor in Computer Application IInd Sem, of the Uttaranchal
University.

Fuddi
 TABLE OF CONTENTS
S. NO Title Page No

1 Introduction 1

2 Objectives 2

3 Hardware and Software Used 3

4 System Analysis 4

5 System Design 5

6 Testing 6

7 System and security measurement 7

8 Reports 8

9 Future scope 9

10 Bibliography 10

11 Appendix 1 (Source Code) 11


INTRODUCTION
Nigs Enterprises is the real time dynamic project in which we will make a website
that will give us a platform to provide the information about the complete
plumbing solution. In this website we will show different product related to pipes
and there fitting. Complete details will be provided about the size, packaging and
rate. A manual will be provided with every section of the product user want. This
manual contains following points:-

 Name of product.
 How to use it.
 Size in (mm*inch)
 Vol. that can be passed through it.
OBJECTIVE
The main objective of this website is that to store and manage the detail of sale-
purchases and feedback by user. The website can be access by anyone but some of
the detail can only be accessed by admin.

 It will allow user to buy plumbing material without going to specific shop.
 Show the information and description of different product.
 It increases the efficiency of managing the shop.
 Editing, adding, and updating of records.
 After using this software paper work and man power will be reduce.
HARDWARE AND SOFTWARE USED

Software requirement-
Platform- Wordpress , Textpad.

Language- PHP, XHTML

Operating system- Any Operating System

Hardware requirement-
Ram- 512mb

Hard disk – 1gb

Processor- pentium|| 630MHz

Keyboard-122 key
SYSTEM ANALYSIS

Existing system:
Organization is one of the most important concepts for contemporary society.

The information of any organization must be managed. Commonly we use files,


pen drive, paper to manage our data. But it is so tough to manage all the
information. By this approach it become so costly and required a specific team and
mostly it takes mush time. Time is an important factor in any organization it must
effectively used. To do all these things we need a specific infrastructure and a big
team.

Proposed system:
According to this method, the interaction between strategy, structure, systems,
staff, style, skill and system of prevalent values of the markting structure are
analysis with purpose of improving their management.

 Security of data.
 Need minimum one system to manage data.
 No need any specific team, one person can manage all these thing.
 Minimum time required.
 Greater efficiency.
SYSTEM DESIGN

Data flow diagram of hospital management system


Authenticated user

(admin)

employee
Main menu

Patient/ employee

patient Employee
record

Add/display/delete/updat
e/search

Patient record

Add/display/delete/updat
e/search

file data
file data

TESTING
System testing is the stage of implementation. This is to check whether
the system works accurately and efficiently before live operation
commences. Testing is vital to the success of the system. The
candidate system is subject to a variety of tests: on line response,
volume, stress, recovery, security and usability tests. A series of tests
are performed for the proposed system is ready for user acceptance
testing.

The Testing Steps are:

 Unit Testing- Unit testing focuses efforts on the smallest unit of


software design. This is known as module testing. The modules are
tested separately. The test is carried out during programming stage
itself. In this step, each module is found to be working satisfactory as
regards to the expected output from the module.

 Integration Testing- Data can be lost across an interface. One


module can have an adverse effect on another, sub functions, when
combined, may not be linked in desired manner in major functions.
Integration testing is a systematic approach for constructing the
program structure, while at the same time conducting test to uncover
errors associated within the interface. The objective is to take unit
tested modules and builds program structure. All the modules are
combined and tested as a whole.

 Validation- At the culmination of the integration testing, Software is


completely assembled as a package. Interfacing errors have been
uncovered and corrected and a final series of software test begin in
validation testing. Validation testing can be defined in many ways, but
a simple definition is that the validation succeeds when the software
functions in a manner that is expected by the customer. After
validation test has been conducted, one of the three possible conditions
exists.

a) The function or performance characteristics confirm to specification


and are accepted.
b) A deviation from specification is uncovered and a deficiency lists is
created.
c) Proposed system under consideration has been tested by using
validation test and found to be working satisfactory.

 Output Testing- After performing the validation testing, the next step
is output testing of the proposed system, since no system could be
useful if it does not produce the required output in a specific format.
The output format on the screen is found to be correct. The format was
designed in the system design time according to the user needs. For the
hard copy also; the output comes as per the specified requirements by
the user. Hence output testing did not result in any correction for the
system.
SYSTEM SECURITY MEASURES
REPORTS
FUTURE SCOPE
The major objective of proposed system is that to properly manage all the
information of hospital, patient, staff.

We can effectively update our data storing approach by taking review from the
organization.

 We can connect more hospital.

 Have a better interface.

 We can deliver it at the online platform.

 We will try make it more user friendly.


 More facilities could be given to patients later.
BIBLIOGR APHY
[1] R.pressman, software engineering New York: McGraw-Hill, 1992.

[2]”CSS-Selectors”,www.tutorialpoint.com, 2018. [Online] available

https://www.tutorialpoint.com/css_online_training/css_selectors.asp. [Accessed:
03-May-2018]

[3] “Minimum spanning Tree”, Nptel.ac.in, 2018. [Online]. Available:


https://inptel.ac.in/courses/106103069/48 [accessed: 03-may-2018].

[4] J. Vasu, G. Tejpal and S. Sharma, “Review on various Routing Attacks in


Vehicular AdhocNetworks”, international Journal of computer Applications, vol,
167, no. 1, pp. 19-23,2017.
SOURSE CODE
#include<stdio.h>

#include<conio.h>

void menu();

void doctor();

void patient();

void search();

void insert();

void dis();

int idsearch(int);

int nosearch(int);

void del();

void insert1();

void search1();

void dis1();

void del1();

void update();

void update1();

struct emp{ //employee structure//

char sp[40],name[40],co[10],age[20],sal[10];

int eid;

}start;
struct address

char hno[10],street[40],city[40],state[40];

};

struct pat{ //patient structure//

char name[50],doc[20];

char dob[10],g[10],blood[5],pin[6];

char fee[10],age[10],d[30];

int code;

struct address a;

}pat;

void main()

char userid[]="uim",password[]="123",p[15],u[15];

int n=1,a,b;

clrscr();

printf("\nEnter USER ID and PASSWORD below (You have only three chances to enter)");

getch();

while(n<=3)

clrscr();
printf("\nUSER ID: ");

scanf("%s",u);

printf("\nPASSWORD: ");

scanf("%s",p);

a=strcmp(u,userid);

b=strcmp(p,password);

if(a==0&&b==0)

printf("\nYou have logged in successfully.");

getch();

menu();

break;

else

printf("\nWrong PASSWORD and/or USER ID. Now you have % d more chance/s.",3-n);

n=n+1;

getch();

}}
//MAIN MENU//

void menu()

int choice;

char y;

clrscr();

do{

printf("\t\t**************HOSPITAL MANAGEMENT SYSTEM********\n\n");

printf("\n\t\t\t1. press 1 for employee");

printf("\n\t\t\t2. press 2 for patient ");

printf("\n\t\t\t3. press 3 for exit\t");

scanf("%d",&choice);

fflush(stdin);

switch(choice)

case 1: doctor();

break;

case 2: patient();

break;

case 3: exit(0);

default: printf("sorry not valid");


return;

printf("*do you want add more data press 'Y'..");

scanf("%c",&y);

}while(y=='y');

//EMPLOYEE RECORD MENU//

void doctor()

int s,emp;

char yes;

do{

clrscr();

printf("\t\t ***EMPLOYEE RECORD**\n");

printf("\n\t\t1. enter 1 for add new record");

printf("\n\t\t2. enter 2 for display the record");

printf("\n\t\t3. enter 3 for search the record");

printf("\n\t\t4. enter 4 for delete");

printf("\n \t\t5. enter 5 for update a record");

printf("\n\t\t6. enter 6 for main menu");

printf("\n enter choice: ");

fflush(stdin);
scanf("%d",&s);

switch(s)

case 1:

insert();

break;

case 2: dis();

break;

case 3:search();

break;

case 4:del();

break;

case 5: update();

break;

case 6: menu();

break;

printf("\n enter y for countinue: ");

fflush(stdin);

scanf("%c",&yes);

}while(yes=='y');
}

//PATIENT RECORD MENU//

void patient()

int s;

char yes;

do{

clrscr();

printf("\t\t** PATIENT RECORD**\n");

printf("\n\t\t 1. enter 1 for add new paient data");

printf("\n\t\t 2. enter 2 for display the patient record");

printf("\n\t\t 3. enter 3 for search the patient record");

printf("\n\t\t 4. enter 4 for delete patient data");

printf("\n\t\t 5. enter 5 for update a record");

printf("\n\t\t 6. enter 6 for main menu");

printf("\n\t\t enter choice: ");

fflush(stdin);

scanf("%d",&s);

switch(s)

case 1: insert1();

break;

case 2: dis1();
break;

case 3:search1();

break;

case 4:del1();

break;

case 5: update1();

break;

case 6: menu();

break;

printf("\n enter y for countinue: ");

fflush(stdin);

scanf("%c",&yes);

}while(yes=='y');

} //insertion in employee record//

void insert()

FILE *fp;

fp=fopen("emp","a");
printf("enter id: ");

scanf("%d",&start.eid);

fflush(stdin);

printf("\n name: ");

gets(start.name);

printf("\n department: ");

gets(start.sp);

printf("\n age : ");

gets(start.age);

printf("\n contact no: ");

gets(start.co);

printf("\n salary: ");

gets(start.sal);

fflush(stdin);

fwrite(&start, sizeof(start),1,fp);

fclose(fp);

//display the record of all employee//

void dis()

FILE *fp1;

fp1=fopen("emp","r");
printf("\nID \t NAME \t DEPARTMENT \t AGE \tCONTACT No.\t SALARY");

while(fread(&start,sizeof(start),1,fp1))

printf("\n%d \t %s \t %s \t %s \t %s \t
%s\n",start.eid,start.name,start.sp,start.age,start.co,start.sal);

fclose(fp1);

void search()

FILE *fp2;

int r,s,avl;

printf("\n enter the employee id to be search");

scanf("%d",&r);

avl=idsearch(r);

if(avl==0)

printf("Employee id %d is not available");

else

fp2=fopen("emp","r");

while(fread(&start,sizeof(start),1,fp2))

s=start.eid;

if(s==r)
{

printf("\nID \t NAME \t DEPARTMENT \t AGE \t CONTACT No.\t \tSALARY");

printf("\n%d \t %s \t %s \t %s \t %s \t
%s\n",start.eid,start.name,start.sp,start.age,start.co,start.sal);

fclose(fp2);

} //find the id available or not//

int idsearch(int rno)

FILE *fp;

fp=fopen("emp","r");

while(!feof(fp))

fread(&start,sizeof(start),1,fp);

if(rno==start.eid)

fclose(fp);

return 1;

}
fclose(fp);

return 0;

//delete a record of employee//

void del()

FILE *fpo;

FILE *fpt;

int r, s;

printf("Enter the ID no you want to delete :");

scanf("%d", &r);

if (idsearch(r) == 0)

printf("ID no %d is not available in the file\n", r);

else

fpo = fopen("emp", "r");

fpt = fopen("TempFile", "w");

while (fread(&start, sizeof(start), 1, fpo))

s = start.eid;

if (s != r)

fwrite(&start, sizeof(start), 1, fpt);

fclose(fpo);
fclose(fpt);

fpo = fopen("emp", "w");

fpt = fopen("TempFile", "r");

while (fread(&start, sizeof(start), 1, fpt))

fwrite(&start, sizeof(start), 1, fpo);

printf("\nRECORD DELETED\n");

fclose(fpo);

fclose(fpt);

//insertion of patient record//

void insert1()

FILE *fp4;

clrscr();

fp4=fopen("patient","a");

printf("*********WELCOME*********");

printf("\n patient Registration No. : ");

scanf("%d",&pat.code);

fflush(stdin);

printf("\npatient name: ");

gets(pat.name);

printf("\n age: ");


gets(pat.age);

printf("\n gender: ");

gets(pat.g);

printf("\nblood group: ");

gets(pat.blood);

printf("date of birth: ");

gets(pat.dob);

fflush(stdin);

printf("\nDisease: ");

gets(pat.d);

fflush(stdin);

printf("\n Address:\n ");

printf("home no: ");

gets(pat.a.hno);

printf("\nstree: ");

gets(pat.a.street);

printf("\n city: ");

gets(pat.a.city);

printf("\n state: " );

gets(pat.a.state);

printf("\n pin: ");

gets(pat.pin);

printf("cunsulting doctor: ");

gets(pat.doc);
fflush(stdin);

fwrite(&pat, sizeof(pat),1,fp4);

fclose(fp4);

//display the record of patient//

void dis1()

FILE *fp4;

fp4=fopen("patient","r");

while(fread(&pat,sizeof(pat),1,fp4))

printf("\nRegistration Number of the Patient : ");

printf("%d",pat.code);

printf("\nNameof the Patient : ");

puts(pat.name);

printf("\nAge %d",pat.age);

printf("\nGender : %s",pat.g);

printf("\nBloodgroup: %s",pat.blood);

printf("\n date of birth: %s",pat.dob);

printf("\nAddress : %d,%s,%s,%s",pat.a.hno,pat.a.street,pat.a.city,pat.a.state);

printf("\nDisease : %s",pat.d);

printf("\nNameof the Doctor : ");

puts(pat.doc);
printf("\n----------------------------------------------------\n");

getch();

fclose(fp4);

//search a patient record///

void search1()

FILE *fp5;

int r,s,avl;

printf("\n enter the patient registeration no to be search");

scanf("%d",&r);

avl=nosearch(r);

if(avl==0)

printf("Employee id %d is not available");

else

fp5=fopen("patient","r");

while(fread(&pat,sizeof(pat),1,fp5))

s=pat.code;

if(s==r)
{

printf("\nRegistration Number of the Patient : ");

printf("%d",pat.code);

printf("\nNameof the Patient : ");

puts(pat.name);

printf("\nAge %d",pat.age);

printf("\nGender : %s",pat.g);

printf("\nBloodgroup: %s",pat.blood);

printf("\n date of birth: %s",pat.dob);

printf("\nAddress : %d,%s,%s,%s",pat.a.hno,pat.a.street,pat.a.city,pat.a.state);

printf("\nDisease : %s",pat.d);

printf("\nNameof the Doctor : ");

puts(pat.doc);

fclose(fp5);

} //check the registration id//

int nosearch(int rno)

FILE *fp5;
fp5=fopen("patient","r");

while(!feof(fp5))

fread(&pat,sizeof(pat),1,fp5);

if(rno==pat.code)

fclose(fp5);

return 1;

fclose(fp5);

return 0;

//delete a patient record//

void del1()

FILE *fpo;

FILE *fpt;

int r, s;

printf("Enter the Registraton no. which record you want to delete :");

scanf("%d", &r);

if (nosearch(r) == 0)

printf("OOPPSS no. %d is not available in the file\n", r);


else

fpo = fopen("patient", "r");

fpt = fopen("TempFile2", "w");

while (fread(&pat, sizeof(pat), 1, fpo))

s = pat.code;

if (s != r)

fwrite(&pat, sizeof(pat), 1, fpt);

fclose(fpo);

fclose(fpt);

fpo = fopen("patient", "w");

fpt = fopen("TempFile2", "r");

while (fread(&pat, sizeof(pat), 1, fpt))

fwrite(&pat, sizeof(pat), 1, fpo);

printf("\nRECORD DELETED\n");

fclose(fpo);

fclose(fpt);

//update a employee record//

void update()

{
int avl;

FILE *fpt;

FILE *fpo;

int s, r, ch;

printf("Enter employee ID number to update:");

scanf("%d", &r);

avl = idsearch(r);

if (avl == 0)

printf("ID number %d is not Available in the file", r);

else

fpo = fopen("emp", "r");

fpt = fopen("TempFile", "w");

while (fread(&start, sizeof(start), 1, fpo))

s = start.eid;

if (s != r)

fwrite(&start, sizeof(start), 1, fpt);

else

printf("name: ");

fflush(stdin);
gets(start.name);

printf("\n department: ");

gets(start.sp);

printf("\n age : ");

gets(start.age);

printf("\n contact no: ");

gets(start.co);

printf("\n salary: ");

gets(start.sal);

fwrite(&start, sizeof(start), 1, fpt);

fclose(fpo);

fclose(fpt);

fpo = fopen("emp", "w");

fpt = fopen("TempFile", "r");

while (fread(&start, sizeof(start), 1, fpt))

fwrite(&start, sizeof(start), 1, fpo);

fclose(fpo);

fclose(fpt);
printf("RECORD UPDATED");

//update a patient record//

void update1()

int avl;

FILE *fpt;

FILE *fpo;

int s, r, ch;

printf("Enter Registration No. number to update:");

scanf("%d", &r);

avl = nosearch(r);

if (avl == 0)

printf("Registration number %d is not Available in the file", r);

else

fpo = fopen("patient", "r");

fpt = fopen("TempFile1", "w");

while (fread(&pat, sizeof(pat), 1, fpo))

s = pat.code;

if (s != r)
fwrite(&pat, sizeof(pat), 1, fpt);

else

fflush(stdin);

printf("\npatient name: ");

fflush(stdin);

gets(pat.name);

printf("\n age: ");

gets(pat.age);

printf("\n gender: ");

gets(pat.g);

printf("\nblood group: ");

gets(pat.blood);

printf("date of birth: ");

gets(pat.dob);

fflush(stdin);

printf("\nDisease: ");

gets(pat.d);

fflush(stdin);

printf("\n Address:\n ");

printf("home no: ");

gets(pat.a.hno);

printf("\nstree: ");

gets(pat.a.street);
printf("\n city: ");

gets(pat.a.city);

printf("\n state: " );

gets(pat.a.state);

printf("\n pin: ");

gets(pat.pin);

printf("cunsulting doctor: ");

gets(pat.doc);

fwrite(&pat, sizeof(pat), 1, fpt);

break;

fclose(fpo);

fclose(fpt);

fpo = fopen("patient", "w");

fpt = fopen("TempFile1", "r");

while (fread(&pat, sizeof(pat), 1, fpt))

fwrite(&pat, sizeof(pat), 1, fpo);

}
fclose(fpo);

fclose(fpt);

printf("RECORD UPDATED");

You might also like