You are on page 1of 64

A PROJECT REPORT ON

MOBILE BILLING SYSTEM


(Using C)
Submitted To

KURUKSHETRA UNIVERSITY, KURUKSHETRA


In partial fulfillment of requirement for the award of

BACHELOR OF COMMERCE (B.Com-III)


(Session 2011-2012)

UNDER GUIDENCE TO: Ms. PUNITA CHOPRA LECT. OF COMP SCI. & APP.

SUBMITTED BY: RICHA SETHI B.Com III Roll No. 1760

University Roll No.0099057

HINDU GIRLS COLLEGE JAGADHRI (HARYANA)

ACKNOWLEDGEMENT

ACKNOWLEDGEMENT

First of all, I would like to thank the supreme power, the almighty GOD who has always guided us to work on the right path of our life. Without his grace this project could not become a reality.

I feel obliged in taking the opportunity to thanks Dr. Mrs. Ujawal Sharma (Principal of HINDU GIRLS COLLEGE) and my worthy thanks to Mrs. Sonia Sharma, Head Of Computer Science & Application ).

I would also like to thanks to Ms. Punita Chopra, Head of Computer Incharge for her valuable support and esteemed guidance in making this project.

(RICHA SETHI)

PREFACE

PREFACE
In ever facing widening modern world, the present system of education is

new challenges . It is well known fact that today is the age of

computers. The major achievement of science and technology. Now-a-days everyone is realizing the importance of computer which of modern age in fifth generation of computers. In the modern era of science and technology as a powerful nation. India is still lagging behind due to dis advancement in computer technologies. is achievement

This problem can be overcome only when the youth of India of the present generation give full co-operation in raising India as a powerful nation by learning more and more computer. This degree course aims at providing the student knowledge about the

various applications of the computers. So, it is necessary to jump in the practical field. Hence, I was assigned this project which is part of my subject .

INDEX

INDEX
Introduction to problem area Existing System Proposed system Hardware & Software Requirement System design Input Design Output Design File Design DFD Coding Outputs Advantages of the project Limitations of the project Further scope Conclusion References

INTRODUCTION TO PROBLEM AREA

INTRODUCTION TO PROBLEM AREA

In the earlier Mobile Billing System work is done manually. This involves a lot of paper work. If there are less number of Customers and

Mobile service then a person can remember each and every record but in a case of large data a single mind cannot remember every Mobiles

detail. So , if the system is done manually it will be very complicated. T-Mobile Bill Analyser gives you the ability to view and analyse your usage (calls, texts, picture messaging and data).Using this simple online service, you can: View and analyse your usage Create reports based on that data Please note: The Personal Usage section in this user guide is only applicable if your company uses Splitbill. Splitbill allows you to differentiate your personal and business usage through a tagging process. Your Bill Analyser administrator will be able to tell you if you are participating. A note on browsers: Great care has been taken to optimise this service for use across all Internet Explorer browsers. However Bill Analysers advanced functionality relies on web standards that some older browsers do not fully support. As a result, some users may encounter problems when using older browsers. T-Mobile recommends using the latest version of Internet Explorer. This is free of charge and easy to install. You may wish to contact your IT department for help if you are experiencing problems with this service.

EXISTING SYSTEM

10

EXISTING SYSTEM

A existing system causes delay in daily reports because of large volume of data as well as calculations .There is a lack of privacy and chances of delicacy in the records in such system. The quality of report goes on diminishing after some time, if there is large amount of work is to be carried out. In existing system modifications and maintenance is difficult task as books become so heavy and bulky. In the existing system the record of subscriber is arranged manually till date which is tiresome job and for that reasons some times late calculations of the record may lead to delay in billing and their mailing and due to which subscriber has suffer. The manual record maintenance leads to wastage of time as well as money as their lots of stationary is used to maintain the record of Customers. Lots of manpower is also essentials for this process.

11

PROPOSED SYSTEM

12

PROPOSED SYSTEM

With the increasing number of Mobile service and Delivery Schedule it becomes difficult for the Organization to maintain the different records and data. I have prepared Mobile Billing System this will comprise of following modules: Customer details: This module will show the details of Customer code, name, address, mobile no., local call and STD call. Charges details: This module will show the details of local charges, STD charges, local SMS, National charges and National SMS.

Billing details: This module will show the details of Mobile No., name address, local phones, STD calls, national calls, national SMS and service tax. Final bill will calculate after deducting service tax.

This system also gives the facility for maintaining information about different Customer Addition, Charges addition and display

bills as well as different customers bill details .

13

HARDWARE & SOFTWARE REQUIREMENTS

14

Hardware requirements:The hardware facilities which are required in ordered to cope with the propose applications are as follows:Minimum hard disk 60 MB (approx.). Minimum ram 64 MGB A printer forgetting hard copy.

Software requirements:The minimum software requirements for the proposed application would be as follow:

Operating system : window 98 C language:

15

SYSTEM DESIGN

16

SYSTEM DESIGN

The system design is similar to objective of system. It gives complete information about the system as output, input and file design. System design is basically the description of the project i.e. how the project works.

Input:: Input is a raw data given to any system for processing. Input design specifies the fields which are used to enter information in to the system.

All the calculations are to be performed on these fields and should be clearly defined. Input design of the system is as follows:

Output: Output from computer system is required to communicate the results of processing to users. They are also used to provide a permanent copy of these results for later use. The outputs are designed in to two formats:

Bill Calculation form: -Call charges are calculated according to calls made by each customer.

17

-SMS charges are calculated according to the no. of messages. -Total bill is the summation of diff. call charges and SMS charges. -Balance is calculated by subtracting total bill from the talk time.

Reports: Customers report shows the complete details of the customers such as name, code, mobile no. Charges report shows the calls and SMS charges. Billing report shows the final bill of the customers after deducting service tax.

Cust Details code name strno sname city state mobno local std
18

Charges Details Lcharg Scharg lsms ncharg nsms

Bill Details mn name sno sname city state lp

sc
19

ls nc ns total st fb

20

File design: File is a collection of records. File is to be designed in such a way that it does not contain any duplicate entities or attribute. File design of the system is as follows:

21

Cust Detail Fieldname


Code Name Strno Sname City State Mobno Local

data type
int character character character character character character double

width

20 20 20 20 20 20

Std Charges Details Fieldname Lcharg Scharg Lsms Ncharg Nsms

double

data type double double double double double

width

22

Bill Details Fieldname Mn Name Sno Sname City State Lp Sc Ls Nc Ns Total St Fb data type character character character character character character double double double double double double double double width 20 20 20 20 20 20

23

24

DFD

25

DFD

26

CODING

27

CODING
/* Mobile Billing System */ #include<stdio.h> #include<conio.h> #include<graphics.h> void front(); void cust_info(); void charg_info(); void charg_info1(); FILE *fp,*fp1; int c,r,i,ch,ch1,id,cd,cc,flag,recsize; double lp,sc,ls,nc,ns,total,fb,st; char conf,save,upd,sure,mn[12],pd[15]; struct mobile { int code; char name[20]; char sno[10]; char sname[20]; char city[20]; char state[20]; char mobno[12]; double local; double std;
28

}; struct mobile mb; struct charges { double lcharg; double scharg; double lsms; double ncharg; double nsms; }; struct charges charg; void front() { int c,r,j=1; int x1=10; int y=10; int x2=10; int y1=20; int gd=DETECT,gm; initgraph(&gd,&gm," "); setfillstyle(SOLID_FILL,LIGHTGRAY); bar(0,0,640,480); setlinestyle(0,0,3); setcolor(4); line(30,120,620,120); line(30,120,30,270);
29

line(30,270,620,270); line(620,270,620,120); line(40,130,610,130); line(40,130,40,260); line(40,260,610,260); line(610,260,610,130); settextstyle(TRIPLEX_FONT,HORIZ_DIR,7); outtextxy(80,165,"MOBILE BILLING SYSTEM"); setfillstyle(SOLID_FILL,BLUE); bar(100,420,500,440); settextstyle(SMALL_FONT,HORIZ_DIR,5); outtextxy(120,423,"Welcome to Mobile Billing System "); while(!kbhit()) { setcolor(j); circle(x1,y,5); circle(x2,y1,5); delay(10); j++; x1=x1+50; y1=y1+50; if(j>15) { j=1; } if(x1>640)
30

{ x1=10; } if(y1>480) { y1=20; } } getch(); closegraph(); } void screen(const char *ch){ c=28;r=1; gotoxy(c,r); for(i=1;i<=25;i++){ printf("*");} r++; for(i=1;i<=2;i++){ gotoxy(c,r); printf("*"); r++;} r--; c++; gotoxy(c,r); for(i=1;i<=24;i++){ printf("*");} c=52;
31

r--; for(i=1;i<=1;i++){ gotoxy(c,r); printf("*"); r--;} c=31; r=2; gotoxy(c,r); printf("%s",ch); c=16; r=4; gotoxy(c,r); for(i=1;i<=44;i++){ printf("*");} r=r+1; for(i=1;i<=19;i++){ gotoxy(c,r); printf("*"); r=r+1;} c=c+1; gotoxy(c,--r); for(i=1;i<=43;i++){ printf("*");} r=r-1; c=59; for(i=1;i<=18;i++){ gotoxy(c,r);
32

printf("*"); r=r-1;}} void screen1(const char *ch) { c=28; r=1; gotoxy(c,r); for(i=1;i<=25;i++) { printf("*"); } r++; for(i=1;i<=2;i++) { gotoxy(c,r); printf("*"); r++; } r--; c++; gotoxy(c,r); for(i=1;i<=24;i++) { printf("*"); } c=52; r--;
33

for(i=1;i<=1;i++) { gotoxy(c,r); printf("*"); r--; } c=32; r=2; gotoxy(c,r); printf("%s",ch); c=5; r=6; gotoxy(c,r); for(i=1;i<=70;i++) { printf("*"); } r=r+1; for(i=1;i<=16;i++) { gotoxy(c,r); printf("*"); r=r+1; } c=c+1; gotoxy(c,r); for(i=1;i<=69;i++)
34

{ printf("*"); } r=r-1; c=74; for(i=1;i<=16;i++) { gotoxy(c,r); printf("*"); r=r-1; } } void cust_info() { c=20; r=6; gotoxy(c,r); printf("Code\t "); scanf("%d",&mb.code); gotoxy(c,r=r+2); printf("Name\t "); scanf("%s",&mb.name); gotoxy(c,r=r+2); printf("Address"); gotoxy(c=c+5,r=r+2); printf("StrNo\t\t"); scanf("%s",&mb.sno);
35

gotoxy(c,r=r+1); printf("Sname\t\t"); scanf("%s",&mb.sname); gotoxy(c,r=r+1); printf("City\t\t"); scanf("%s",&mb.city); gotoxy(c,r=r+1); printf("State\t\t"); scanf("%s",&mb.state); gotoxy(c=c-5,r=r+2); printf("Mobile No.\t\t"); scanf("%s",&mb.mobno); mb.local=0; gotoxy(c,r=r+2); printf("Local Call\t\t"); printf("%lf",mb.local); mb.std=0; gotoxy(c,r=r+2); printf("STD Call\t\t"); printf("%lf",mb.std); } void charg_info() { c=20; r=6; charg.lcharg=0.50; gotoxy(c,r);
36

printf("Local Charges(Rs)\t\t"); printf("%lf",charg.lcharg); charg.scharg=2.00; gotoxy(c,r=r+2); printf("STD Charges(Rs)\t\t"); printf("%lf",charg.scharg); charg.lsms=1.00; gotoxy(c,r=r+2); printf("Local SMS(Rs)\t\t"); printf("%lf",charg.lsms); charg.ncharg=2.00; gotoxy(c,r=r+2); printf("National Charg(Rs)\t"); printf("%lf",charg.ncharg); charg.nsms=3.00; gotoxy(c,r=r+2); printf("National SMS(Rs)\t"); printf("%lf",charg.nsms); } void charg_info1() { c=20; r=6; gotoxy(c,r); printf("Local Charges(Rs)\t"); scanf("%lf",&charg.lcharg); gotoxy(c,r=r+2);
37

printf("STD Charges(Rs)\t\t"); scanf("%lf",&charg.scharg); gotoxy(c,r=r+2); printf("Local SMS(Rs)\t\t"); scanf("%lf",&charg.lsms); charg.ncharg=2.00; gotoxy(c,r=r+2); printf("National Charg(Rs)\t"); scanf("%lf",&charg.ncharg); gotoxy(c,r=r+2); printf("National SMS(Rs)\t"); scanf("%lf",&charg.nsms); } void print_charg() { c=20; r=6; gotoxy(c,r); printf("Local Charges(Rs)\t"); printf("%lf",charg.lcharg); gotoxy(c,r=r+2); printf("STD Charges(Rs)\t\t"); printf("%lf",charg.scharg); gotoxy(c,r=r+2); printf("Local SMS(Rs)\t\t"); printf("%lf",charg.lsms);
38

gotoxy(c,r=r+2); printf("National Charg(Rs)\t"); printf("%lf",charg.ncharg); gotoxy(c,r=r+2); printf("National SMS(Rs)\t"); printf("%lf",charg.nsms); } void box() { c=30; r=10; gotoxy(c,r); for(i=1;i<=20;i++) { printf("*"); } r++; for(i=1;i<=7;i++) { gotoxy(c,r); printf("*"); r++; } gotoxy(++c,--r); for(i=1;i<=19;i++) { printf("*");
39

} c=49; r--; for(i=1;i<=7;i++) { gotoxy(c,r); printf("*"); r--; } } void menu(){ c=22; r=6; gotoxy(c,r); printf("1. CUSTOMER DETAIL"); gotoxy(c,r=r+2); printf("2. CHARGES DETAIL"); gotoxy(c,r=r+2); printf("3. BILLING DETAIL"); gotoxy(c,r=r+2); printf("4. ABOUT ME"); gotoxy(c,r=r+2); printf("5. EXIT"); } void aboutme(){ int gd=DETECT,gm; initgraph(&gd,&gm," ");
40

setfillstyle(SOLID_FILL,12); bar(0,0,640,480); setcolor(1); setlinestyle(0,0,3); line(30,120,620,120); line(30,120,30,270); line(30,270,620,270); line(620,270,620,120); line(40,130,610,130); line(40,130,40,260); line(40,260,610,260); line(610,260,610,130); setcolor(14); settextstyle(TRIPLEX_FONT,HORIZ_DIR,7); outtextxy(85,150,"MOBILE BILLING SYSTEM"); setfillstyle(SOLID_FILL,3); bar(100,420,500,440); settextstyle(SMALL_FONT,HORIZ_DIR,5); setcolor(1); outtextxy(150,423,"Your Comments are always Welcomed..."); settextstyle(TRIPLEX_FONT,HORIZ_DIR,3); outtextxy(3255,290,"DEVELOPED BY:"); settextstyle(TRIPLEX_FONT,HORIZ_DIR,2); outtextxy(70,320,"PLATFORM:"); outtextxy(110,355,"C LANGUAGE:"); outtextxy(325,320,"NAME: RICHA SETHI "); outtextxy(325,355,"CLASS: B.COM III (VOC) ");
41

outtextxy(325,385,"ROLL NO: 1760"); getch(); closegraph();} main() { front(); abc: clrscr(); screen("MOBILE BILLING SYSTEM"); menu(); gotoxy(24,20); printf("Enter Your choice\t"); scanf("%d",&ch); switch(ch) { case 1: fp=fopen("mobile","ab"); clrscr(); screen("CUSTOMER DETAIL"); cust_info(); gotoxy(20,24); fflush(stdin); printf("Do You Want to Save (y/n) "); scanf("%c",&save); if((save=='y')||(save=='Y')) {
42

fwrite(&mb,sizeof(mb),1,fp); printf("\n"); printf("Record Saved Successfully"); } else { printf("\n"); printf("Record Not Saved"); } fclose(fp); getch(); goto abc; break; case 2: xyz: clrscr(); fp=fopen("charges","w+b"); clrscr(); screen("CHARGES ADDITION"); charg_info1(); gotoxy(20,24); fflush(stdin); printf("Do You Want to Save (y/n) "); scanf("%c",&save); if((save=='y')||(save=='Y')) { fwrite(&charg,sizeof(charg),1,fp);
43

printf("\n"); printf("Record Saved Successfully"); } else { printf("\n"); printf("Record Not Saved"); } fclose(fp); getch(); goto abc; break; case 3: clrscr(); fp=fopen("mobile","rb"); screen1("BILLING DETAIL"); c=8; r=8; gotoxy(c,r); printf("Mobile No\t"); scanf("%s",&mn); rewind(fp); while(fread(&mb,sizeof(mb),1,fp)!=NULL) { if(strcmp(mb.mobno,mn)==0) { gotoxy(c,r=r+2);
44

printf("Name\t"); printf("%s",mb.name); gotoxy(c,r=r+2); printf("Address"); gotoxy(c=c+5,r=r+2); printf("StrNo\t\t"); printf("%s",mb.sno); gotoxy(c,r=r+1); printf("Sname\t\t"); printf("%s",mb.sname); gotoxy(c,r=r+1); printf("City\t\t"); printf("%s",mb.city); gotoxy(c,r=r+1); printf("State\t\t"); printf("%s",mb.state); break; } } c=40; r=8; gotoxy(c,r); printf("Local Phones\t"); scanf("%lf",&lp); gotoxy(c,r=r+2); printf("STD Calls\t"); scanf("%lf",&sc);
45

gotoxy(c,r=r+2); printf("Local SMS\t"); scanf("%lf",&ls); gotoxy(c,r=r+2); printf("National Calls\t"); scanf("%lf",&nc); gotoxy(c,r=r+2); printf("National SMS\t"); scanf("%lf",&ns); fp1=fopen("charges","rb"); rewind(fp); while(fread(&charg,sizeof(charg),1,fp1)!=NULL) { total=((charg.lcharg*lp)+(charg.scharg*sc)+(charg.lsms*ls)+ (charg.ncharg*nc)+(charg.nsms*ns)); } gotoxy(c,r=r+2); printf("Total\t"); printf("%lf",total); st=total*10/100; gotoxy(c,r=r+2); printf("Ser Tax(10%)\t"); printf("%lf",st); fb=total+st; gotoxy(c,r=r+2); printf("Final Bill\t"); printf("%lf",fb);
46

/*gotoxy(c,r=r+2); printf("Payment Date\t"); printf("%s",&pd);*/ getch(); goto abc; break; case 4: clrscr(); aboutme(); goto abc; break; case 5: clrscr(); gotoxy(10,5); fflush(stdin); printf("Really do you want to Exit(y/n)\t"); scanf("%c",&conf); if(conf=='y' || conf=='Y') { textcolor(GREEN+128); gotoxy(10,8); cprintf("Thanks for using this Project!!!!"); getch(); exit(); }
47

else { printf("\n\n\tPress any key to return to main menu"); getch(); goto abc; } break; default: printf("\n\n\n\n\n\t\tPlease Enter between 1 to 7 only"); getch(); goto abc; break; } getch(); }

48

OUTPUTS

49

OUTPUTS

************************* * MOBILE BILLING SYSTEM ************************* ******************************************** * * * 1. CUSTOMER DETAIL * * * * 2. CHARGES DETAIL * * * * 3. BILLING DETAIL * * * * 4. ABOUT ME * * * * 5. EXIT * * * * * * * * * * * * Enter Your choice * * * * * ********************************************

50

************************* * CUSTOMER DETAIL * ************************* ******************************************** * * * Code 1 * * * * Name LUCKY * * * * Address * * * * StrNo 1 * * Sname Tagore Garden * * City * * State HRY * * * * Mobile No. 9999999999 * * * * Local Call 0.000000 * * * * STD Call 0.000000 * * * ******************************************** Do You Want to Save (y/n)

51

************************* * CHARGES ADDITION * ************************* ******************************************** * * * Local Charges(Rs) 1.00 * * * * STD Charges(Rs) 2.00 * * * * Local SMS(Rs) 0.50 * * * * National Charg(Rs) 2.00 * * * * National SMS(Rs) 1.50 * * * * * * * * * * * * * * * * * ******************************************** Do You Want to Save (y/n)

52

************************* * BILLING DETAIL * ************************* ********************************************************************** * * * Mobile No 9999999999 Local Phones 10 * * * * Name LUCKY STD Calls 15 * * * * Address Local SMS 5 * * * * StrNo 1 National Calls 20 * * Sname Tagore * * City Garden National SMS 5 * * State HRY * * Total 90.000000 * * * * Ser Tax(10%) 9.000000 * * * * Final Bill 99.000000 * *********************************************************************

Really do you want to Exit(y/n) Y Thanks for using this Project!!!!

53

ADVANTAGES OF THE PROJECT

54

ADVANTAGES OF THE PROJECT

The project is identified by the merits of the system offered to the user. The merits of this project are as follows:

This project offers user to enter the data through simple and interactive forms. This is very helpful for the client enter the desired information through so much simplicity.

The user is mainly more concern about the validity of the data whatever he is entering.

Modification can easily be implemented. We can update the records.

User is provided the option of monitoring the records, he entered earlier.

We can say that project is user friendly which is one of the primary concerns of any good project.

Data storage and retrieval will become faster and easier to maintained because data is stored in systematic manner in a single database.

Through this project it will increase the efficiency, accuracy and transparency.

55

56

LIMITATIONS OF THE PROJECT

57

LIMITATIONS OF THE PROJECT

This system is prepared with limited resources and information at our disposal. It may not last long beyond a certain period.

This system can be modified by keeping the latest call details of the customers which can be directly accessed from the database and need not be entered while calculating the bills at the run tine.

58

FURTHER SCOPE

59

FURTHER SCOPE

This

system

can be

used by any Mobile Organization, with small

alterations in the system according to their requirements. This system maintains the details of only limited Charges

details. Provision can be made to record the information about more charges and packs. Provision can also be made to keep the Delivery of bill. Prepaid System module can be added in which card system is required which is suitable for college students.

60

CONCLUSION

61

CONCLUSION
My aim towards this project was to automate the MOBILE SHOP for the help of customer. I have made all the possible efforts to complete this course of study up to the satisfactory level of any mobile shop.

However, we all know that changes is the essential part of the life. This project has the scope of much more improvement so that total objectives can be achieved to their satisfactory level & the best of the out puts in the form of reports can be generated from time to time as per the requirements.

At the last, I would like to say that I have used all the knowledge & courage to complete this project. Any further suggestion to improve the performance of the project are most welcome.

62

REFERENCES

63

REFERENCES

1. Let Us C - Yashwant Kanitkar 2. Programming in C - Balagurusami

64

You might also like