Академический Документы
Профессиональный Документы
Культура Документы
WHITE PAGES
Submitted by:
-1-
CERTIFICATE-I
This is to certify that the project entitled “Yellow Pages and White Pages” is
a bonafied work done by me, Abhishek Gupta under the guidance of
______________________ in fulfillment of requirement of award of BCA by
AMITY, Noida.
Date: _______________________
Countersigned
_______________________
-2-
CERTIFICATE - II
This is to certify that Mr. Abhishek Gupta has planned and conducted the
project entitled “ - Yellow Pages and White Pages” under my guidance and
supervision and the report submitted therewith was the result of bonafide
work done by him.
-3-
DECLARATION
I hereby declare that the work entitled – Yellow Pages and White Pages
submitted for the BCA (course) is my original work carried out by me under
the guidance of _______________________ for the partial fulfillment of the
award of the degree of the Bachelor of Computer Applications. The matter
embodied in this report has not submitted anywhere else for the award of any
other degree/diploma.
_______________________
-4-
TABLE OF CONTENTS
S. Contents
No.
ACKNOWLEDGEMENT
EXECUTIVE SUMMARY
1. INTRODUCTION
1.1 Aim
1.2 Objective
1.3 Application area
1.4 About Crime Investigation Department
2. CONCEPTUAL FRAMEWORK
2.1 Problem Definition
2.2 Identification of need
2.3 History
2.4 Features of C++
2.5 Documentation
Coding
3. METHODOLOGY
4.1 Operational feasibility Study
4.2 Technical Feasibility Study
4.3 Schedule Feasibility Study
4.4 Economical feasibility Study
4.5 Software process model
4.6 Requirement Analysis
4.7 Software & Hardware Requirements
4. DATA COLLECTIONS
5.1 Overall strategy
5.2 Problem with the current system
5.3 Advantages of Computerization
5. ANALYSIS AND INTERPRETATION
6.1 Design Analysis
6.2 Design Methodology
6.3 Flowcharts
-5-
6.4 Dataflow analysis of the current system
6.5 Dataflow Diagram
6.6 Data Dictionary
6.7 System Testing and Implementation
6.8 Testing
6.9 Unit testing
6.10 System testing
6.11 Test conclusion
6. CONCLUSION
9.1 Extent to which the original objectives were met
9.2 User friendly interface
9.3 Project management, consultancy and
communication skills acquired
9.4 Extent to which user requirements were met
7. RECOMMENDATIONS
9.1 Scope of the Project
8. APPENDIX
9. BIBLIOGRAPHY
-6-
ACKNOWLEDGEMENT
The project work mentioned in this report, is the result of cumulative efforts
over a period of an entire year in course of which, I have received intellectual
support from various sources. It is my pleasure to express my profound sense
of gratitude to all those who have contributed richly to this project and have
been highly instrumental in making this a success.
-7-
EXECUTIVE SUMMARY
This s/w will play an important role in future user for contact number
management. At present data from the database and report are created
manually. Need for the system arise due to increasing expenditure of the
company in maintaining records regarding the details of consumers as well as
company (supplier) .Basic need of the project is to keep the details of different
numbers under different category (Business and Person) are registered or
bought..
Many new things were learnt, and full revision of what has been covered to
date in the course was also attained, resulting in a feeling of confidence for
the future, and any other project that may come our way.
-8-
CHAPTER – 1
INTRODUCTION
Before the introduction of computers in office, the office work was done
manually by keeping the information in registers. It is also requires searching
of the registers for particular information.
For Example:
-9-
⇒ It could also help some individual. For example, A person has
couldn’t attend a particular call. And the number is unknown. He
could easily search for the person/company which tried to reach him.
⇒ Easy to operate
⇒ Less Space.
⇒ Fast Retrieval.
APPLICATION AREA
The project undertaken can be used in any country under the telecom industry
where it will keep a record of all the personal and business contact numbers
as soon as the number is bought. The app. will be in C++. So, the application
area of the project will include all the tasks involving update and deletion of
numbers as soon as they registered or closed.
-10-
CHAPTER – 2
CONCEPTUAL FRAMEWORK
PROBLEM SELECTION
PROBLEM DEFINITION
Present system is based more on manual record keeping methodology, which
makes the overall working of the system very slow, time consuming and thus it
is proved to be inefficient. Hence software was required which could make the
entire system fast and efficient.
IDENTIFICATION OF NEED
This step is initiation of System Analysis. An overview of the client’s
requirement has been done. The basic need of the client to opt for such kind of
project is analyzed. As per current marketing scenario, an entire system was
required to track day-to-day criminal records, and timely generation of
reports is the basic features of this project. Client was following a Manual
Process, which is not at all compatible with its current working conditions. It
was not only time consuming, but also lacks accuracy. Security point of view
the manual system was failed to hide the information from any
unauthenticated staff or any outside person. Therefore, there was an urgent
requirement of such Computerized System, which can fulfill all of its current
as well as future requirements.
-11-
PROJECT MONITORING SYSTEM
HISTORY
Stroustrup began work on C with Classes in 1979. The idea of creating a new
language originated from Stroustrup's experience in programming for his
Ph.D. thesis. Stroustrup found that Simula had features that were very helpful
for large software development, but the language was too slow for practical
use, while BCPL was fast but too low-level and unsuitable for large software
development.
FEATURES OF C++
Compared to the C language, C++ introduced extra features, including
declarations as statement, function-like casts, new/ delete, reference type,
inline functions, default arguments, function overloading, namespaces,
classes( including all class-related features such as inheritance, member
function, virtual function, abstract classes, and constructors), operator
overloading, templates, the :: operator, exception handling, and runtime type
identification
-12-
DOCUMENTATION
CODING
#include<fstream.h>
#include<ctype.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<process.h>
class PERSON
{
char name[20];
char sex;
char phone[20];
char add[100];
-13-
char state[100];
char pincode[10];
char email[30];
public:
void add_person();
void add_person_modify();
void delete_person();
void display_person();
void modify_person();
void search_person_name();
void search_person_phone();
void search_person_place();
void search_person_pin();
void display_person_report();
void menu_person_client();
void menu_person_admin();
char *retname_person()
{return name;}
char *retphone_person()
{return phone;}
char *retplace_person()
{return state;}
char *retpin_person()
{return pincode;}
}person;
void PERSON::add_person()
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
-14-
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"\n Personal Details\n";
cout<<"\nEnter the Name: ";
gets(name);
do
{
cout<<"\nEnter the Sex: ";
cin>>sex;
sex=toupper(sex);
}while(sex!='M' && sex!='F');
cout<<"\nPhone Number: ";
gets(phone);
cout<<endl;
cout<<"\nAddress: ";
gets(add);
cout<<endl;
cout<<"\nState: ";
gets(state);
cout<<endl;
cout<<"\nPin Code: ";
gets(pincode);
cout<<endl;
cout<<"\nEmail: ";
gets(email);
cout<<endl;
cout<<"\nThank You for Entering Records:";
getch();
}
-15-
void PERSON::add_person_modify()
{
PERSON temp(person);
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"\n Personal Details\n";
cout<<"\nEnter the Name: ";
gets(name);
check(name,temp.name);
do
{
cout<<"\nEnter the Sex : ";
cin>>sex;
sex=toupper(sex);
}while(sex!='M' && sex!='F');
cout<<"\nPhone Number: ";
gets(phone);
check(phone,temp.phone);
cout<<endl;
cout<<"\nAddress: ";
gets(add);
check(add,temp.add);
cout<<endl;
cout<<"\nState: ";
gets(state);
check(state,temp.state);
cout<<endl;
cout<<"\nPin Code: ";
gets(pincode);
check(pincode,temp.pincode);
-16-
cout<<endl;
cout<<"\nEmail: ";
gets(email);
check(email,temp.email);
cout<<endl;
cout<<"\nThank You for Entering Records:";
getch();
}
void PERSON::delete_person()
{
fstream file;
fstream ofs;
clrscr();
char temp[20];
file.open("person.txt",ios::in);
ofs.open("temp.txt",ios::out);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name to be deleted: ";
gets(temp);
file.read((char *)&person,sizeof(person));
-17-
while(!file.eof())
{
int i=strcmp(retname_person(),temp);
if(i!=0)
{
ofs.write((char*)&person,sizeof(person));
}
else
{
cout<<"Deleted Profile";
display_person();
}
file.read((char *)&person,sizeof(person));
}
file.close();
ofs.close();
remove("person.txt");
rename("temp.txt","person.txt");
}
}
void PERSON::display_person()
{
cout<<"Name: ";
puts(name);
cout<<"\nSex: ";
cout<<sex;
cout<<"\nPhone Number: ";
cout<<phone;
cout<<"\nAddress: ";
-18-
puts(add);
cout<<"\nState: ";
puts(state);
cout<<"\nPin Code: ";
puts(pincode);
cout<<"\nEmail: ";
puts(email);
}
void PERSON::display_person_report()
{
cout<<name<<" ";
cout<<sex<<" ";
cout<<phone<<" ";
cout<<add<<" ";
cout<<state<<" ";
cout<<pincode<<" ";
cout<<email<<"\n";
}
void PERSON::modify_person()
{
fstream file;
fstream ofs;
clrscr();
int g1=0;
char temp[20];
file.open("person.txt",ios::in);
ofs.open("temp.txt",ios::out);
-19-
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name to be modify: ";
gets(temp);
file.read((char *)&person,sizeof(person));
while(!file.eof())
{
int i=strcmp(retname_person(),temp);
if(i!=0)
{
ofs.write((char*)&person,sizeof(person));
}
else
{
cout<<"Record Found.Press any key to edit.";
g1=1;
getch();
add_person_modify();
ofs.write((char*)&person,sizeof(person));
}
file.read((char *)&person,sizeof(person));
}
}
if(g1==0)
-20-
{
cout<<"\nData not found";
getch();
}
file.close();
ofs.close();
remove("person.txt");
rename("temp.txt","person.txt");
}
void PERSON::search_person_name()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("person.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name to be searched: ";
gets(temp);
file.read((char *)&person,sizeof(person));
-21-
while(!file.eof())
{
int i=strcmp(retname_person(),temp);
if(i==0)
{
cout<<"Search Result\n";
display_person();
g=1;
getch();
}
file.read((char *)&person,sizeof(person));
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void PERSON::search_person_phone()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("person.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
-22-
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Phone Number to be search: ";
gets(temp);
file.read((char *)&person,sizeof(person));
while(!file.eof())
{
if(!strcmp(retphone_person(),temp))
{
cout<<"Search Result\n";
display_person();
g=1;
getch();
}
file.read((char *)&person,sizeof(person));
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
-23-
void PERSON::search_person_place()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("person.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter state to be search: ";
gets(temp);
file.read((char *)&person,sizeof(person));
while(!file.eof())
{
int i=strcmp(retplace_person(),temp);
if(i==0)
{
cout<<"Search Result\n";
display_person_report();
g=1;
getch();
}
file.read((char *)&person,sizeof(person));
}
-24-
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void PERSON::search_person_pin()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("person.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Pin to be search";
gets(temp);
file.read((char *)&person,sizeof(person));
while(!file.eof())
-25-
{
file.read((char *)&person,sizeof(person));
if(!strcmp(retpin_person(),temp))
{
cout<<"Search Result\n";
display_person_report();
g=1;
getch();
}
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void PERSON::menu_person_admin()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
-26-
cout<<"1. Add Details\n2. Delete Details\n3. Modify
Details\n4. Search Details By Name\n5. Back to Main Menu\n";
cout<<"\n\nEnter your Choice: ";
cin>>choice;
switch(choice)
{
case 1:
clrscr();
fstream file;
file.open("person.txt",ios::app|ios::out);
person.add_person();
file.write((char *)&person,sizeof(person));
file.close();
break;
case 2:
clrscr();
person.delete_person();
break;
case 3:
clrscr();
person.modify_person();
break;
case 4:
clrscr();
person.search_person_name();
break;
case 5:
clrscr();
choice = 0;
break;
default :
cout<<"Invalid";
clrscr();
-27-
}
}while(choice);
}
void PERSON::menu_person_client()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Search By Name\n2. Search By Pin Code\n3.
Search By State\n4. Back to Main Menu\n";
cout<<"\n\nEnter your Choice: ";
cin>>choice;
switch(choice)
{
case 1:
clrscr();
person.search_person_name();
break;
case 2:
clrscr();
person.search_person_pin();
break;
case 3:
clrscr();
-28-
person.search_person_place();
break;
case 4:
clrscr();
choice = 0;
break;
default :
cout<<"Invalid";
clrscr();
}
}while(choice);
}
class BUSINESS
{
char name[20];
char category[100];
char phone[20];
char add[100];
char state[100];
char pincode[10];
char email[30];
public:
void add_business();
void add_business_modify();
void delete_business();
void display_business();
void modify_business();
void search_business_name();
-29-
void search_business_phone();
void search_business_place();
void search_business_pin();
void search_business_category();
void display_business_report();
void menu_business_client();
void menu_business_admin();
char *retname_business()
{return name;}
char *retphone_business()
{return phone;}
char *retplace_business()
{return state;}
char *retpin_business()
{return pincode;}
char *retcat_business()
{return category;}
}business;
void BUSINESS::add_business()
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"\n Business Details\n";
cout<<"\nEnter the Name of the Business: ";
gets(name);
cout<<endl;
cout<<"\nCategory: ";
-30-
gets(category);
cout<<endl;
cout<<"\nPhone Number: ";
gets(phone);
cout<<endl;
cout<<"\nAddress: ";
gets(add);
cout<<endl;
cout<<"\nState: ";
gets(state);
cout<<endl;
cout<<"\nPin Code: ";
gets(pincode);
cout<<endl;
cout<<"\nEmail: ";
gets(email);
cout<<endl;
cout<<"\nThank You for Entering Records:";
getch();
}
void BUSINESS::add_business_modify()
{
BUSINESS temp(business);
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"\n Business Details\n";
-31-
cout<<"\nEnter the Name: ";
gets(name);
check(name,temp.name);
cout<<endl;
cout<<"\nCategory: ";
gets(category);
check(category,temp.category);
cout<<endl;
cout<<"\nPhone Number: ";
gets(phone);
check(phone,temp.phone);
cout<<endl;
cout<<"\nAddress: ";
gets(add);
check(add,temp.add);
cout<<endl;
cout<<"\nState: ";
gets(state);
check(state,temp.state);
cout<<endl;
cout<<"\nPin Code: ";
gets(pincode);
check(pincode,temp.pincode);
cout<<endl;
cout<<"\nEmail: ";
gets(email);
check(email,temp.email);
cout<<endl;
cout<<"\nThank You for Entering Records:";
getch();
}
-32-
void BUSINESS::delete_business()
{
fstream file;
fstream ofs;
clrscr();
char temp[20];
file.open("business.txt",ios::in);
ofs.open("temp.txt",ios::out);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name of the company to be deleted: ";
gets(temp);
file.read((char *)&business,sizeof(business));
while(!file.eof())
{
int i=strcmp(retname_business(),temp);
if(i!=0)
{
ofs.write((char*)&business,sizeof(business));
}
else
{
-33-
cout<<"Deleted Profile";
display_business();
}
file.read((char *)&business,sizeof(business));
}
file.close();
ofs.close();
remove("business.txt");
rename("temp.txt","business.txt");
}
}
void BUSINESS::display_business()
{
cout<<"Name: ";
puts(name);
cout<<"\nCategory: ";
cout<<category;
cout<<"\nPhone Number: ";
cout<<phone;
cout<<"\nAddress: ";
puts(add);
cout<<"\nState: ";
puts(state);
cout<<"\nPin Code: ";
puts(pincode);
cout<<"\nEmail: ";
puts(email);
}
-34-
void BUSINESS::display_business_report()
{
cout<<name<<" ";
cout<<category<<" ";
cout<<phone<<" ";
cout<<add<<" ";
cout<<state<<" ";
cout<<pincode<<" ";
cout<<email<<"\n";
}
void BUSINESS::modify_business()
{
fstream file;
fstream ofs;
clrscr();
int g1=0;
char temp[20];
file.open("business.txt",ios::in);
ofs.open("temp.txt",ios::out);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
-35-
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name to be modify: ";
gets(temp);
file.read((char *)&business,sizeof(business));
while(!file.eof())
{
int i=strcmp(retname_business(),temp);
if(i!=0)
{
ofs.write((char*)&business,sizeof(business));
}
else
{
cout<<"Record Found.Press any key to edit.";
g1=1;
getch();
add_business_modify();
ofs.write((char*)&business,sizeof(business));
}
file.read((char *)&business,sizeof(business));
}
}
if(g1==0)
{
cout<<"\nData not found";
getch();
}
file.close();
ofs.close();
remove("business.txt");
rename("temp.txt","business.txt");
}
-36-
/* SEARCH BUSINESS THROUGH NAME FUNCTION */
void BUSINESS::search_business_name()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("business.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name to be search: ";
gets(temp);
file.read((char *)&business,sizeof(business));
while(!file.eof())
{
if(!strcmp(retname_business(),temp))
{
cout<<"Search Result\n";
display_business();
g=1;
getch();
}
file.read((char *)&business,sizeof(business));
-37-
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void BUSINESS::search_business_phone()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("business.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Phone Number to be search: ";
gets(temp);
file.read((char *)&business,sizeof(business));
-38-
while(!file.eof())
{
if(!strcmp(retphone_business(),temp))
{
cout<<"Search Result\n";
display_business();
g=1;
getch();
}
file.read((char *)&business,sizeof(business));
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void BUSINESS::search_business_place()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("business.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
-39-
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter State to be search: ";
gets(temp);
file.read((char *)&business,sizeof(business));
while(!file.eof())
{
if(!strcmp(retplace_business(),temp))
{
cout<<"Search Result\n";
display_business_report();
g=1;
getch();
}
file.read((char *)&business,sizeof(business));
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void BUSINESS::search_business_pin()
-40-
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("business.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Pin to be search: ";
gets(temp);
file.read((char *)&business,sizeof(business));
while(!file.eof())
{
if(!strcmp(retpin_business(),temp))
{
cout<<"Search Result\n";
display_business_report();
g=1;
getch();
}
file.read((char *)&business,sizeof(business));
}
if(g==0)
{
-41-
cout<<"\nData not found";
getch();
}
file.close();
}
}
void BUSINESS::search_business_category()
{
fstream file;
clrscr();
int g=0;
char temp[20];
file.open("business.txt",ios::in);
if(!file)
{
cout<<"\nError in opening the file ";
getch();
}
else
{
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"Enter Name to be search";
gets(temp);
file.read((char *)&business,sizeof(business));
while(!file.eof())
{
if(!strcmp(retcat_business(),temp))
-42-
{
cout<<"Search Result\n";
display_business_report();
g=1;
getch();
}
file.read((char *)&business,sizeof(business));
}
if(g==0)
{
cout<<"\nData not found";
getch();
}
file.close();
}
}
void BUSINESS::menu_business_admin()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Add Details\n2. Delete Details\n3. Modify
Details\n4. Search Details By Name\n5. Back to Main Menu\n";
cout<<"\n\nEnter your Choice: ";
-43-
cin>>choice;
switch(choice)
{
case 1:
clrscr();
fstream file;
file.open("business.txt",ios::app|ios::out);
business.add_business();
file.write((char *)&business,sizeof(business));
file.close();
break;
case 2:
clrscr();
business.delete_business();
break;
case 3:
clrscr();
business.modify_business();
break;
case 4:
clrscr();
business.search_business_name();
break;
case 5:
clrscr();
choice = 0;
break;
default :
cout<<"Invalid";
clrscr();
}
}while(choice);
}
-44-
/* BUSINESS MENU UNDER CLIENT SECTION FUNCTION */
void BUSINESS::menu_business_client()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Search By Name\n2. Search By Pin Code\n3.
Search By State\n4. Search According to Category\n5. Back to Main
Menu\n";
cout<<"\n\nEnter your Choice: ";
cin>>choice;
switch(choice)
{
case 1:
clrscr();
business.search_business_name();
break;
case 2:
clrscr();
business.search_business_pin();
break;
case 3:
clrscr();
business.search_business_place();
break;
-45-
case 4:
clrscr();
business.search_business_category();
break;
default :
cout<<"Invalid";
clrscr();
}
}while(choice);
}
void reverse_menu()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Get Business Details By Phone\n2. Get Personal
Details By Phone\n3. Back to Main Menu\n";
cout<<"\n\nEnter your Choice: ";
cin>>choice;
switch(choice)
{
case 1:
-46-
clrscr();
business.search_business_phone();
break;
case 2:
clrscr();
person.search_person_phone();
break;
case 3:
clrscr();
choice = 0;
break;
default :
cout<<"Invalid";
clrscr();
}
}while(choice);
}
void admin_menu()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Business Details\n2. Personal Details\n3. Back to
Main Menu\n";
-47-
cout<<"\n\nEnter your Choice: ";
cin>>choice;
switch(choice)
{
case 1:
clrscr();
business.menu_business_admin();
break;
case 2:
clrscr();
person.menu_person_admin();
break;
case 3:
clrscr();
choice = 0;
break;
default :
cout<<"Invalid";
clrscr();
}
}while(choice);
}
/* CLIENT MENU */
void client_menu()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
-48-
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Business Details\n2. Personal Details\n3. Reverse
Phone Number\n4. Back to Main Menu\n";
cout<<"\n\nEnter your Choice: ";
cin>>choice;
switch(choice)
{
case 1:
clrscr();
business.menu_business_client();
break;
case 2:
clrscr();
person.menu_person_client();
break;
case 3:
clrscr();
reverse_menu();
break;
case 4:
clrscr();
choice = 0;
break;
default :
cout<<"Invalid";
clrscr();
}
}while(choice);
}
-49-
void passwd()
{
int a;
cout<<" \nCODE : ";cin>>a;
if(a==123)
{
cout<<" \n Authorised User \n";
cout<<" \n Press Enter To Continue\n";
getch();
}
else
{
/* MAIN */
int main()
{
clrscr();
int choice = 1;
do
{
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<"1. Admin\n2. Client\n3. Exit\n";
cout<<"\n\nIf Admin (Secure Area), Please Press 1 else Please
Press 2. ";
cout<<"\n\nEnter your Choice: ";
-50-
cin>>choice;
switch(choice)
{
case 1:
clrscr();
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
cout<<"\t \n";
cout<<" Yellow Pages and White Pages\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
cout<<" You are in administrative area. Please Enter
your PassCode. Thankyou \n";
passwd();
admin_menu();
break;
case 2:
clrscr();
client_menu();
break;
case 3:
choice = 0;
break;
default:
cout<<"Invalid";
clrscr();
}
}while(choice!= 0);
return 0;
-51-
CHAPTER – 4
METHODOLOGY
SYSTEM STUDY
The project shall be feasible, given unlimited resources and infinite time. The
objective of the feasibility is not to solve the problem, but to acquire a sense of
its scope. It is always necessary to carry out e feasibility study for the
development of a new product system from the following viewpoints:-
⇒ What shall be the goals and sub goals of the proposed system?
⇒ Operational Feasibility
⇒ Technical Feasibility
⇒ Economic Feasibility.
-52-
OPERATIONAL FEASIBILITY
The objective of the feasibility study is not to solve the problem but to
acquire a sense of its scope . During the study, the problem definition is
crystallized and aspects of the problem to be included in the system are
determined. Consequently, costs and benefits are described with greater
accuracy at this stage.
-53-
4. Recommendations and Conclusions: Specific recommendations
regarding the candidate system, including personnel assignments,
costs, project schedules, and target dates.
It is how well the solution will work in the organization and how the end-users
and officers feel about the system. This people oriented test measures the
urgency of problem or the acceptability of a solution. I.e. is the problem worth
solving?
PIECE is used as the basis for analyzing the urgency of problem or the
effectiveness of a solution.
TECHNICAL FEASIBILTY
Technical Feasibility centers on the existing computer system and to what
extent it can support the proposed system. The system is technically feasible
as existing system (hardware and software) etc is Sufficient for the proposed
system. There will be no overburden of the system.
-54-
• Facility to communicate data to distant location.
REQUIREMENT ANALYSIS
OBJECTIVE
PRELIMINARY SURVEY
REQUIREMENT
SPECIFICATIONS
PERFORMANCE CRITERIA
-55-
SYSTEM HARDWARE AND
SOFTWARE REQUIRED
OBJECTIVE
The problem forwarded by the client is actually to computerize their already
existing manual System.
PRELIMINARY SURVEY
The client already had a set system which was manual. This manual system
was although efficient, but very time consuming. Also, the different modules
were not fully integrated and needed an absolute understanding of the whole
system to give the desired results. The main problems found out were
bottlenecks at the user end because of slow data flow rate in a manual system.
So, a preliminary survey was done check whether any simple modification
could actually stimulate the system.
The present system seemed to be perfect if only data flow could be automated.
The same modules could be implemented in the software.
REQUIREMENT SPECIFICATIONS
After the preliminary survey and listening to the client’s requirements
following requirements were listed:
-56-
iii. The system should ensure that a quick response is given to user
quires in areas of requests.
iv. A simple user interface should provide to the user to easy
access to requested information.
v. The front-end should have user friendly interface..
vi. A password to avoid trespassing by unauthorized users.
PERFORMANCE CRITERIA
After the initial investigation of the present system and the client’s
requirements some performance criteria were deduced. These criteria cover
both the software and the hardware aspect of the project.
SOFTWARE REQUIREMENT
Software Req. : Turbo C
RAM : Minimum 32 Mb
-57-
HARDWARE REQUIREMENT
HDD: 4.1 GB
FDD: 1.44 MB
CD-ROM: 52X
Chapter – 4
Data collection
SYSTEM ANALYSIS
The evolution of a computer based system follows a pattern called system life
cycle. System analysis is the process of gathering information and interpreting
facts, diagnosing & using the information to recommend improvement to the
system. The most accepted definition of system analysis is “system analysis is
a management technique which helps us in designing a new system or
improving the existing system”. In the system development life cycle first three
parts like Requirement Analysis, feasibility analysis and basic system
specification fall under the system analysis part. System analysis is the
application of the system approach to problem solving using computers. The
ingredients are the system’s elements, processes and technology. This means
that to do the system work one needs to understand the system’s concept and
how organization operates as a system that meets the organization’s
requirement.
-58-
The first 4 phase of this cycle are planning, analysis, design and
implementation. These phases are devoted to the development. Brief
descriptions of the phases are as follows.
PLANNING PHASE
The major steps are:-
i. Recognize the problem.
ii. Define the problem.
iii. Set the objective.
iv. Identify system constraints.
v. Conduct a feasibility study.
vi. Prepare a system study proposal.
vii. Approve or disapprove the study project.
viii. Establish a Control Mechanism.
ANALYSIS PHASE
This deals in the detail study of the various operations performed by a system
and their relationship within and outside the system. During analysis data are
collected from the available files, decision point and logical system models
and tools are used in this phase.
OVERALL STRATEGY
PROBLEMS WITH THE
CURRENT SYSTEM
-59-
ADVANTAGES OF
COMPUTERIZATION
The goal of the analysis stage is to build and understand the scenario involved
and to create a description of just what is desired and what will eventually be
built. To understand the problem we must have input to get output. This can
take the form of interviews, specifications regarding to level of performance
and random data.
This section outlines the strategies followed in organizing the analysis phase.
OVERALL STRATEGY
CHAPTER – 5
-60-
DESIGN PRINCIPLES
DESIGN OVERVIEW
The design stages shall take a final specification of the system from analysis
stage and find the best way to fulfill them.
i. DESIGN ANALYSIS
ii. DESIGN METHODOLOGY
iii. FLOW CHARTS
iv. DATA FLOW ANALYSIS OF THE CURRENT SYSTEM
v. DATA FLOW DIAGRAM
DATA DICTIONARY
The platform I used to develop my project “Yellow Pages and White Pages" is
in C++. During the development of this project I had several options of the
platform to use. After thorough study and discussion with my faculty and
guide, I decided to use OOPS concept using C++ language. It acts as front-
end as well as back-end. Back – end deals with the file-handling concept of
the C++
i. Identity
ii. Classification
-61-
iii. Encapsulation
v. Polymorphism
vi. Inheritance
All these features of C++ can run on any hardware or system that has
'Windows XP Professional' Operating System. It has many features and tools
that will make our computer easy, effective and entertaining. For example, we
can use remote desktop to access our work computer and their resource from
home, as well as view fields and document on our computer’s desktop from a
co-worker's computer.
ADVANTAGES OF OOP
Why is everyone so excited about OOP? The chief problem with computer
programs is complexity. Large programs are probably the most complicated
entities ever created by humans. Because of this complexity, programs are
prone to error, and software errors can be expensive and even life threatening
(in air-traffic control, for example). Object-oriented programming offers a
new and powerful way to cope with this complexity. Its goal is clearer, more
reliable, more easily maintained programs.
-62-
This project requires the latest version of either the Microsoft or the Borland
C++ compiler. Both products come in low priced.
The computer should have enough processor speed, memory, and hard disk
space to run the complier we've chosen. We can check the manufacturer's
specification to determine these requirements the fundamental idea behind
object-oriented languages is to combine into a single unit both data and the
function that operate on that data. Such a unit is called an object. An object's
functions, called member function in C++, typically provide the only way to
access its data. The data is hidden, so it is safe from accidental alteration.
Data and its functions are said to be encapsulated into a single entity. Data
encapsulation and data hiding are key terms in the description of object-
oriented languages.
DESIGN ANALYSIS
After understanding the business functions, purpose of the database, the
performance needs of the application and the ease of maintenance, the
designing part begins. A good design is the foundation to a correct, easily
expandable and maintainable system. A maintainable system is one that is
flexible and is simple to modify, if the system cannot adapt easily to the
changing business environment, exceedingly efforts will be required to keep it
serviceable. Design is a procedure for creating the blueprints for a system
like the architects draft for the constructor to create the building.
DESIGN METHODOLOGY
The scope of the systems design is guided by the framework for the new system
developed during analysis. More clearly defined logical method for
developing system that meets user requirements has led to new techniques and
methodologies that fundamentally attempt to do the following:
i. Improve productivity of analysts and programmers.
-63-
ii. Improve documentation and subsequent maintenance and
enhancements.
iii. Cut down drastically on cost overruns and delays.
FLOWCHARTS
-64-
-65-
-66-
-67-
-68-
-69-
DATA FLOW ANALYSIS FOR THE CURRENT
SYSTEM
After completion of the deep study of the current system, I am now ready to do
the data flow analysis of the client. This Data Flow Analysis consists of the
Data Flow Diagrams (DFDs) which describe processes and data movement in
the system and Data Dictionary (DD), which defines the systems’ elements.
Both provide useful information for designing the candidate system.
DFD or Data Flow Graphs are the cornerstone for structured systems
analysis and design. It views the system as a collection of functions that
transforms the inputs as desired outputs but does not go into the details of the
-70-
transformation. This process modeling tool depicts flow of data through a
system and processing work performed by the system. It has diagram of
processes, data stores, data stores view, entities and data flows.
The Data Flow Diagram (DFD) is one of the most important tools used by the
system analyst. Data flow diagrams are made up of a number of symbols,
which represent the system components. Most data flow modeling methods use
four kinds of symbols are used to represents four kings of system components:
Process Data Stores, Data Flows and External Entries. These are as follows:
PROCESS
Processes show what the system does. Each process has one or more data
inputs and produces one or more data outputs. Processes are represented by
circles in DFD.
DATA STORES
A file or data store is repository of data. They contain data that is retained in
the system. Processing can enter data into a data store or retrieve data from
the data store. Each data store is represented by a thin line in the DFD and
each data store has unique name.
EXTERNAL ENTITIES
-71-
External entities are outside the system but they either supply input data into
the system or they use the system output. The designer has no control over the
external entities. External entities are represented by a square or rectangle.
DATABASE
-72-
DATA DICTIONARY
TESTING
i. UNIT TESTING
ii. SYSTEM TESTING
iii. INTEGRAL TESTING
iv. TEST CONCLUSION
TESTING
Even completion of the design and coding stage does not imply that the
development of the software is complete. The system designed needs to be
verified so that errors don’t creep in, although it is inevitable to develop a
system without any errors. .
-73-
The tests done on the designed software was to verify the following properties
of the software:
UNIT TESTING
Unit testing is the process of taking a module and running it in isolation from
the rest of the software product by using prepared test cases and comparing
the actual results predicted by the specifications and design of the module.
Individual components are tested to ensure that they operate correctly. Unit
testing treats each component as a stand-alone entity which does not need
other components during the testing process. In my project, every single
menu has been checked individually.
SYSTEM TESTING
-74-
CHAPTER – 6
CONCLUSION
CONCLUSION
This will review the initial objectives and the extent to which they were
fulfilled. It will summarize the project’s success and weakness, and what was
learnt during its duration.
-75-
down these objectives in the following sections, and discuss what was
achieved from them.
The final result of the Yellow Pages and White Pages System consolidated an
easy to use and hence effective user interface, with the basic user functionality
requested from the management of the client. A lot of time and careful
consideration was taken to ensure that it encompassed all of the
characteristics of a successful user interface, and one which tried to inspire
confidence in its user. Continual comm. in the form of message and the
dialogue facility, from the system to its user gives them a feeling of security
and power. Minute details, like the positioning of certain details to the screen
so that the user could digest them swiftly involved significant thought, and the
psychology behind the design of these features of the interface is extensively
explained in chapter user interface.
-76-
CHAPTER – 7
RECOMMENDATIONS
RECOMMENDATIONS
This s/w will play an important role in future user for contact number
management. At present data from the database and report are created
manually. Need for the system arise due to increasing expenditure of the
company in maintaining records regarding the details of consumers as well as
company (supplier) .Basic need of the project is to keep the details of different
numbers under different category (Business and Person) are registered or
bought..
FINAL SUMMARY
-77-
IMPLEMENTATION AND MAINTENANCE
CHAPTER – 8
APPENDIX
Output screens
1. Main Menu
-78-
7. Add, delete, Modify, Search Business by Pin Code, Name, Category
and States
OUTPUT
-79-
Password Enter for Admin Panel
-80-
Main Admin Panel
-81-
Business Option in Admin Panel
-82-
Add Business Details
-83-
-84-
Search Details by Name of Company
-85-
Personal Option in Admin Panel
-86-
Add Personal Details
-87-
Modify Details
-88-
-89-
Search Details by Name
-90-
Client Menu
-91-
Business Menu under Client Option
-92-
Search by Name
-93-
Search Report by Pin Code
-94-
Search Business under Category
-95-
Person Menu under Client Section
-96-
Search by Pin code
-97-
Search by State
-98-
Reverse Phone Number Menu Option
-99-
Get Business Details by Phone
-100-
Get Person Details by Phone
-101-
Exit Program (Press 3)
-102-
CHAPTER – 9
BIBLIOGRAPHY
-103-