Sei sulla pagina 1di 26

TERM PAPER OF Programming in C

CAP(502)

Feedback
Management
System
SUBMITED BY:NAME: - VIKASH VISHWAKARMA
PROGRAM: - MCA-M.Tech (CSE) (DUAL DEGREE)
REGISTRATION NO.:- 11208224

SECTION: - D1207 GROUP: - 1


ROLL NO.:- RD1207A17
SUBMITTED TO,
Miss. Kiran Sharma

TERM PAPER OF Programming in C


CAP(502)

INDEX

1.

Introduction

2.

Proposed system
i.
ii.

Description
System requirements

3.

System Module

4.

Source code

5.

Screenshots of this project

6.

Future scope of project

TERM PAPER OF Programming in C


CAP(502)
INTRODUCTION:
In the existing system, most of the records are maintained
on paper. It becomes very inconvenient to search the data. In the
existing system, here is a possibility that the different data in
same registers may have different values which means the
answer of different users data do not match. This inconsistent
state does not supply the concrete information which poses a
problem in the case information related to particular search
record.
Our project is useful to collect feedback of all client whose
use the University Management (U.M.S). WE can take feedback of
all individual clients through this project at same system. This
term paper project is just an application of the language C in
developing software.

PROPOSED SYSTEM:
The following documentation is a project the FEEDBACK
MANAGEMENT SYSTEM. It is a detailed summary of all the
drawbacks of the old system and how the new proposed system
overcomes these shortcomings. The new system takes into
account the various factors while designing a new system.

DESCRIPTION:

Before developing software we keep following things in mind


that we can develop powerful and quality software
PROBLEM STATEMENT
o
o
o
o
o

Problem statement was to design a module:


Which is user friendly
Which will restrict the user from accessing other users data?
Which will help user in viewing his data and privileges?
Which will help the administrator to handle all the changes?

TERM PAPER OF Programming in C


CAP(502)
FUNCTIONS TO BE PROVIDED:
The system will be user friendly and completely menu driven
so that the users shall have no problem in using all options.
o
o
o
o
o

The system will be efficient and fast in response.


The system will be customized according to needs.
Create new account
Search and display client details
Administrator can see individual client feedback

SYSTEM REQUIRMENTS:
Operating system:

MS Windows XP or Windows 7

Language: C Language
Processor: Pentium IV Processor
RAM: 512 MB
Hard disk: Sufficient for general computers

Modules of this project:

Module 1: Login
Module 2: Administrator
List of questions
List of client
Client feedback
Module 3: Client
Already registered
New registration

TERM PAPER OF Programming in C


CAP(502)
Source Code
#include<stdio.h>
#include<conio.h>
#include<string.h>
void intro();
void login();
void admin();
void client();
void c_list();
void list(char *w);
void showfeedback();

void main()
{

clrscr();
intro();
getch();
}
void intro()
{
char ch3;
clrscr();
gotoxy(12,3);

TERM PAPER OF Programming in C


CAP(502)
printf("# # # # WELCOME U.M.S. FEEDBACK MANAGEMENT SYSTEM # # #
#\n");
gotoxy(12,4);
printf("
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
printf("\n\n******SOME INSTRUCTION FOR USING******\n");
printf("

--------------------------

\n");

printf("\n* To give your feedback your name should be registered.\n");


printf("\n* Give your answer in numeric ways press 1, 2, 3, or 4.\n");
printf("\n* Write your opinion which question has no any option\n");
printf("\nTO be Continue..press Enter");
getch();
login();
}
void login()
{

int ch;
start:
clrscr();
printf("YOU WANT TO LOGIN as a..\n");
printf("\n\t1. Admin\n\n\t2. Client\n\n\t3. Exit");
printf("\n\n\tENTER YOUR CHOICE : ");
scanf("%d",&ch);
switch(ch)
{
case 1:
admin();

TERM PAPER OF Programming in C


CAP(502)
break;
case 2:
client();
break;
case 3:
exit(0);
break;
default:
printf("Wrong choice! press enter to re-enter");
getch();
goto start;
}
}

//**************************** ADMIN OPEN ********************************


void admin()
{
int ch1,c;
astart:
clrscr();
printf("1. Administrator\n");
printf(" ~~~~~~~~~~~~~\n");
printf("\n\t\t1. List of all question\n\n\t\t2. List of clients\n\n\t\t3. Individual
client feedback\n\n\t\t4. EXIT");
printf("\n\n\t\tENTER YOUR CHOICE : ");
scanf("%d",&ch1);

TERM PAPER OF Programming in C


CAP(502)
switch(ch1)
{
case 1:
printf("\t\t\t@ @ @ @ @ QUESTIONS FOR FEEDBACK @ @ @ @ @ \n");
printf("\t\t\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~\n\n");
printf("\t\tQ1]. How would you rate the U.M.S ?\n");
printf("\t\t1) Good\t2) Very good\t3) Bad\t4) Average\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ2]. How would you rating facility of U.M.S ? \n");
printf("\t\t1) Good\t2) Very good\t3) Bad\t4) Average\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ3]. Design of U.M.S !\n");

printf("\t\t1) Good\t2) Very good\t3) Bad\t4) Average\n");


printf("--------------------------------------------------------------------------------");
printf("\t\tQ4]. How is way of providing information in U.M.S.\n");
printf("\t\t1) Good\t2) Very good\t3) Bad\t4) Average\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ5]. Access or exiting process .\n");
printf("\t\t1) Good\t2) Very good\t3) Bad\t4) Average\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ6]. Do you agree with U.M.S password security\n");
printf("\t\t1) Yes\t2) No\t3) Average\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ7]. How would you rate security of U.M.S ?\n");
printf("\t\t1) Good\t2) Very good\t3) Bad\t4) Average\n");

TERM PAPER OF Programming in C


CAP(502)
printf("--------------------------------------------------------------------------------");
printf("\t\tQ8]. Are you satisfied to get your personal detail from
U.M.S ?\n");
printf("\t\t1) Yes\t2) No\t3) Average\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ9]. Have you any problem in U.M.S .\n");
printf("--------------------------------------------------------------------------------");
printf("\t\tQ10]. Have you any secession about U.M.S?\n");
printf("--------------------------------------------------------------------------------");
getch();
goto astart;

case 2:
c_list();
getch();
goto astart;
//

break;
case 3:
showfeedback();
getch();
goto astart;

//

break;
case 4:
login();
break;
default:
printf("Wrong choice! Press ENTER for re-enter...");

TERM PAPER OF Programming in C


CAP(502)
getch();
goto astart;
}
}

struct client
{
char u_name[20];
char pass[20];

char email[30];
long int pno;
}c;
struct list
{
char name[20];
int ans[8];
char ch[50];
char op[50];
}l;
//**************************** CLIENT OPEN *******************************
void client()
{
int ch2;
FILE *fp,*fp1;
char u_name[20],pass[20];

TERM PAPER OF Programming in C


CAP(502)
cstart:
clrscr();
printf("2. CLIENT TYPE\n");
printf(" ~~~~~~~~~~~");
printf("\n\t\t1. Are you already registered\n\n\t\t2. Do you want to
register\n\n\t\t3. EXIT");
printf("\n\n\t\tENTER YOUR CHOICE : ");
scanf("%d",&ch2);

switch(ch2)
{
case 1:
fp1=fopen("user.dat","r");
printf("Enter user name : ");
scanf("%s",u_name);
printf("Enter Password : ");
scanf("%s",pass);
while(fread(&c,sizeof(c),1,fp1)==1)
{
printf("\n%s",c.u_name);
if(strcmp(u_name,c.u_name)==0 && strcmp(pass,c.pass)==0)
{
list(u_name);
}
else
{
printf("\nYou are not registered! Plz register...");

TERM PAPER OF Programming in C


CAP(502)
getch();
goto cstart;
}
}
fclose(fp1);
getch();

login();
//

break;
case 2:
fp=fopen("user.dat","a");
printf("Registration Form\n");
printf("~~~~~~~~~~~~~~~~~");
printf("\n Enter user name : ");
scanf("%s",c.u_name);
printf("Enter Password : ");
scanf("%s",c.pass);
printf("Enetr Email_id : ");
scanf("%s",c.email);
printf("Enter Phone no : ");
scanf("%ld",&c.pno);

fwrite(&c,sizeof(c),1,fp);
printf("\nRegistration successfuly press enter to login!");
getch();
fclose(fp);

TERM PAPER OF Programming in C


CAP(502)
goto cstart;
//

break;
case 3:
login();
break;

default:
printf("WRONG CHOICE! Press ENTER to re-enter");
getch();
goto cstart;
}
}

void c_list()
{
FILE *fp;
fp=fopen("user.dat","r");
while(fread(&c,sizeof(c),1,fp)==1)
{
printf("\n\nUser-Name
printf("\nEmail-ID

= %s ",c.u_name);

= %s ",c.email);

printf("\nContact-No = %ld ",c.pno);


printf("\nPassword

= %s ",c.pass);

printf("\n--------------------------------");
}
fclose(fp);

TERM PAPER OF Programming in C


CAP(502)
}
//************************
************************
void list(char *name)

QUESTION

LIST

FUNCTION

{
FILE *fp;
char var[]="THANKA YOU FOR FEEDBACK";
int k;
clrscr();

fp=fopen("fed.txt","a");
strcpy(l.name,name);
printf("%s\n",l.name);
gotoxy(20,02);
printf("@ @ @ @ @ QUESTIONS FOR FEEDBACK @ @ @ @ @ \n");
gotoxy(20,03);
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~\n\n\n");
printf("\tQ1]. How would you rate the U.M.S ?\n\n");
printf("\t1) Good\t2) Very good\t3) Bad\t4) Average\n\tAnswer : ");
scanf("%d",&l.ans[0]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ2]. How would you rating facility of U.M.S ? \n\n");
printf("\t1) Good\t2) Very good\t3) Bad\t4) Average\n\tAnswer : ");
scanf("%d",&l.ans[1]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ3]. Design of U.M.S !\n\n");

TERM PAPER OF Programming in C


CAP(502)
printf("\t1) Good\t2) Very good\t3) Bad\t4) Average\n\tAnswer : ");

scanf("%d",&l.ans[2]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ4]. How is way of providing information in U.M.S.\n\n");
printf("\t1) Good\t2) Very good\t3) Bad\t4) Average\n\tAnswer : ");
scanf("%d",&l.ans[3]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ5]. Access or exiting process .\n\n");
printf("\t1) Good\t2) Very good\t3) Bad\t4) Average\n\tAnswer : ");
scanf("%d",&l.ans[4]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ6]. Do you agree with U.M.S password security\n");
printf("\t1) Yes\t2) No\t3) Average\n\tAnswer : ");
scanf("%d",&l.ans[5]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ7]. How would you rate security of U.M.S ?\n\n");
printf("\t1) Good\t2) Very good\t3) Bad\t4) Average\n\tAnswer : ");
scanf("%d",&l.ans[6]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ8]. Are you satisfied to get your personal detail from
U.M.S ?\n\n");
printf("\t1) Yes\t2) No\t3) Average\n\tAnswer : ");
scanf("%d",&l.ans[7]);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ9]. Have you any problem in U.M.S .\n\tAnswer : ");
fflush(stdin);

TERM PAPER OF Programming in C


CAP(502)
gets(l.ch);
printf("--------------------------------------------------------------------------------\n");
printf("\tQ10]. Have you any secession about U.M.S\n\tAnswer : ");
gets(l.op);
printf("--------------------------------------------------------------------------------\n");
fwrite(&l,sizeof(l),1,fp);
fclose(fp);

gotoxy(28,25);
for(k=0;k<=strlen(var);k++)
{
printf("%c",var[k]);
delay(500);
}
delay(2000);
login();
}
//************************
************************
void showfeedback()
{
int i;
char name[20];
FILE *fp;

CLIENT

FEEDBACK

FUNCTION

fp=fopen("fed.txt","r");
printf("\nEnter client name : ");

TERM PAPER OF Programming in C


CAP(502)
scanf("%s",name);
while(fread(&l,sizeof(l),1,fp)==1)
{
if(strcmp(name,l.name)==0)
{
printf("\n1 -> Good ; 2 -> Very Good ; 3 -> Bad ; 4 -> Average");
printf("\nuser-name = %s\n",l.name);
for(i=0;i<=7;i++)
printf("Que[%d] = %d\t",i+1,l.ans[i]);
printf("\nProblem = %s",l.ch);
printf("\nSuggestion = %s",l.op);

}
else
{
printf("No record found!");
getch();
admin();
}

}
getch();

fclose(fp);
}
//**********************
*********************

CLIENT

FEEDBACK

FUNCTION

CLOSE

TERM PAPER OF Programming in C


CAP(502)
SCREENSHOTS OF THIS PROJECT

TERM PAPER OF Programming in C


CAP(502)

TERM PAPER OF Programming in C


CAP(502)

TERM PAPER OF Programming in C


CAP(502)

TERM PAPER OF Programming in C


CAP(502)

Features:
o We can take all individual client feedback regarding U.M.S
o All user cant login without registration
o Only administrator can login Admin part

Potrebbero piacerti anche