feedback rd 1207 a 17

Upload: vikash-vishwakarma

Post on 02-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 Feedback Rd 1207 a 17

    1/26

    TERM PAPER OF Programming in C

    CAP(502)

    Feedback

    ManagementSystem

    SUBMITED BY:-

    NAME: - VIKASH VISHWAKARMA

    PROGRAM: - MCA-M.Tech (CSE) (DUAL DEGREE)

    REGISTRATION NO.:- 11208224

  • 7/27/2019 Feedback Rd 1207 a 17

    2/26

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

    ii. System requirements

    3. System Module

    4. Source code

    5. Screenshots of this project

    6. Future scope of project

  • 7/27/2019 Feedback Rd 1207 a 17

    3/26

    TERM PAPER OF Programming in C

    CAP(502)

    INTRODUCTION:

    In the existing system, most of the records are maintainedon paper. It becomes very inconvenient to search the data. In theexisting system, here is a possibility that the different data insame registers may have different values which means theanswer of different users data do not match. This inconsistentstate does not supply the concrete information which poses aproblem in the case information related to particular searchrecord.

    Our project is useful to collect feedback of all client whoseuse the University Management (U.M.S). WE can take feedback ofall individual clients through this project at same system. Thisterm paper project is just an application of the language C indeveloping software.

    PROPOSED SYSTEM:

    The following documentation is a project the FEEDBACK

    MANAGEMENT SYSTEM. It is a detailed summary of all thedrawbacks of the old system and how the new proposed systemovercomes these shortcomings. The new system takes intoaccount the various factors while designing a new system.

    DESCRIPTION:

  • 7/27/2019 Feedback Rd 1207 a 17

    4/26

    Before developing software we keep following things in mindthat we can develop powerful and quality software

    PROBLEM STATEMENT

    o Problem statement was to design a module:o Which is user friendlyo Which will restrict the user from accessing other users data?o Which will help user in viewing his data and privileges?o 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 The system will be efficient and fast in response.o The system will be customized according to needs.o Create new accounto Search and display client detailso 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:

  • 7/27/2019 Feedback Rd 1207 a 17

    5/26

    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 CCAP(502)

    Source Code

    #include

    #include

    #include

    void intro();

    void login();

    void admin();

    void client();

    void c_list();

    void list(char *w);

    void showfeedback();

    void main()

    {

  • 7/27/2019 Feedback Rd 1207 a 17

    6/26

    clrscr();

    intro();

    getch();

    }

    void intro()

    {

    char ch3;

    clrscr();

    gotoxy(12,3);

    TERM PAPER OF Programming in CCAP(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()

    {

  • 7/27/2019 Feedback Rd 1207 a 17

    7/26

    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;

    }

    }

  • 7/27/2019 Feedback Rd 1207 a 17

    8/26

    //**************************** 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. Individualclient 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");

  • 7/27/2019 Feedback Rd 1207 a 17

    9/26

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

  • 7/27/2019 Feedback Rd 1207 a 17

    10/26

    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 CCAP(502)

    getch();

    goto astart;

    }

    }

    struct client

    {

    char u_name[20];

    char pass[20];

  • 7/27/2019 Feedback Rd 1207 a 17

    11/26

    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 toregister\n\n\t\t3. EXIT");

    printf("\n\n\t\tENTER YOUR CHOICE : ");

    scanf("%d",&ch2);

  • 7/27/2019 Feedback Rd 1207 a 17

    12/26

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

  • 7/27/2019 Feedback Rd 1207 a 17

    13/26

    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;

  • 7/27/2019 Feedback Rd 1207 a 17

    14/26

  • 7/27/2019 Feedback Rd 1207 a 17

    15/26

    {

    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 : ");

  • 7/27/2019 Feedback Rd 1207 a 17

    16/26

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

  • 7/27/2019 Feedback Rd 1207 a 17

    17/26

    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

  • 7/27/2019 Feedback Rd 1207 a 17

    18/26

    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/27/2019 Feedback Rd 1207 a 17

    19/26

    fclose(fp);

    }

    //********************** CLIENT FEEDBACK FUNCTION CLOSE*********************

    TERM PAPER OF Programming in C

    CAP(502)

    SCREENSHOTS OF THIS PROJECT

  • 7/27/2019 Feedback Rd 1207 a 17

    20/26

    TERM PAPER OF Programming in C

    CAP(502)

  • 7/27/2019 Feedback Rd 1207 a 17

    21/26

  • 7/27/2019 Feedback Rd 1207 a 17

    22/26

    TERM PAPER OF Programming in C

    CAP(502)

  • 7/27/2019 Feedback Rd 1207 a 17

    23/26

    TERM PAPER OF Programming in C

    CAP(502)

  • 7/27/2019 Feedback Rd 1207 a 17

    24/26

  • 7/27/2019 Feedback Rd 1207 a 17

    25/26

    TERM PAPER OF Programming in C

    CAP(502)

  • 7/27/2019 Feedback Rd 1207 a 17

    26/26

    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