Вы находитесь на странице: 1из 25

National Institute of Electronics and

Information Technology

Project Report

On

Telecome Billing

In partial fulfillment for the award of the degree of


‘O’ LEVEL

Guided by: Submitted by:


Mr. Kaushlendra Thakur Name: Saloni Yadav
Reg No:1138845
(Team Institute, Cantt, Varanasi)
Team Institute Cantt Varanasi

Proforma of the Project Completion Certificate

This is to certify that the Project work done at Saloni Yadav


by Mrs Saloni Yadav NIELIT Registration No. 1138845 In
partial fulfillment of NIELIT‘O’ Level Examination has been
found satisfactory. This report has not been submitted for any
other examination and does not form part of any other course
undergone by the candidate. It is further certifies that he has
appeared in all the four modules of NIELIT‘O’ Level
Examination.

Signature
Name:
(Institute PROV No. /FULL No.)

(or)
Head of the Organization/Division:
Name of the Organization:
Address:

(or)
Name of the Guide/Supervisor:
Qualification:
(Self attested copy of the qualification of the guide/Supervisor to
be attached)

Telecome Billing Page 2


Team Institute Cantt Varanasi

ACKNOWLEDGEMENT
We would like to express our deep gratitude and sincere thanks to all who
helped us to complete this project work successfully.

Our sincere thanks to Mr. Akhilesh Singh (Center Head), for having
provided us facilities to do our project.

We sincerely thankful to Mr.Kaushlendra Thakur project guide, for his


valuable suggestions and guidance at time of need.

Our joy finds no boundary to expose our thanks to the whole faculty, for
extending great help needed for our project.

Great thanks to our family, our project associates, our most valuable dear
friends and all those directly or indirectly helped us in this endeavor.

Last but not the least we thank the Almighty God who makes everything
happen.

Prepared by:

Saloni Yadav

Telecome Billing Page 3


Team Institute Cantt Varanasi

TITLE OF THE PROJECT

Telecome Billing Page 4


Team Institute Cantt Varanasi

CONTENTS

1. Introduction ........................................................................ 6
2. Objective and Problem definition ....................................... 7
3. Analysis and Design ............................................................ 8
4. Technical Tools and Software Specification ........................ 9
5. System User Interface:...................................................... 10
6. Output: ............................................................................. 24
7. Conclusion ........................................................................ 25

Telecome Billing Page 5


Team Institute Cantt Varanasi

Introduction

With this project in C Telecom Billing, you can perform and manage billing operations
like they do in Telecom companies. Here, you can add records with name, phone
number and the amount of payment. You can view, modify, search and delete existing
records.

You can also make payment by providing your phone number instead of name. All data
added or modified are recorded in a file. This project will teach you how to add, list, edit,
search and delete records using file handling.

This project is a console application without graphics. It is compiled in Code::Blocks IDE


using GCC compiler. So, compiling the source codes in other platforms or compiler such as
Turbo C will produce errors.

Telecome Billing Page 6


Team Institute Cantt Varanasi

Objective and Problem definition

Features of Telecom Billing in C:


Simple functions have been used in co-ordination with data structure and file handling. As
the project is relatively short, you can thoroughly go through the whole source code; this
will help you understand data structure and file handling if you know their fundamentals.
You’ll also get the basic idea regarding “how to develop a project” in a very simple manner.

The functions and features used in this project are listed below:

 Add new records: add new data into file with name, phone number and amount to
be paid
 View list of records – lists all telephone billing records (as shown in screenshot 3)
 Modify records – edit the added records; name, phone number and/or amount of
payment can be edited
 View payment – shows amount to be paid
 Search records – search for added/updated records in file
 Delete records – removes data permanently from file

This project is limited to the functions aforementioned. You can add new features as you
like to make this project a better one.

Telecome Billing Page 7


Team Institute Cantt Varanasi

Analysis and Design

Feasibility study

It is both necessary and prudent to evaluate the feasibility of a project at


the earliest possible time. Months or years of effort, thousands and millions of dollars,
and untold professional embarrassment can be averted if an ill-conceived system is
recognized early in the definition phase.

Feasibility and risk analysis are related in many ways. If project risk is great,
the feasibility of producing quality software is reduced. During product engineering,
however, we concentrate our attention on primary areas of interest.

Technical Feasibility

Technical feasibility is the need of hardware and software, which are


needed to implement the proposed system in the organization. Technical requirements are
to be fulfilled to make the proposed system work. This should be necessarily
predetermined so as to make the system more competent.

Economical Feasibility

The Economical feasibility must satisfy the needs of the technical feasibility
and the operational feasibility. It involves the economic feasibility of developing and
implementing the proposed system.

Operational Feasibility

The proposed system should use the internet level then the different types of
end users are involved in the system, so it solves the user’s needs and the organization
needs. And it supports the all users environment.

Telecome Billing Page 8


Team Institute Cantt Varanasi

Technical Tools and Software Specification

The project has been built on a system with the following Configuration:-

Hardware specification

Processor: - Intel PIV or Intel Core processor

RAM: - Near about 128 or 256 MB of RAM

Monitor: - Standard VGA Resolutions

Backup Media: - Compact Disk or DVD can be used.

Software specification

The project has been built on a system with the following Software requirements:-

Operating System: - Compatible Linux GUI Version or Windows OS

Compiler Package: - Compatible Code Block IDE GCC compiler, or Turbo C/C++
compiler

Telecome Billing Page 9


Team Institute Cantt Varanasi

System User Interface:

1.Main Screen

After first screen user need to press Enter Key for next screen

Telecome Billing Page 10


Team Institute Cantt Varanasi

Adding New records: User need to press A or a letter keys. Next type the information

Phone Number:

User Name:

Amount:

Next record will be continuing press any key to new record.

Telecome Billing Page 11


Team Institute Cantt Varanasi

CODING

Telecome Billing Page 12


Team Institute Cantt Varanasi

#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<windows.h>
#include<stdlib.h>
struct subscriber
{
char phonenumber[20];
char name[50];
float amount;
}s;
void addrecords();
void listrecords();
void modifyrecords();
void deleterecords();
void searchrecords();
void payment();
char get;
int main()
{ int password;
int phonenumber;
char choice;

system("cls");

Telecome Billing Page 13


Team Institute Cantt Varanasi

printf("\n\n\n\n\n\n\n\n\n****************************************************
**********");
printf("\n\t\t------WELCOME TO THE TELECOM BILLING
MANAGEMENT SYSTEM---");
printf("\n\t\t****************************************************************");
sleep(2000);
getch();
system("cls");
while (1)
{
system("cls");
printf("\n Enter\n A : for adding new records.\n L : for list of
records");
printf("\n M : for modifying records.\n P : for payment");
printf("\n S : for searching records.");
printf("\n D : for deleting records.\n E : for exit\n");
choice=getche();
choice=toupper(choice);
switch(choice)
{
case 'P':
payment();break;
case 'A':
addrecords();break;
case 'L':
listrecords();break;
case 'M':

Telecome Billing Page 14


Team Institute Cantt Varanasi

modifyrecords();break;
case 'S':
searchrecords();break;
case 'D':
deleterecords();break;
case 'E':
system("cls");
printf("\n\n\t\t\t\tTHANK YOU");
printf("\n\n\n\n\n:\n\tFOR USING OUR SERVICE");
sleep(2000);
exit(0);
break;
default:
system("cls");
printf("Incorrect Input");
printf("\nAny key to continue");
getch();
}
}
}
void addrecords()
{
FILE *f;
char test;
f=fopen("c:/file.ojs","ab+");
if(f==0)
{ f=fopen("c:/file.ojs","wb+");

Telecome Billing Page 15


Team Institute Cantt Varanasi

system("cls");
printf("please wait while we configure your computer");
printf("/npress any key to continue");
getch();
}
while(1)
{
system("cls");
printf("\n Enter phone number:");
scanf("%s",&s.phonenumber);
printf("\n Enter name:");
fflush(stdin);
scanf("%[^\n]",&s.name);
printf("\n Enter amount:");
scanf("%f",&s.amount);
fwrite(&s,sizeof(s),1,f);
fflush(stdin);
system("cls");
printf("1 record successfully added");
printf("\n Press esc key to exit, any other key to add other
record:");
test=getche();
if(test==27)
break;
}
fclose(f);
}

Telecome Billing Page 16


Team Institute Cantt Varanasi

void listrecords()
{
FILE *f;
int i;
if((f=fopen("c:/file.ojs","rb"))==NULL)
exit(0);
system("cls");
printf("Phone Number\t\tUser Name\t\t\tAmount\n");
for(i=0;i<79;i++)
printf("-");
while(fread(&s,sizeof(s),1,f)==1)
{
printf("\n%-10s\t\t%-20s\t\tRs. %.2f /-
",s.phonenumber,s.name,s.amount);
}
printf("\n");
for(i=0;i<79;i++)
printf("-");

fclose(f);
getch();
}
void deleterecords()
{
FILE *f,*t;
int i=1;
char phonenumber[20];

Telecome Billing Page 17


Team Institute Cantt Varanasi

if((t=fopen("c:/temp.ojs","w+"))==NULL)
exit(0);
if((f=fopen("c:/file.ojs","rb"))==NULL)
exit(0);
system("cls");
printf("Enter the phone number to be deleted from the Database");
fflush(stdin);
scanf("%[^\n]",phonenumber);
while(fread(&s,sizeof(s),1,f)==1)
{
if(strcmp(s.phonenumber,phonenumber)==0)
{ i=0;
continue;

}
else
fwrite(&s,sizeof(s),1,t);
}
if(i==1)
{ system("cls");
printf("Phone number \"%s\" not found",phonenumber);
remove("c:/file.ojs");
rename("c:/temp.ojs","c:/file.ojs");
getch();
fclose(f);
fclose(t);
main();

Telecome Billing Page 18


Team Institute Cantt Varanasi

}
remove("c:/file.ojs");
rename("c:/temp.ojs","c:/file.ojs");
system("cls");
printf("The Number %s Successfully Deleted!!!!",phonenumber);
fclose(f);
fclose(t);
getch();
}
void searchrecords()
{
FILE *f;
char phonenumber[20];
int flag=1;
f=fopen("c:/file.ojs","rb+");
if(f==0)
exit(0);
fflush(stdin);
system("cls");
printf("Enter Phone Number to search in our database");
scanf("%s", phonenumber);
while(fread(&s,sizeof(s),1,f)==1)
{
if(strcmp(s.phonenumber,phonenumber)==0)
{ system("cls");
printf(" Record Found ");

Telecome Billing Page 19


Team Institute Cantt Varanasi

printf("\n\nPhonenumber: %s\nName: %s\nAmount:


Rs.%0.2f\n",s.phonenumber,s.name,s.amount);
flag=0;
break;
}
else if(flag==1)
{ system("cls");
printf("Requested Phone Number Not found in our
database");
}
}
getch();
fclose(f);
}
void modifyrecords()
{
FILE *f;
char phonenumber[20];
long int size=sizeof(s);
if((f=fopen("c:/file.ojs","rb+"))==NULL)
exit(0);
system("cls");
printf("Enter phone number of the subscriber to modify:");
scanf("%[^\n]",phonenumber);
fflush(stdin);
while(fread(&s,sizeof(s),1,f)==1)
{

Telecome Billing Page 20


Team Institute Cantt Varanasi

if(strcmp(s.phonenumber,phonenumber)==0)
{
system("cls");
printf("\n Enter phone number:");
scanf("%s",&s.phonenumber);
printf("\n Enter name: ");
fflush(stdin);
scanf("%[^\n]",&s.name);
printf("\n Enter amount: ");
scanf("%f",&s.amount);
fseek(f,-size,SEEK_CUR);
fwrite(&s,sizeof(s),1,f);
break;
}
}
fclose(f);
}
void payment()
{
FILE *f;
char phonenumber[20];
long int size=sizeof(s);
float amt;
int i;
if((f=fopen("c:/file.ojs","rb+"))==NULL)
exit(0);
system("cls");

Telecome Billing Page 21


Team Institute Cantt Varanasi

printf("Enter phone number of the subscriber for payment");


scanf("%[^\n]",phonenumber);
fflush(stdin);
while(fread(&s,sizeof(s),1,f)==1)
{
if(strcmp(s.phonenumber,phonenumber)==0)
{
system("cls");
printf("\n Phone No.: %s",s.phonenumber);
printf("\n Name: %s",s.name);
printf("\n Current amount: %f",s.amount);
printf("\n");
for(i=0;i<79;i++)
printf("-");
printf("\n\nEnter amount of payment :");
fflush(stdin);
scanf(" %f",&amt);
s.amount=s.amount-amt;
fseek(f,-size,SEEK_CUR);
fwrite(&s,sizeof(s),1,f);
break;
}
}
system("cls");
printf("THANK YOU %s FOR YOUR TIMELY PAYMENTS",s.name);
getch();
fclose(f);

Telecome Billing Page 22


Team Institute Cantt Varanasi

Telecome Billing Page 23


Team Institute Cantt Varanasi

Output:

List of Records

Telecome Billing Page 24


Team Institute Cantt Varanasi

Conclusion
This project incorporates all requirements of a Telecom Billing . This system has
been developed as versatile and uses friendly as possible keeping in mind the advanced
features in this technology.

Using such a project helps the organization in minimizing the time and money
consumed in fulfilling the day-to-day functionality’s and cutting down the expenses
incurred on the same. The real world requirement was satisfied by this system which
provides all services …

Using C and Code Block IDE, the project was developed. As a whole, the system was
well planned and designed.

Telecome Billing Page 25

Вам также может понравиться