Professional Documents
Culture Documents
On
Nigs Enterprises
UTTARANCHAL UNIVERSITY
Session 2017-18
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”.
Fuddi
TABLE OF CONTENTS
S. NO Title Page No
1 Introduction 1
2 Objectives 2
4 System Analysis 4
5 System Design 5
6 Testing 6
8 Reports 8
9 Future scope 9
10 Bibliography 10
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.
Hardware requirement-
Ram- 512mb
Keyboard-122 key
SYSTEM ANALYSIS
Existing system:
Organization is one of the most important concepts for contemporary society.
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
(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.
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.
https://www.tutorialpoint.com/css_online_training/css_selectors.asp. [Accessed:
03-May-2018]
#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();
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];
};
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)
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{
scanf("%d",&choice);
fflush(stdin);
switch(choice)
case 1: doctor();
break;
case 2: patient();
break;
case 3: exit(0);
scanf("%c",&y);
}while(y=='y');
void doctor()
int s,emp;
char yes;
do{
clrscr();
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;
fflush(stdin);
scanf("%c",&yes);
}while(yes=='y');
}
void patient()
int s;
char yes;
do{
clrscr();
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;
fflush(stdin);
scanf("%c",&yes);
}while(yes=='y');
void insert()
FILE *fp;
fp=fopen("emp","a");
printf("enter id: ");
scanf("%d",&start.eid);
fflush(stdin);
gets(start.name);
gets(start.sp);
gets(start.age);
gets(start.co);
gets(start.sal);
fflush(stdin);
fwrite(&start, sizeof(start),1,fp);
fclose(fp);
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;
scanf("%d",&r);
avl=idsearch(r);
if(avl==0)
else
fp2=fopen("emp","r");
while(fread(&start,sizeof(start),1,fp2))
s=start.eid;
if(s==r)
{
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);
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;
void del()
FILE *fpo;
FILE *fpt;
int r, s;
scanf("%d", &r);
if (idsearch(r) == 0)
else
s = start.eid;
if (s != r)
fclose(fpo);
fclose(fpt);
printf("\nRECORD DELETED\n");
fclose(fpo);
fclose(fpt);
void insert1()
FILE *fp4;
clrscr();
fp4=fopen("patient","a");
printf("*********WELCOME*********");
scanf("%d",&pat.code);
fflush(stdin);
gets(pat.name);
gets(pat.g);
gets(pat.blood);
gets(pat.dob);
fflush(stdin);
printf("\nDisease: ");
gets(pat.d);
fflush(stdin);
gets(pat.a.hno);
printf("\nstree: ");
gets(pat.a.street);
gets(pat.a.city);
gets(pat.a.state);
gets(pat.pin);
gets(pat.doc);
fflush(stdin);
fwrite(&pat, sizeof(pat),1,fp4);
fclose(fp4);
void dis1()
FILE *fp4;
fp4=fopen("patient","r");
while(fread(&pat,sizeof(pat),1,fp4))
printf("%d",pat.code);
puts(pat.name);
printf("\nAge %d",pat.age);
printf("\nGender : %s",pat.g);
printf("\nBloodgroup: %s",pat.blood);
printf("\nAddress : %d,%s,%s,%s",pat.a.hno,pat.a.street,pat.a.city,pat.a.state);
printf("\nDisease : %s",pat.d);
puts(pat.doc);
printf("\n----------------------------------------------------\n");
getch();
fclose(fp4);
void search1()
FILE *fp5;
int r,s,avl;
scanf("%d",&r);
avl=nosearch(r);
if(avl==0)
else
fp5=fopen("patient","r");
while(fread(&pat,sizeof(pat),1,fp5))
s=pat.code;
if(s==r)
{
printf("%d",pat.code);
puts(pat.name);
printf("\nAge %d",pat.age);
printf("\nGender : %s",pat.g);
printf("\nBloodgroup: %s",pat.blood);
printf("\nAddress : %d,%s,%s,%s",pat.a.hno,pat.a.street,pat.a.city,pat.a.state);
printf("\nDisease : %s",pat.d);
puts(pat.doc);
fclose(fp5);
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;
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)
s = pat.code;
if (s != r)
fclose(fpo);
fclose(fpt);
printf("\nRECORD DELETED\n");
fclose(fpo);
fclose(fpt);
void update()
{
int avl;
FILE *fpt;
FILE *fpo;
int s, r, ch;
scanf("%d", &r);
avl = idsearch(r);
if (avl == 0)
else
s = start.eid;
if (s != r)
else
printf("name: ");
fflush(stdin);
gets(start.name);
gets(start.sp);
gets(start.age);
gets(start.co);
gets(start.sal);
fclose(fpo);
fclose(fpt);
fclose(fpo);
fclose(fpt);
printf("RECORD UPDATED");
void update1()
int avl;
FILE *fpt;
FILE *fpo;
int s, r, ch;
scanf("%d", &r);
avl = nosearch(r);
if (avl == 0)
else
s = pat.code;
if (s != r)
fwrite(&pat, sizeof(pat), 1, fpt);
else
fflush(stdin);
fflush(stdin);
gets(pat.name);
gets(pat.age);
gets(pat.g);
gets(pat.blood);
gets(pat.dob);
fflush(stdin);
printf("\nDisease: ");
gets(pat.d);
fflush(stdin);
gets(pat.a.hno);
printf("\nstree: ");
gets(pat.a.street);
printf("\n city: ");
gets(pat.a.city);
gets(pat.a.state);
gets(pat.pin);
gets(pat.doc);
break;
fclose(fpo);
fclose(fpt);
}
fclose(fpo);
fclose(fpt);
printf("RECORD UPDATED");