Sunteți pe pagina 1din 16

OF (DEPARTMENTAL STORE)

SUBMITTED BY:Name Naveen Yadav Regd. No 10906014 Rollno RB6905B34

GUIDED BY:

Mr. KUBERA SAMRAT


SUBMITTED TO

Department of Computer Science and Engineering Lovely Professional University Phagwara

ACKNOWLEDGEMENT
I take this opportunity to present my votes of thanks to all those guidepost who really acted as lightening pillars to enlighten our way throughout this project that has led to successful and satisfactory completion of this study. I am highly thankful to Mr. KUBERA SAMRAT for her active support, valuable time and advice, whole-hearted guidance, sincere cooperation and pains-taking involvement during the study and in completing the assignment of preparing the said project within the time stipulated. Lastly, We are thankful to all those, particularly the various friends , who have been instrumental in creating proper, healthy and conductive environment and including new and fresh innovative ideas for us during the project, their help, it would have been extremely difficult for us to prepare the project in a time bound framework. Name NAVEEN YADAV Regd.No 10906014 Rollno. RB6905B34

TABLE OF CONTENTS
1. 2. Introduction Proposed system i. Description 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
following documentation is a project the Name of the term paper allotted. 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 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.

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.

REQUIREMENT ANALYSIS
This process is adopted when management of the system development, Personnel 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 vapors, the vapors 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: Select ion 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.R

START

DEPARTMENTAL STORE MANAGEMENT

ADD RECORD

SHOW RECORD

MODIFY RECORD

EXIT RECORD

Source code
#include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> void main() { FILE *fp,*ft; char another,choice,itemcode[20]; struct store { char item_code[20]; char item_name[30]; int per_case_qty; int case_qty; int total_qty; float per_unit_price; float transport; float vat; float profit; float octory; float retail_price; }; struct store s; int a; while(1) { clrscr(); gotoxy(10,10); printf("1...Add Records"); gotoxy(10,12); printf("2...Show Records"); gotoxy(10,14); printf("3...Modify Records"); gotoxy(10,16); printf("4...Delete Records");

gotoxy(10,18); printf("0...EXIT\nENTER UR CHOICE"); fflush(stdin); choice=getche(); switch(choice) { case '1': fp=fopen("store.txt","w+"); if(fp==NULL) { puts("cannot open files"); exit(1); } fseek(fp,0,2); another='y'; /*add*/ while(another =='y') { fseek(fp,0,2); printf("\n Enter the item_code....."); scanf("%s",&s.item_code); printf("\n Enter the item_name....."); scanf("%s",&s.item_name); printf("\n Enter the per_case_qty....."); scanf("%d",&s.per_case_qty); printf("\n Enter the case_qty....."); scanf("%d",&s.case_qty); printf("\n Enter the total_qty....."); s.total_qty=s.per_case_qty * s.case_qty; printf("%d",s.total_qty); printf("\n\n Enter the per_unit_price....."); scanf("%f",&s.per_unit_price); printf("\n Enter the transport....."); scanf("%f",&s.transport); printf("\n Enter the profit....."); scanf("%f",&s.profit); printf("\n Enter the vat....."); scanf("%f",&s.vat); printf("\n Enter the octory....."); scanf("%f",&s.octory);

printf("\n Enter retail price....."); s.retail_price=s.per_unit_price + s.transport + s.profit + s.vat + s.octory; printf("%f",s.retail_price); fwrite(&s,sizeof(s),1,fp); fclose(fp); printf("add another record (y/n)"); fflush(stdin); another=getche(); } break; case '2': fp=fopen("store.txt","r"); fseek(fp,0,0); rewind(fp); while(fread(&s,sizeof(s),1,fp)==1) printf("\n itemcode" ); printf(" item_name"); //printf("\n per_case_qty"); //printf("\n case_qty"); printf(" total_qty"); //printf("\n per_unit_price"); printf(" transport"); printf(" profit"); printf(" vat"); //printf("\n octory"); printf(" retail_price"); a=fread(&s,sizeof(s),1,fp); do { printf("\n %s",s.item_code); printf(" %s",s.item_name); //printf(" %d",s.per_case_qty); //printf(" %d",s.case_qty); printf(" %d",s.total_qty); //printf(" %f",s.per_unit_price); printf(" %f",s.transport); printf(" %f",s.profit);

printf(" %f",s.vat); //printf(" %f",s.octory); printf(" %f",s.retail_price); a=fread(&s,sizeof(s),1,fp); } while(a>0); fclose(fp); getch(); break; case '3': fp=fopen("store.txt","a+"); another='y'; while(another=='y') { printf("\n Enter the item_code of item to modify..."); scanf("%s",&itemcode); rewind(fp); while(fread(&s,sizeof(s),1,fp)==1) { if(strcmp(s.item_code,itemcode)==0) { printf("\n item_code....%s",s.item_code); //scanf("%s",&s.item_code); printf("\n item_name...%s",s.item_name); //scanf("%s",&s.item_name); printf("\n per_case_qty...."); scanf("%d",&s.per_case_qty); printf("\n case_qty...."); scanf("%d",&s.case_qty); printf("\n total_qty...."); s.total_qty=s.per_case_qty * s.case_qty; printf("%d",s.total_qty); printf("\n per_unit_price....."); scanf("%f",&s.per_unit_price); printf("\n transport....."); scanf("%f",&s.transport); printf("\n profit.....");

scanf("%f",&s.profit); printf("\n vat....."); scanf("%f",&s.vat); printf("\n octory....."); scanf("%f",&s.octory); printf("\n retail price....."); s.retail_price=s.per_unit_price + s.transport + s.profit + s.vat + s.octory; printf("%f",s.retail_price); fwrite(&s,sizeof(s),1,fp); fclose(fp); } else { printf(" Record not found"); } } printf("\n Modify another records(Y/N)"); fflush(stdin); another=getch(); } break; case '4': fp=fopen("store.txt","r+"); another='y'; while(another=='y') { printf("\n Enter item_code of item to delete"); scanf("%s",&itemcode); ft=fopen("temp.txt","w+"); rewind(fp); while(fread(&s,sizeof(s),1,fp)==1) { if(strcmp(s.item_code,itemcode)==0) fwrite(&s,sizeof(s),1,ft); } fclose(fp); fclose(ft); remove("STORE.txt"); rename("temp.txt","STORE.txt");

fp=fopen("STORE.txt","r+"); printf("delete another record(Y/N)"); fflush(stdin); another=getche(); } break; case '0': fclose(fp); exit(0); } } }

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:

FUTURE SCOPE OF THE PROJECT


Our project will be able to implement in future after making some changes and modifications as we make our project at a very low level. So the modifications that can be done in our project are: In future one change can be done by adding the fingerprints 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.

S-ar putea să vă placă și