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

YELLLOW PAGES AND

WHITE PAGES

Submitted by:

Student Name: Abhishek Gupta Teachers Name:


Enroll. Roll No. A1004808005
AIIT Semester V (2008-2011)

AMITY INSTITUTE OF INFORMATION


TECHNOLOGY
AMITY UNIVERSITY, UTTAR
PRADESH
AUGUST, 2010

-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.

Student Name: Abhishek


Gupta Roll.
No.A1004808005

Date: _______________________

Countersigned

Place: New Delhi

_______________________

Date: (Project Guide)

-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.

Place: New Delhi _______________________

Date: (Project Guide)

-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.

Place: New Delhi

_______________________

Date: Signature of the Candidate:

-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.

I am highly indebted to my for giving me an


opportunity to work on this project. She has been an invaluable source of
guidance and motivation at all stages of my work.

Name: Abhishek Gupta


Roll No. A1004808005

-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..

At present details collected, maintained and inserted manually. After


implementation of this project, record will be inserted and maintained
technically. This will reduce manual work and improve quality and speed and
facility will maintain the queue of all the records that are entered by the
management of the org. It will help the management to access the data and
results as and when required.

It is difficult to summaries the multitudinous knowledge that has been


acquired throughout the life of this project, but hopefully this report and
conclusion has attempted to give the reader a full appreciation of the vast
scale of learning that has been achieved.

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.

Searching the information manually is a time consuming process. In a


computerized system, the user can do the things in a much easier way as
compared to the manual system of keeping the records.

AIM OF THE PROJECT


The aim of the project is to deliver a working system that will allow all the
officers and the citizens to go through a normal dir. of the city. This dir. can
be maintained by the state telephone department. This directory can store all
the data of business as well personal data. It will become really easy for all
the people to contact and find each other easily. It will also become easy to
contact people whom people have lost contact. It would actually ease to find
the company anywhere in the country with any name or under any specific
category.

OBJECTIVE OF THE PROJECT


A Project usually originates to meet the needs of one or more parts of an
organization. This Yellow Pages and white Pages program is developed
keeping in mind the requirements and needs of a citizen of a country, where
he could search any person or any business easily.

For Example:

⇒ A person has lost contact of a person; He could easily search


for his name and could easily locate the person’s phone number again.

⇒ If a person is looking for a company dealing with anything


specific or any specific category, he could easy search through many
companies. And find the best company.

-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.

The objectives of the projects:

⇒ More effective utilization of resources, including people.

⇒ Faster access to information

⇒ To have better management

⇒ Easy to operate

⇒ Less man power

⇒ User Friendly Environment.

⇒ 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.

ABOUT YELLOW PAGES AND WHITE PAGES


Are a telephone directory services. Every month helps more than 2 million
people find current, detailed and accurate information about businesses and
people across town or across the country quickly and easily.

Business directories combines’ rich content gathered from numerous sources


(including directly from companies themselves) with ultra-targeted search
tools to deliver unparalleled utility and a truly unique user experience.

-10-
CHAPTER – 2

CONCEPTUAL FRAMEWORK

PROBLEM SELECTION

The current system is not organized. It is a system based on more of common


sense. The main idea behind this system is “as it has been going on fine”. The
speed of the system depends on human speed and mood.

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.

Since it is totally depending on human, efficiency is low. There is less security


as all the information is basically kept as hard copy in a register. The
computer back up is also in the file system.

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

C++ is a general-purpose, high-level programming language with low-level


facilities. It is a statically typed free-form multi-paradigm language
supporting procedural programming, data abstraction, object-oriented
programming, generic programming and Runtime Type Identification (RTTI).
Since the 1990s, C++ has been one of the most popular commercial
programming languages.

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.

While not an official part of the standard, it gives a number of extensions to


the standard library which are expected to be included in the next version of
C++.

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

/* Header Files for YELLOW PAGES AND WHITE PAGES TELEPHONE


DIRECTORY */

/* Password for Admin Section: 123 */

#include<fstream.h>
#include<ctype.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<process.h>

/* CHECK FOR PREVIOUS DATA WHILE MODIFICATION */

void check(char A[],char B[])


{
if(strlen(A)==0)
strcpy(A,B);
}

/* PERSON CLASS DEFINED */

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;

/* ADD PERSON FUNCTION */

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();
}

/* MODIFY PERSON FUNCTION */

-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();
}

/* DELETE PERSON FUNCTION */

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");
}
}

/* PERSON INFORMATION DISPLAY */

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);
}

/* REPORT DISPLAY FUNCTION */

void PERSON::display_person_report()
{
cout<<name<<" ";
cout<<sex<<" ";
cout<<phone<<" ";
cout<<add<<" ";
cout<<state<<" ";
cout<<pincode<<" ";
cout<<email<<"\n";
}

/* FIND PERSON FOR MODIFICATION FUNCTION */

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");
}

/* SEARCH PERSON THROUGH NAME FUNCTION */

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();
}
}

/* SEARCH PERSON THROUGH PHONE FUNCTION */

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();
}
}

/* SEARCH PERSON THROUGH NAME PLACE */

-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();
}
}

/* SEARCH PERSON THROUGH PIN CODE FUNCTION */

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();
}
}

/* PERSON MENU UNDER ADMIN SECTION FUNCTION */

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);
}

/* PERSON MENU UNDER CLIENT FUNCTION */

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);
}

/* BUSINESS CLASS DEFINED */

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;

/* ADD BUSINESS FUNCTION */

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();
}

/* MODIFY BUSINESS FUNCTION */

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();
}

/* DELETE BUSINESS FUNCTION */

-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");
}
}

/* DELETE BUSINESS FUNCTION */

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);
}

/* DISPLAY BUSINESS DETAILS FUNCTION */

-34-
void BUSINESS::display_business_report()
{
cout<<name<<" ";
cout<<category<<" ";
cout<<phone<<" ";
cout<<add<<" ";
cout<<state<<" ";
cout<<pincode<<" ";
cout<<email<<"\n";
}

/* DISPLAY REPORT FUNCTION */

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();
}
}

/* SEARCH BUSINESS THROUGH PHONE FUNCTION */

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();
}
}

/* SEARCH BUSINESS THROUGH PLACE OR STATE FUNCTION */

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();
}
}

/* SEARCH BUSINESS THROUGH PIN CODE FUNCTION */

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();
}
}

/* SEARCH BUSINESS THROUGH CATEGORY FUNCTION */

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();
}
}

/* BUSINESS MENU UNDER ADMIN SECTION FUNCTION */

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);
}

/* REVERSE MENU UNDER CLIENT SECTION FUNCTION */

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);
}

/* ADMIN MENU FUNCTION */

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);
}

/* PASSWORD FOR ADMIN SECTION MENU */

-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

System Study is to measure that how beneficial or practical the development


of an information system will be to an organization. It is also known as the
Feasibility 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 problems with the conventional system?

⇒ What shall be the solution available?

⇒ What shall be the goals and sub goals of the proposed system?

⇒ What will the proposed system achieve?


Feasibility analysis is a cross life cycle activity, which has to be continuously
performed throughout the system development. By using the creeping
commitment approach, feasibility is measured at different times in the system
development. This evaluation ensures that the project is beneficial and
practical to an organization.

Feasibility Test: There are three categories of feasibility tests:

⇒ Operational Feasibility
⇒ Technical Feasibility
⇒ Economic Feasibility.

-52-
OPERATIONAL FEASIBILITY

This Application is very easy to operate as it is made user friendly. Main


consideration is user’s easy access to all the functionality of the Application.
This Application is operational feasible because no special training is
required for operating the Yellow pages and White pages Telephone
Directory.

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.

It consists of the following:

1. Statement of the problem: A carefully worded statement of the problem


that led to analysis.

2. Summary of finding and recommendations: A list of the major findings


and recommendations of the study. It is ideal for the user who requires
quick access to the results of the analysis of the system under study.
Conclusion is stated, followed by a list of the recommendation and a
justification for them.

3. Details of findings: An outline of the methods and procedures under-taken


by the existing system followed by coverage of the objectives and
procedures of the candidate system. Included are also discussions of
output reports, file structures, and costs and benefits of the candidate
system.

-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.

Example, if the current computer is operating at 0 percent capacity- an


arbitrary ceiling- then running another application could overload the system
or require addition hardware. This involves financial consideration to
accommodate technical enhancements; if the budget is the serious constraint
then the project is judged not feasible. A study of functions, performance and
constraints.

This is concerned with specifying equipment and software that will


successfully satisfy the user requirement. The technical needs of the system
may vary considerably, but might include:

• The facility to produce outputs in a given time.

• Response time under certain conditions.

• Ability to process a certain volume of transaction at a


particular speed.

-54-
• Facility to communicate data to distant location.

After examining technical feasibility, we give more importance to the


configuration of the system than the actual make of hardware. The
configuration gives the complete picture about the system's requirements: Ten
to twelve workstations are required; these units should be interconnected
through LAN so that they could operate and communicate smoothly. They
should have enough speeds of input and output to achieve a particular quality
of printing.

SOFTWARE PROCESS MODEL


There are various orders in which the six phases of the Structured Systems
Analysis Design Methodology (SSADM) are implemented. These are what we
know as software process models.

A software process model is a development strategy we incorporate to


describe how a set of activities (the six phases of SSADM) must be performed
and in which order to get the desired output. We already have a few process
models defined and described. They are:

• Code and Fix Model


• Waterfall Model
• Evolutionary Model
• Transformation Model
• Spiral Model

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:

i. To develop a recording system.


ii. The present manual system being employed should be selected
as the client system.

-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.

SYSTEM HARDWARE AND SOFTWARE REQUIRED


After knowing the performance criteria, it became fairly easy to decide on the
hardware and software platform. The next step was to decide which software
to use in order to develop and support the system. Microsoft Windows XP
professional was a fair choice. Then, to choose the language various
alternatives were checked. Prog. Language C++ is used.

SOFTWARE REQUIREMENT
Software Req. : Turbo C

RAM : Minimum 32 Mb

Operating Platform : Win 9x/2000/XP/Vista/Windows


7

Hard Disk : Minimum 20 GB

Processor : Pentium Series

-57-
HARDWARE REQUIREMENT

Processor: Any Pentium or Equivalent Machine


RAM: 256 MB

HDD: 4.1 GB

FDD: 1.44 MB

CD-ROM: 52X

Monitor: 14 inches Color Monitor

Keyboard: 104 Keys Keyboards

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.

The major steps are:-

i. Announce a system study.


ii. Organize the project team.
iii. Define system performance criteria.
iv. Prepare design proposal.
v. Define information needs.
vi. Approve or disapprove the design project.

 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

To understand the current processes for the feedback, I developed the


following strategy:

• Sample all documents and records of information.


• Observe actual procedures followed.
• Determine the current strategies.

CHAPTER – 5

ANALYSIS AND INTERPRETATION


SYSTEM DESIGN

Designing shall be the most important part of the software development. It


shall require a careful planning and logical thinking of the power of the
system designer. Designing software means how the various parts of the
software will be going to achieve the desired goals of the software. It shall be
done with a lot of care because if this phase contains any errors it will affect
the performance of the system.

-60-
DESIGN PRINCIPLES

i. The design process shall not suffer from tunnel vision.


ii. The design shall be traceable to the analysis.
iii. The design shall not reinvent the wheel”.
iv. The design shall ‘minimize the intellectual distance’ between
the software and the problem as it exists in the real world.
v. The design shall exhibit and uniformity and integration.

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++

It is very easy and reliable platform as it is based on real world


programming. It has very exciting features that are very similar to our world
and life. These features are:-

i. Identity

ii. Classification

-61-
iii. Encapsulation

iv. Data Abstraction

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.

The most popular development environments for C++ are manufactured by


Microsoft and Borland and run on the various flavors of Microsoft Windows
OOP involves concepts that are new to programmers of traditional languages
such as Pascal, Basic, and C. These ideas, such as classes, inheritance, and
polymorphism, lie at the heart of object-oriented programming.

SOFTWARE AND HARDWARE

-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.

DATA FLOW DIAGRAM (DFD)

Although data can be organized in several ways:

i. stored in data repositories


ii. flow in data flows
iii. transferred to and from the external environment

DFD is preferred here as it can be expressed by means of an attractive


graphical notation that makes them easy to use and understand.

⇒ The four entities that must be represented are:

⇒ Data flows - movement of data in the system

⇒ Data stores - data repositories for data that is not moving

⇒ Processes - transforms of incoming data flow(s) to outgoing


data flow(s)
⇒ External entities - sources or destinations outside the specified
system boundary

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 External entity Dataflow

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.

Although data can be organized in several ways:

i. stored in data repositories


ii. flow in data flows
iii. transferred to and from the external environment

DFD is preferred here as it can be expressed by means of an attractive


graphical notation that makes them easy to use and understand.

The four entities that must be represented are:

i. Data flows - movement of data in the system


ii. Data stores - data repositories for data that is not moving
iii. Processes - transforms of incoming data flow(s) to outgoing
data flow(s)
iv. External entities - sources or destinations outside the specified
system boundary

PERSON RECORD DATABASE

DATABASE

Attribute Used For Data Type


Name of the
name Char
Person
Gender of the
sex Char
Person
phone Contact Number Char
Address of
add Char
Person
State of
state Char
Residence
pincode Pin Code Char
email Email Address Char

-72-
DATA DICTIONARY

Simply putting data dictionary (DD) is data about data. It is a Centralized


collection of definitions of all data flowing among functions and to or from
data stores. Data dictionary removes redundancy and inconsistencies. The
Data Dictionary for the current system is given below:

SYSTEM TESTING AND IMPLEMENTATION

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. .

The cautions kept in mind while choosing the tests are:

⇒ The testing should be based on sound and systematic techniques.


⇒ Testing should help locate errors, not just detect their presence.
⇒ Testing should be repeatable, i.e., repeating the same experiment,
supplying the same input data to the same piece of code, produces the
same results.

-73-
The tests done on the designed software was to verify the following properties
of the software:

⇒ Correctness (satisfaction of the specifications)

⇒ Reliability (how well it meets the requirements)

⇒ Portability (running in different environments)

⇒ Usability (ease with which user can use the software)

⇒ Maintainability (modifications after initial release), etc.

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

System testing is actually a series of different tests whose primary purpose is


to fully exercise the computer based system. The testing verifies that all
elements mesh properly and that overall system function/performance is
achieved.

-74-
CHAPTER – 6

CONCLUSION

i. EXTENT TO WHICH THE ORIGINAL OBJECTIVES WERE


MET
ii. USER FRIENDLY INTERFACE
iii. PROJECT MANAGEMENT, CONSULTANCY AND
COMMUNICATION SKILLS ACQUIRED
iv. EXTENT TO WHICH USER REQUIREMENTS WERE MET
v. FINAL SUMMARY

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.

EXTENT TO WHICH THE ORIGINAL OBJECTIVE WERE MET

The project objectives, as defined we can summarize as follows. To produce a


system that provides a very friendly user interface, permitting the user to
perform basic administration duties on a database containing records. In
doing so, an appreciation of project management, communication and
consultancy skills should be acquired, along with a thorough understanding of
the development of windows based applications using C++. I feel that all of
these aims were achieved, some to greater extent than others. I will break

-75-
down these objectives in the following sections, and discuss what was
achieved from them.

USER FRIENDLY INTERFACE

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.

PROJECT MANAGEMENT, CONSULTANCY AND COMMUNICATION


SKILLS ACQUIRED
I learnt a great deal from setting myself the objective of gaining experience in
these areas. This does not necessarily mean, however, that I accomplished
putting these skills into practice proficiently. On the contrary, upon reflection
of the project and its end result. In retrospect, I now know that these skills are
on-going learning experiences, and upon the scheduling of further projects,
the accuracy of estimation should increase.

EXTENT TO WHICH USER REQUIREMENT WERE MET

Great emphasis was laid on the requirements as specified are incorporated


into the system. The requirements demands the system to be safe and easy to
use, promptly displaying any necessary requested information via graphical
user interface, with guidance provided where requested. All of these
requirements were carefully considered before being implemented, so that
they would be successful and effective.

-76-
CHAPTER – 7

RECOMMENDATIONS
RECOMMENDATIONS

SCOPE OF THE PROJECT

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

It is difficult to summaries the multitudinous knowledge that has been


acquired throughout the life of this project, but hopefully this report and
conclusion has attempted to give the reader a full appreciation of the vast
scale of learning that has been achieved. 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.

-77-
IMPLEMENTATION AND MAINTENANCE

Once the software is delivered and developed, it enters the maintenance


phase. After implementation systems need maintenance. Beyond monkey
testing during Software development some errors may not appear. During its
usage by the end-user with actual data certain errors may disclose. Therefore
some residual errors or bugs remain in the system that must be removed as
they are discovered. Many of these surfaces only after the system have been in
operation sometimes for a long time. These errors once discovered need to be
removed on an urgent basis for the smooth running of the system, leading to
the software getting changed. Though Maintenance is not a part of software
development, it is an extremely important activity in the life of a software
product. Maintenance involves understanding the existing software (code and
related documents), understanding the effects of change, making the changes-
to both the code and documents-testing the new parts and retesting the old
part. For successful and smooth running of the system, maintenance is the

CHAPTER – 8
APPENDIX
Output screens
1. Main Menu

2. Password Request Window for Admin Section

3. Main Admin Panel

4. Business Menu in Admin Panel

5. Personal Menu in Admin Panel

6. Add, delete, Modify, Search Business by Pin Code, Name, Category


and States

-78-
7. Add, delete, Modify, Search Business by Pin Code, Name, Category
and States

8. Business Menu in Client Panel

9. Personal Menu in Client Panel

10. Exit Window

11. Reverse Phone number by Business and Personal Phone Number.

OUTPUT

MAIN MENU (Front Screen)

-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

BOOK: Object Oriented Programming in Turbo C++


AUTHOR: Robert Lafore
PUBLISHER: Galgotia Publications pvt. Ltd.

BOOK : The C++ Programing Language


AUTHOR: Bjarne Strostrup
PUBLISHER : Atst Lafs

BOOK : Expert Data Structures With C++


AUTHOR: Rb Patel
PUBLISHER: Khanna Books Publishing

BOOK : Programming With C++


AUTHOR: E.BalaguruSwamy
PUBLISHER: BPB Pulications

BOOK: C++ Power Packed


AUTHOR : By Khanna
PUBLISHER: Tata Mcgraw Hill

BOOK: Expert Data Structure Using By C++


AUTHOR: By Sagar
PUBLISHER: BPB Publication

BOOK: A Beginners Guide


AUTHOR: By Schilt Herbat
PUBLISHER: Willey India

-103-

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