Enquiry Management System

download Enquiry Management System

of 12

Transcript of Enquiry Management System

  • 7/30/2019 Enquiry Management System

    1/12

    ENQUIRYMANAGEMENTSYSTEMARDENT COLLABORATIONS

  • 7/30/2019 Enquiry Management System

    2/12

    CONTENTS:

    System Feasibility Background

    Functional Requirements

    Project Goals

    Requirement Specifications

    Design

    Coding

    Index

  • 7/30/2019 Enquiry Management System

    3/12

    REQUIREMENT SPECIFICATIONS:

    o Background:

    This C encoded software is designed for management of enquiry database

    systems. This application keeps record of enquiry logs regarding admission

    purposes & provides information data on the same.

    Users who can benefit are listed below:

    The enquirer who is interested in taking admission in a particular course or

    knowing all details prior to taking admission.

    The registrar who wants to keep a thorough & simplified track of records of

    enquiries & admissions.

    This software has the following features:

    A dynamic allocation system for storage of enquirer name, ID & a search &

    match feature at the time of admission.

    Option for storage of Course sought by enquirer.

    Feature to inform the enquirer of the corresponding fees for the course

    sought.

  • 7/30/2019 Enquiry Management System

    4/12

    o Functional Requirement:

    The enquiry management system has been built on Turbo C for processing. Platform

    dependence & efficiency has been provided by this application.

    The functional requirement of the system:

    For ENQUIRY:

    Here students get their id.

    For ADMISSION:Here students get admission using another function (search).

    o Project Goals:

    The enquiry management system is an application based on c to be used by user

    which will update navigate & add the new records into the structure.

    User Login/ Insertion of valid choiceUsers have to insert valid choice according to

    the display.

    Enquiry- By enquiry users gives Id number to the individual students.

    Admission- Here students will be admitted with their id number by the user.

    Logout/Exit- User can exit by inserting valid choice according to the display.

  • 7/30/2019 Enquiry Management System

    5/12

    DATA FLOW DIAGRAM

    Here we follow DeMarco & Yourdon Symbols:

    Level 0/ Context

    diagram

    0.0

    I/P DATA

    FEEDBACK DATA

    O/P DATA

    INFORMATION DATA

    USER

    EMS

    STUDENT

  • 7/30/2019 Enquiry Management System

    6/12

    Level 1

    1. 2.

    3. 4. 5. 6.

    .

    USERSTUDENT

    ENQUIRY

    (0.0.1)

    SEARCH

    (0.0.1)

    ADMISSION

    (0.0.1)

    1. STUDENT ID.

    2. STUDENT ID.

    3. STUDENT ID.

    4. FEES STRUCTURE.

    5. STUDENT COURSE.

    6. STUDENT NAME.

  • 7/30/2019 Enquiry Management System

    7/12

    #include

    #include

    #include

    #include

    #include

    static int i;

    typedef struct enquiry

    {

    int id;

    char name[20];

    char course[20];}ENQ;

    typedef struct admission

    {

    int id;

    char name[20];

    char course[20];

    float fees;

    }ADM;

    void insertENQ(FILE *fp)

    {

    ENQ *data;

    clrscr();

    data=(ENQ *)malloc(sizeof(ENQ));

    printf("\n\t Enter the name : ");

    fflush(stdin);

    gets(data->name);

    printf("\n\t Enter the course : ");

    gets(data->course);

    /* Generating the unique ID */

    data->id=i++;

    printf("\n\t The id : %d", data->id);

    fprintf(fp,"%d%s%s",data->id,data->name,data->course);

    }

    CODE

    Contd..

  • 7/30/2019 Enquiry Management System

    8/12

    while(fread(ab,sizeof(ENQ),1,fp)==EOF)

    {

    if(ab->id==id)

    {

    printf("\n%s",ab->name);

    strcpy(q->name,ab->name);

    strcpy(q->course,ab->course);

    }

    else

    {printf("\nID Does not exist");

    }

    ENQ *search(ENQ *t,FILE *fp,int id)

    {

    ENQ *q;

    ENQ *ab;

    char str[50];

    *ab=*t;

    }

    }

    return q;

    }

    void add(ENQ *p,FILE *fp)

    {

    ADM ob;

    printf("Enter fee details:--- ");

    fflush(stdin);

    scanf("%f",&ob.fees);

    printf("\nFees=%f",ob.fees);

    ob.id=p->id;

    strcpy(ob.name,p->name);

    strcpy(ob.course,p->course);

    fprintf(fp,"%d%s%s",p->id,p->name,p->course);

    }

    Contd..

  • 7/30/2019 Enquiry Management System

    9/12

    void add(ENQ *,FILE *);

    ENQ *search(ENQ *,FILE *,int);

    void insertENQ(FILE *);

    void main()

    {

    FILE *fp, *fp1;

    int ch, id;

    ENQ *s,*p;

    clrscr();

    do

    {

    printf("\n\t Enter your choice : ");

    printf("\n\t 1. Enquiry ");

    printf("\n\t 2. Admission ");

    printf("\n\t 3. Exit ");

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

    scanf("%d", &ch);

    switch(ch)

    {

    case 1 : {

    fp=fopen("ENQUIRY.txt", "a");

    printf("ENQUIRY FORM");

    insertENQ(fp);

    break;

    }

    Contd..

  • 7/30/2019 Enquiry Management System

    10/12

    case 2 : {

    fp=fopen("ADMISSION.txt", "a");

    fp1=fopen("ENQUIRY.txt", "r");

    printf("ADMISSION FORM");

    printf("\n\t Enter your ID : ");

    scanf("%d",&id);

    p=search(s,fp1,id);

    add(p,fp);

    break;

    }

    case 3 : exit(0);

    default : printf("\n\n\t Invalid Choice");

    }

    }

    fclose(fp);

    fclose(fp1);

    getch();

    }

    while(ch!=3);

  • 7/30/2019 Enquiry Management System

    11/12

    CODING STANDARDS:

    Use proper names methods. All variables must begin

    with a small alphabet and follow Hungarian Notation.

    Avoid using variables with no proper descriptions.

    Environment RequirementsSystem Requirements:

    Operating System:

    Windows 98, Windows XP, Windows Vista, Windows 7,

    Linux, Mac.

    Hardware:

    Minimum Intel Dual Core processor,256 MB RAM

    Software:

    Turbo C and Turbo C++

  • 7/30/2019 Enquiry Management System

    12/12

    REFERENCES:

    1. Let us C by Yashavant Kanetkar.

    2. Pointer in C by Yashavant Kanetkar.

    3. www.google.com