Documente Academic
Documente Profesional
Documente Cultură
Project file
__________________ __________________
It is matter of great pleasure for me to present my project
report on
“Telephone Billing System”
-Abhay Pandey
Hardware and Software
Specifications:
The program is developed on Intel i3 processor with 4GB
RAM, Window 10 operating system. Compiler used turbo
C++ vr.2.3
Minimum hardware requirements:
Processor: Pentium III
Ram: 512 MB
Hard disk: 20 GB.
Inject Printer, to print the required documents of the
Project
Compact Drive
Software requirements:
Operating system: Windows XP
Ms Word, for presentation of output.
Borland C++ vr.6.3, for execution of program.
Content At Glance
Abstract
Class Description
Source Code
Output
Bibliography
Abstract:
The following program is based upon the Telephone Billing
System used in different call centres. In this person is allowed to
generate the bills of their users without any manual
work which is saved electronically.
It consists functions:
1.void add(): used to add details of new customers
2. void modify(): used to modify the details of a customer
3. void del(): used to delete the of the customer
4. void display(): used to display the details of the customer
5. void generate(): used to generate the bills of the customer
6. void help(): used to displays help documentation to user
How to invoke system?
The void return functions:
1. numdigits():- this returns the number of digits contained in the
passed integer value.
2. mon(): this method converts the month’s value from integer to
string.
3. Account: this is the class releasing the real world entity
customer.
4. Obj:- Of installation of account class , obj is primarily used to
work with the data at hand and update it in the database file.
5. db.dat:- this is the primary database file which stores all the
backened data for the application.
#include<iostream.h>
#include<fstream.h>
#include<iomanip.h>
#include<math.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#include<ctype.h>
#include<dos.h>
//**********************************************************
//CLASS USED IN PROJECT
//**********************************************************
class account
{
char name[30];
char address[60];
long acc_no;
long phone_no;
public:
void add();
void modify();
void del();
void display();
void generate();
void help();
};
account obj;
int bil_ctr=1;
int numdigits(long n)
{
return(log10(n)+1);
}
char *mon(int m)
{
switch(m)
{
case(1):
return(“Jan”);
case(2):
return(“Feb”);
case(3):
return(“Mar”);
case(4):
return(“Apr”);
case(5):
return(“May”);
case(6):
return(“Jun”);
case(7):
return(“Jul”);
case(8):
return(“Aug”);
case(9):
return(“Sep”);
case(10):
return(“Oct”);
case(11):
return(“Nov”);
case(12):
return(“Dec”);
}
}
//**********************************************************
// THE MAIN FUNCTION OF PROGRAM
//**********************************************************
void main()
{
char ch1,ch2;
while(1)
{
clrscr();
gotoxy(30,5);
cout<<“Supreme Telecom Pvt. Ltd.”;
gotoxy(30,6);
cout<<“_________________________”;
gotoxy(30,8);
cout<<“‘M’anage Customer Records”;
gotoxy(30,10);
cout<<“‘D’isplay list of customers”;
gotoxy(30,12);
cout<<“‘G’enerate Bill”;
gotoxy(30,14);
cout<<“‘H’elp”;
gotoxy(30,16);
cout<<“‘E’xit”;
gotoxy(30,30);
cout<<“Enter your choice ”;
ch1=getch();
ch1=toupper(ch1);
switch(ch1)
{
case(‘D’):
obj.display();
break;
case(‘G’):
obj.generate();
break;
case(‘H’):
obj.help();
break;
case(‘E’):
clrscr();
exit(1);
case(‘M’):
ch2=’A’;
do
{
clrscr();
gotoxy(30,5);
cout<<“Supreme Telecom Pvt. Ltd.”;
gotoxy(30,6);
cout<<“_________________________”;
gotoxy(30,8);
cout<<“‘A’dd new record”;
gotoxy(30,10);
cout<<“‘M’odify existing record”;
gotoxy(30,12);
cout<<“‘D’elete existing record”;
gotoxy(30,14);
cout<<“‘E’xit”;
gotoxy(30,30);
cout<<“Enter your choice”;
ch2=getch();
ch2=toupper(ch2);
switch(ch2)
{
case(‘A’):
obj.add();
break;
case(‘M’):
obj.modify();
break;
case(‘D’):
obj.del();
break;
case(‘E’):
break;
}
}while(ch2!=‘E’);
}
}
}
//****************************End of del()************************//
//**********Function for displaying customer records*********//
void account :: display()
{
fstream fptr1;
int count;
fptr1.open(“db.dat”,ios::in);
if(fptr1.fail())
{
cout<<“Cannot open the db.dat file!”;
getch();
return;
}
clrscr();
gotoxy(2,2);
cout<<“Name”;
gotoxy(2,3);
cout<<“____”;
gotoxy(30,2);
cout<<“Phone No”;
gotoxy(30,3);
cout<<“_________”;
gotoxy(55,2);
cout<<“Account Number”;
gotoxy(55,3);
cout<<“______________”;
count=4;
while(fptr1.read((char *)this,sizeof(obj)))
{
if(count>=19)
{
gotoxy(30,30);
cout<<“Name cout<<“Press any key to continue”;
getch();
clrscr();
gotoxy(2,2);
”;
gotoxy(2,3);
cout<<“____”;
gotoxy(30,2);
cout<<“Phone No”;
gotoxy(30,3);
cout<<“_________”;
gotoxy(55,2);
cout<<“Account Number”;
gotoxy(55,3);
cout<<“______________”;
count=4;
}
gotoxy(2,count);
cout<<name;
gotoxy(30,count);
cout<<phone_no;
gotoxy(60,count);
cout<<acc_no;
count++;
}
gotoxy(22,30);
cout<<“Press any key to go back the previous menu ”;
getch();
fptr1.close();
}
//**********************End of display()***********************//
{
Output
gotoxy(40,20);
cout<<“Helps
clrscr();
gotoxy(1,22);
gotoxy(1,2);
to generate a telephone bill”;
cout<<“H’elp-”;
cout<<“Telephone Billing System is a command-driven application that helps manage”;
gotoxy(40,22);
gotoxy(1,4);
cout<<“Provides
cout<<“recordshelp
of the
documentation”;
customers as well as generate their telephone bills. ”;
gotoxy(1,24);
gotoxy(1,8);
cout<<“E’xit-”;
cout<<“Press any key to continue...”;
gotoxy(40,24);
getch();
cout<<“Exits
gotoxy(1,8);the current screen/application”;
clreol();
gotoxy(45,45);
gotoxy(15,8);
cout<<“Press any key to go back..”;
getch();
cout<<“Option”;
} gotoxy(15,9);
cout<<“______”;
gotoxy(55,8);
//****************************End
cout<<“Description”; of help()******************************//
gotoxy(55,9);
cout<<“___________”;
gotoxy(1,10);
cout<<“‘M’anage Customer Records”;
gotoxy(40,10);
//********************************************************************//
cout<<“Helps to manipulate customer records”;
//********************End
gotoxy(1,12); Of Program***********************************//
// cout<<“
********************************************************************//
‘A’dd new record-“;
gotoxy(40,12);
cout<<“Adds a new customer record”;
gotoxy(1,14);
cout<<“ ‘M’odify existing record-”;
gotoxy(40,14);
cout<<“Modifies an existing customer record”;
gotoxy(1,16);
cout<<“ ‘D’elete existing record-”;
gotoxy(40,16);
cout<<“Deletes an existing customer record”;
gotoxy(1,18);
cout<<“‘D’isplay list of customers-”;
BIBLOGRAP
The productivity of the software can be increased by
increasing security and could provide different access for
different users to do specific work only like for a employee worker is
HY
to change the data of record and for a user to only view
bills to be paid. Also, the other authorities can have
right to remove, delete , update software.
COMPUTER SCIENCE IN
C++ BY SUMITA ARORA