Vous êtes sur la page 1sur 33

Divyanshu Nishad

TERM PAPER CSE 101 TOPIC: MEDICAL MANAGEMENT STORE

SUBMITTED TO: MS. SHUKHDILPREET KAUR NISHAD

SUBMITTED BY:DIVYANSHU REG. NO-11006877 B.TECH

M.TECH(C.S.E) GROUP -2 ROLL.NO-RD6001B59

1| Page

Divyanshu Nishad

ACKNOWLEDGEMENT

Completing a task is never a one man effort. It is often the result of valuable contribution of a number of individuals in a direct or indirect manner that helps in shaping and achieving an objective. It is very difficult for anyone to complete a project without the active cooperation and the benefit of the advice from the people who are experts in their field of specialization. The satisfaction and euphoria that accompanies the successful completion of any task would not be complete without the mention of the people who made it possible With due honor, We want to thank all the personalities who made us able to do this interesting work. First of all we would like to thank lovely professional university for giving us this opportunity to carry out this minor project at their esteemed institution. We are grateful to our honorable faculty who provided all the facility. We acknowledge the earnest suggestions given to us by Ms. Shukhdilpreet Kaur, lec in cse.

- DIVYANSHU NISHAD

2| Page

Divyanshu Nishad

INDEX

1. Project proposal
2. Software development cycle requirements

3. Software development cycle 4. Coding. 5. Testing and debugging. 6. Maintenance and redesigning. 7. References.

3| Page

Divyanshu Nishad

PROJECT PROPOSAL
A transfer is a lateral move to a position in the same classified pay range (classified position) or to a position with comparable duties and responsibilities (non-classified positions). Eligibility:All non-faculty employees are eligible for transfer after being employed in their present position for atleast three months. In addition, an employee must have been performing in a satisfactory manner in his/her current job. Exceptions to the three month employment requirement may be authorized by the President on a case-by-case basis. Procedures:Employees are considered as candidates for transfer in the following order or priority: a. Eligible employees in same department as the job opening b. Eligible employees in other departments who have requested a transfer c. Eligible employees being considered for lay-off due to a reduction in force Employees desiring a transfer will submit a written request for transfer to his/her department head. The employee should identify the specific vacancy in which they are interested. The department head will forward the request to the Department of Human Resources for recommended action. The Department of Human Resources will determine whether the desired job or a suitable job opening exists. If a suitable job is available, the Department of Human Resources will arrange for the employee's application to be reviewed by the department in which opening exists. Employees will be allowed time off with pay for job interviews related to transfers. The decision to effect the transfer will be made by the head of the department in which the job

4| Page

Divyanshu Nishad

opening occurs. An employee who is transferred to a comparable job (lateral transfer) will continue to receive his/her existing rate of pay.

A person from any department should be able to

login to the system through the first page of the application using the guest login

Enter the details of the required in the form available. This form also captures the details like, name , contact no., and designation of the person.

He/She can opt to transfer his employee for any job or if his/her request is very specific then he/she can submit his/her request.

As soon as a transfer request /withdrawal /cancellation is made by the person, an automatic email should be sent to the employee transfer coordinator giving details about the employer .

5| Page

Divyanshu Nishad

Software development cycle


The purpose of professional programming is to deliver a product that satisfies its users. Software engineers have been trying various tools, methods and procedures to control the process of software development in order to build high quality software with improved productivity. The methods provide how to do for building the software while the tools provide automated or semi-automated support for the methods. They are used in all the stages of software development process, namely, planning, analysis, design, development and maintenance. The software development procedures integrate the methods and tools together and enable rational and timely development of software system. They provide guidelines as to how to apply the methods and tools, how to produce the deliverables at each stage, what controls to apply, and what milestone to use to assess the progress.

Software development components


There exist a number of software development paradigms, each using a different set of methods and tools. The selection of a particular paradigm depends on the nature of the application, the programming language used, and the controls and deliverables required.

6| Page

Divyanshu Nishad

The development of a successful system depends not only on the objectives of the system. A successful system must: 1. Satisfy the user requirements, 2. Be easy to understand by the user and operators, 3. Be easy to operate, 4. Have a good user interface, 5. Be easy to modify, 6. Be expandable, 7. Have adequate security controls against misuse of data, 8. Be delivered on schedule within the budget. 9. System requirements should be fulfilled by the software. 10. Software should be feasible.

7| Page

Divyanshu Nishad

HARDWARE AND SOFTWARE REQUIREMENTS

Hardware Requirements The present project has been built using a Multimedia Machine with the following configuration: -

Processor Hard Disk Drive RAM

: : :

Pentium IV 3.0 GHZ 80 GB 256 MB

However, the minimum configuration that is required to run the present system includes: o Pentium or Celeron Processor o 128 MB RAM (256 MB recommended) o 10 MB of free Hard Disk Space

Software Requirements The operating system that has been used as a platform to build up the project is Windows 98, although it can run very well on Windows XP too. Besides this the system which is to be used for running the present project should have Turbo C installed.

CODING :
#include<stdio.h>
8| Page

Divyanshu Nishad

#include<conio.h> #include<dos.h> void record(FILE *p); void check(FILE *p); struct medical { char name[25]; int price; int quantity; }; struct order { char m_name[25]; int m_q; }; struct sell { char mn[25]; int nm; }; void main() {
9| Page

Divyanshu Nishad

FILE *p; struct medical m[25]; struct order o[25]; struct sell s[25]; char md[25],mn[25],c,c1,e,f,n; int a,b,q,i,num,j,sum=0;

clrscr(); again: clrscr(); textbackground(GREEN); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("################################################################## ##############"); printf("################################### #################################"); printf("################################################################## ##############\n"); printf("1: Sell\n2: Order\n3: Add medicine in your Stock\n4: Check your Stock\n5: Delete your Record\n6: Exit\n");
10 | P a g e

MAIN

MENU

Divyanshu Nishad

scanf("%d",&a); printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); if(a==1||a==2||a==3||a==4||a==5||a==6) { switch(a) { case 1: clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("Sell:\n\n"); printf("How many medicine you want to sell\n"); scanf("%d",&num);
11 | P a g e

Divyanshu Nishad

printf("Enter medicine name: and number of medicine\n"); p=fopen("asha.txt","r"); for(i=0;i<num;i++) { scanf("%s",s[i].mn); fflush(stdin); scanf("%d",&s[i].nm); fflush(stdin); j=0; for(j=0;j<25;j++) { if(mn[i]==m[j].name,m[j].quantity>0,s[i].nm<=m[j].quantity) { fscanf(p,"%s%d%d",&m[j].name,&m[j].price,&m[j].quantity); sum=sum+m[j].price;j++; m[j].quantity=m[j].quantity-s[i].nm; } else printf("this medicine is Not available right now\n"); break; } rewind(p);
12 | P a g e

Divyanshu Nishad

} fclose(p); printf("do you want to print slip [Y/N]\n"); c=getchar(); fflush(stdin); if(c=='y'||c=='Y') { printf("Madicine name\t\t\tQuantity\n"); for(i=0;i<num;i++) { printf("%s\t\t\t\t%d\n",s[i].mn,s[i].nm); } printf("_______________________________________________________________\n"); printf("Total :\t\t\t\t%d",sum); printf("\n_______________________________________________________________\n "); } else goto again;

printf("\n\nDo you want to continue\t[Y/N]\n"); scanf("%c",&c);

13 | P a g e

Divyanshu Nishad

fflush(stdin); if(c=='Y'||c=='y') { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); goto again; } else { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf(".");
14 | P a g e

Divyanshu Nishad

sleep(1); goto yesno; }

break;

case 2: clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("Order:\n\n"); printf("Enter Whole Quantity of medicine :\t"); scanf("%d",&n); fflush(stdin);

for(i=0;i<n;i++) { printf("Enter Medicine name :\t"); scanf("%s",&o[i].m_name); fflush(stdin);


15 | P a g e

Divyanshu Nishad

printf("Number of this madicine:\t"); scanf("%d",&o[i].m_q); fflush(stdin); } printf("Do you want to print slip\t[Y/N]\n"); scanf("%c",&f); fflush(stdin); if(f=='y'||f=='Y') { clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("\n\nYour Order is :\n\n"); printf("SR: Medicine name\tQuantity\n"); for(i=0;i<n;i++) printf("%d : %s\t\t\t%d\n",i+1,o[i].m_name,o[i].m_q); } printf("\n\nDo you want to continue\t[Y/N]\n"); scanf("%c",&c); fflush(stdin);
16 | P a g e

Divyanshu Nishad

if(c=='Y'||c=='y') { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); goto again; } else { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1);
17 | P a g e

Divyanshu Nishad

goto yesno; } break;

case 3: clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("Add medicine in your Stock:\n\n"); record(&p); printf("\n\nDo you want to continue\t[Y/N]\n"); scanf("%c",&c); fflush(stdin); if(c=='Y'||c=='y') { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf(".");
18 | P a g e

Divyanshu Nishad

sleep(1); printf("."); sleep(1); goto again; } else { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); goto yesno; }

break;

case 4:
19 | P a g e

Divyanshu Nishad

clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n");

printf("Check your Stock:\n\n"); check(&p); fflush(stdin); printf("\n\nDo you want to continue\t[Y/N]\n"); scanf("%c",&c); fflush(stdin); if(c=='Y'||c=='y') { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1);
20 | P a g e

Divyanshu Nishad

goto again; } else { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); goto yesno; } break; case 5: clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("Are sure to Delete your record\t[Y/N]\n\n");
21 | P a g e

Divyanshu Nishad

fflush(stdin); c=getchar(); if(c=='y'||c=='Y') remove("asha.txt");

else goto again; fflush(stdin); printf("\n\nDo you want to continue\t[Y/N]\n"); scanf("%c",&c); fflush(stdin); if(c=='Y'||c=='y') { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); goto again;
22 | P a g e

Divyanshu Nishad

} else { printf("\nLoading"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); goto yesno; } break;

default : clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System");

23 | P a g e

Divyanshu Nishad

printf("\n_________________________________________________________________ _______________\n");

} } else { printf("\n\nyou Entered Wrong Key,Please Try Again\n"); sleep(2); goto again; } yesno: clrscr(); printf("__________________________________________________________________ ______________\n"); printf("\t\tWelcome to Medical Store management System"); printf("\n_________________________________________________________________ _______________\n"); printf("Made by : \n"); printf("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@"); printf("\t\t\t\tDivyanshu Nishad");

24 | P a g e

Divyanshu Nishad

printf("\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@"); printf("\n\nPlease wait"); sleep(1); printf("."); sleep(1); printf("."); sleep(1); printf("."); sleep(1); }

void record(FILE *p) { int q,i; struct medical m[25]; printf("How many Medicine you want to add :\t\t"); scanf("%d",&q); fflush(stdin); p=fopen("asha.txt","a"); fprintf(p,"\nMedicine Name\t\tPrice\t\t\tQuality\n"); printf("Enter\n");
25 | P a g e

Divyanshu Nishad

for(i=0;i<q;i++) { fflush(stdin); printf("medicine name : "); gets(m[i].name); printf("price : "); scanf("%d",&m[i].price); fflush(stdin); printf("Quantity : "); scanf("%d",&m[i].quantity); fflush(stdin); fprintf(p,"\n\n%s\t\t\t%d\t\t\t%d",m[i].name,m[i].price,m[i].quantity); } fclose(p); printf("Your Medicine added in your stock\n"); return(0); }

void check(FILE *p) { struct medical m[25];


26 | P a g e

Divyanshu Nishad

char c; p=fopen("asha.txt","r"); if(p==NULL) printf("No Record was found in your Stock\n\n"); else { while((c=getc(p))!=EOF) { printf("%c",c); } } fclose(p); return(0); } linkfloat() { float a=0,*b; b=&a; a=*b; } In computer science, code is any collection of statements or declarations written in some human-readable computer programming language. Code allows the programmer to communicate with the computer using a reserved number of instructions.
27 | P a g e

Divyanshu Nishad

The code which constitutes a program is usually held in one or more text files, sometimes stored in databases as stored procedures and may also appear as code snippets printed in books or other media. A large collection of code files may be organized into a directory tree, in which case it may also be known as a code tree. A computer program's code is the collection of files needed to convert from humanreadable form to some kind of computer-executable form. The code may be converted into an executable file by a compiler, or executed on the fly from the human readable form with the aid of an interpreter. The code base of a programming project is the larger collection of all the source code of all the computer programs which make up the project. We have discussed here some special codes, which play an important part in our project:

TESTING: Front Page:

28 | P a g e

Divyanshu Nishad

Exit From Program

29 | P a g e

Divyanshu Nishad

It is the major quality control measure employed during software development. Testing is the process of executing a program with the intention of finding an error. No piece of code is completely ready unless it has been fully tested. This stage is very important as it is certified whether the code developed meet the requirement specification or not. More over validations are also checked in the testing stage. Need for Testing Testing is vital to the success of the system. Testing may the logical assumption that all the part of the system are correct and the goal is successfully achieved. Inadequate testing leads to then error that may not appear until month later. A small system error can explode into a much larger problem. Second reason for testing is its utility as an useroriented vehicle before implementation. Finally testing leads to software reliability. This increases user confidence in the system. Levels of Testing The basic levels of testing are Functional Testing

30 | P a g e

Divyanshu Nishad

Structural Testing Unit Testing Integrity Testing

These different levels of testing attempt to detect different types of faults. The relation of faults introduced in different phases and different levels of testing are shown here.

Functional Testing

This testing was done on a large scale. Each and every form of the project was tested to check whether it performs the associated function in a proper manner for which it has been prepared. In functional testing the structure of the program is not considered. Test cases are decided on the basis of the requirements or specification of the program code or module and the internal of the module or the program are not considered for selection of test cases. This is often called black box testing. Test case for functional testing are decided from the module specification produced from the design.

Structural Testing:

It is considered with testing the implementation of the program. The structural testing is not to exercise all the different input/output conditions but to exercise the different programming structure used in the program. This is also known as glass-box testing and white box testing methods and is conducted to ensure that:

All independent paths within a module have been exercised at


least once.
31 | P a g e

Divyanshu Nishad

All logical decisions on their true and false sides are exercised. Loops are executed at their boun daries and within their
operational bounds.

When I test the program there were various errors ,some of the those errors are reported in this report like: 1. Accessing the private data members outside the class 2. Functions prototype mismatching.

MAINTENENCE AND REDESIGNING:


The proposed system with its efficiencies in reducing processing speeds, better quality services and superior decisions will be worth implementing for future applications. This system will be used to handle a lot of works which in turn will save Energy; Time & Provide better services to the Staff of the Post- Office. This software can be easily used by them as it aims at providing them with a record of all the Letters and also helps them in feeding relevant information about them which can be recalled whenever required. It also generates relevant reports and queries, which may be required by them. Thus, it can be successfully used by the end users i.e. Office bearers. Thus, the main advantages of the proposed system will be Speed, Accuracy & quality of services in generating reports and queries for better decisions. There is need of proper maintenance of the files in which information is stored. Proper backup of files should be there. This project can be further enhanced by adding more features like various kinds of speed posts and registries records.

32 | P a g e

Divyanshu Nishad

REFERENCES

Tickets: 1) Let us c by Yashvant Kanetkar. 2) Programming with C by Byron S Goyffried. 3) Guidance in Shukhdilpreet Kaur.

33 | P a g e

Vous aimerez peut-être aussi