Sie sind auf Seite 1von 26

Submitted by:-Rashid hussain Submitted to:- Geetika Bharadwaj Program:-B.

Tech[Bio-technology] Roll number:- A55,Reg no:-10908206

Gratitude cannot be seen or expressed. It can only be felt in heart and is beyond description. Often words are inadequate to serve as a model of expression of ones feeling, specially the sense of indebtedness and gratitude to all those who help us in our duty.

It is of immense pleasure and profound privilege to express my gratitude and indebtedness along with sincere thanks to maam Geetika Bharadwaj,lecturer of computer science at Lovely Professional University for providing me the opportunity to work for a project on RESULT MANAGEMENT SYSTEM I am beholden to my family and friends for their blessings and encouragement.

Thank you.

TABLE OF CONTENT

1. 2.

Introduction Proposed system i. Description ii. System requirements 3. Requirement Analysis 4. System Design 5. Source code 6. Testing 7. Future scope of project

INTRODUCTION

In the existing system, most of the records are maintained on paper. It becomes very inconvenient to modify the data. In the existing system, here is a possibility that the same data in different registers may have different values which means the entries of the same 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 very useful. User is no longer required to check his register in search of records, as now it can be searched over the software by choosing some options. The user need not to type in most of the information. He/she is just required to enter the desired options. On the whole it liberates the user from keeping lengthy manual records. In a nutshell, it abates the work load of an organization. In todays world, no one likes to perform calculations on calculator or manually when computer is there. Every one wants his/her work to be done by computer automatically and displaying the result for further manipulations.

PROPOSED SYSTEM

The following documentation is a project on the RESULT 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. It keeps into the account the Economical bandwidth available for the new system. The foremost thing that is taken care of is the Need and Requirements of the User.

DESCRIPTION
Before developing software we keep following things in mind that we can develop powerful and quality software

PROBLEM STATEMENT
o Problem statement was to design a module: o Which is user friendly o 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.

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 It would help in reducing the complexity. o Computerized result manangement system helps in managing things accurately o It is also a time saving process. o Helps in saving a large amount of data without the fear of saving it. o Without the interference of any human, one can easily login and get through the result and its management.

SYSTEM REQUIRMENTS
Operating system: MS DOS, Windows XP, Windows Vista or Windows 7.

Language: C Language Processor: Pentium IV Processor or Higher RAM: 512 MB or Higher Hard disk: 5 GB or Higher

REQUIREMENT ANALYSIS

This process is adopted when management of the system decide that the particular system needs improvement. The system development life cycle is the set of activities, carried out by the analyst, designers and users to develop and implement a system. The systems that are present in the nature follow common life cycle pattern. For example consider the raining system. Initially the rain falls into the river, river flows into sea, the sea water evaporates to form vapours, the vapours form clouds which again bring rain. Similarly consider a man made system initially a system is analyzed, designed and made operational by the efforts of system analysis. After successful operation or a number of users, the system becomes less and less effective by change in the environment. So these changes have to be incorporated in to the system by minor modifications. So the general activities from the life cycle of the system are given below: Selection and identification of the system to be studied Preliminary study Defining the system Design and development of the system Implementation of the system

SYSTEM DESIGN

Then we began with the design phase of the system. System design is a solution, a HOW TO approach to the creation of a new system. It translates system requirements into ways by which they can be made operational. It is a translational from a user oriented document to a document oriented programmers. For that, it provides the understanding and procedural details necessary for the implementation. Here we use Flowchart to supplement the working of the new system. The system thus made should be reliable, durable and above all should have least possible maintenance costs. It should overcome all the drawbacks of the Old existing system and most important of all meet the user requirements.

START

Welcome to main menu of Result Management

Enter your choice ?

View the computerized result

About the record

Data record

Quit

Do you want to continue?

STOP

SOURCE CODE

# include <stdio.h> # include <conio.h> # include <stdlib.h> # include <string.h>

# define EMP_FILE "empdata.txt" # define TMP_FILE "tmpdata.txt"

# define PWD "nitz\0"

int main(int, char**); void welcome_message(void); void get_password(void); void main_menu(void); void manage_student(void); void add_student(void); void delete_student(void); void edit_student(void); void search_student(void); void student_menu(void); void exit_message(void);

int main(int argc, char *argv[]) { char menuOpt;

int isExit = 0; welcome_message(); if(argc > 1) { clrscr(); printf("%s : Start Up Error >>> ", argv[0]); fflush(stdin); getch(); return (EXIT_FAILURE); } get_password(); do { main_menu(); fflush(stdin); menuOpt = (char)getch(); switch(menuOpt) { case '1': { manage_student(); break; } case '2': { isExit = 1; break;

} default: { clrscr(); printf("Invalid Option!"); fflush(stdin); getch(); break; } } }while(isExit == 0); exit_message(); fflush(stdin); getch(); return (EXIT_SUCCESS); }

void welcome_message(void) { clrscr(); printf("\t\t\t\t****WELCOME****\n\n"); printf("\t\t\t\t**TO**\n\n"); printf("\t\t ** RESULT MANAGEMENT SYSTEM**\n\n");

printf("\n\n\n\n\n\n\n\nPlease press any key to continue"); fflush(stdin); getch(); }

void main_menu(void) { clrscr(); printf(" printf(" printf(" printf(" MENU\n"); ----\n"); [1] : Manage Students Result\n"); [2] : Exit\n\n");

printf(" >>> "); }

void manage_student(void) { char menuOpt; int isExit = 0; do { student_menu(); fflush(stdin); menuOpt = (char)getch(); switch(menuOpt) { case '1': { add_student(); break; }

case '2': { delete_student(); break; } case '3': { edit_student(); break; } case '4': { search_student(); break; } case '5': { isExit = 1; fflush(stdin); break; } default: { clrscr(); printf("Invalid Option!"); getch(); }

} }while(isExit == 0); }

void add_student(void) { char name[50]; char branch[100]; char grade[11]; char id[5]; float tmarks; float percentage; FILE *fp; fp = fopen(EMP_FILE, "a+"); do { fscanf(fp, "%[^/]%*c%[^/]%*c%[^/]%*c%[^/]%*c%f %f%*c", name, branch, grade, id, &tmarks, &percentage); if(feof(fp)) { break; } }while(!(feof(fp))); clrscr(); printf("Name fflush(stdin); gets(name); : ");

printf("Branch fflush(stdin); gets(branch); printf("Grade fflush(stdin); gets(grade); printf("ID fflush(stdin); gets(id);

: ");

: ");

: ");

printf("Total Marks : "); fflush(stdin); scanf("%f", &tmarks); printf("Percentage fflush(stdin); scanf("%f", &percentage); fprintf(fp, "%s/%s/%s/%s/%.2f %.2f\n", name, branch, grade, id, tmarks, percentage); fflush(fp); fclose(fp); clrscr(); printf("Done Entering New Record >>> "); getch(); } : ");

void delete_student(void) { char name[50];

char branch[100]; char grade[11]; char id[5]; char idDel[5]; float tmarks; float percentage; FILE *fp1; FILE *fp2; fp1 = fopen(EMP_FILE, "r"); fp2 = fopen(TMP_FILE, "w"); clrscr(); printf("Enter Student ID to Delete : "); fflush(stdin); gets(idDel); do { fscanf(fp1, "%[^/]%*c%[^/]%*c%[^/]%*c%[^/]%*c%f %f%*c", name, branch, grade, id, &tmarks, &percentage); if(feof(fp1)) { break; } if((strcmp(id, idDel)) != 0) { fprintf(fp2, "%s/%s/%s/%s/%.2f %.2f\n", name, branch, grade, id, tmarks, percentage); } }while(!(feof(fp1)));

fflush(fp2); fclose(fp1); fclose(fp2); remove(EMP_FILE); rename(TMP_FILE, EMP_FILE); clrscr(); printf("Done Deleting >>> "); fflush(stdin); getch(); }

void edit_student(void) { char name[50]; char branch[100]; char grade[11]; char id[5]; char idEdit[5]; float tmarks; float percentage; FILE *fp1; FILE *fp2; fp1 = fopen(EMP_FILE, "r"); fp2 = fopen(TMP_FILE, "w"); clrscr(); printf("Enter student ID to Edit : "); fflush(stdin);

gets(idEdit); do { fscanf(fp1,"%[^/]%*c%[^/]%*c%[^/]%*c%[^/]%*c%f %f%*c", name, branch, grade, id, &tmarks, &percentage ); if(feof(fp1)) { break; } if((strcmp(id, idEdit)) == 0) { clrscr(); printf("Enter new total marks : "); fflush(stdin); scanf("%f", &tmarks); printf("Enter the new number percentage : "); fflush(stdin); scanf("%f", &percentage); } fprintf(fp2, "%s/%s/%s/%s/%.2f %.2f\n", name, branch, grade, id, tmarks, percentage); }while(!(feof(fp1))); fflush(fp2); fclose(fp1); fclose(fp2); remove(EMP_FILE); rename(TMP_FILE, EMP_FILE); clrscr();

printf("Done Editing >>> "); fflush(stdin); getch(); }

void search_student(void) { char name[50]; char branch[100]; char grade[11]; char id[5]; char idSearch[5]; float tmarks; float percentage; FILE *fp; fp = fopen(EMP_FILE, "r"); clrscr(); printf("Enter the Student ID to Search : "); fflush(stdin); gets(idSearch); do { fscanf(fp, "%[^/]%*c%[^/]%*c%[^/]%*c%[^/]%*c%f %f%*c", name, branch, grade, id, &tmarks, &percentage); if(feof(fp)) { break;

} if((strcmp(id, idSearch)) == 0) { clrscr(); printf("Name printf("Branch printf("Grade printf("ID : %s\n", name); : %s\n", branch); : %s\n", grade); : %s\n", id); : %.2f\n", tmarks); : %.2f\n\n", percentage);

printf("Total Marks printf("Percentage

printf("Press ENTER to continue >>> "); fflush(stdin); getch(); } }while(!(feof(fp))); fclose(fp); } void get_password(void) { char password[7]; do { clrscr(); printf("Enter Password >>> "); fflush(stdin); gets(password); }while((strcmp(password, PWD)) != 0);

void student_menu(void) { clrscr(); printf(" printf(" printf(" printf(" printf(" printf(" printf(" MENU\n"); ----\n"); [1] : Add Student\n"); [2] : Delete Student\n"); [3] : Edit Student\n"); [4] : Search Student\n"); [5] : Go Back\n\n");

printf(" >>> "); }

void exit_message(void) { clrscr(); printf("THANK YOU!\n"); printf(">>> "); }

TESTING

Testing is the major control measure used during software development. Its basic function is to detect errors in the software. During requirement analysis and design, the output is a document that is usually textual and no executable. After the coding phase, computer programs are available that can be executed for testing purpose. This implies that testing not only, has to uncover errors introduced during coding, but also errors introduced during previous phase. Thus the goal of testing is to uncover the requirements, design and coding errors in the programs. So after testing the outputs of my project are as follows:

1-Main screen.

2- Main screen

3-Menu screen

4- Enter student record

5-search student record

FUTURE SCOPE OF THE PROJECT

My project will be able to be implemented in future after making some changes and modifications in it as I have made my project at a very low level. So the modifications that can be done in my project are: In future one can add the fingerprint of the persons of which the address is entered.And one more major change which can be done in this project is that to add the snaps of the person of which the address is entered.We can also add or subtract details of the individual.

THANK YOU.