Professional Documents
Culture Documents
PROJECT
VANSHIKA UNIYAL
12th D
Introduction
My address book software is very easy to use. It's a simple, straight forward
program that allows you to store addresses and print address books more.
● Import Addresses
Stop re-typing! Import addresses from Outlook, and other software programs
using a comma delimited file.
●
● Reports
Create reports of any info you've entered. Great for printing your own Address
Book or Phone Book for a handy reference next to your phone or for your day
planner.
●
● Change Address Placement
This is a nice option if you have custom address labels with a logo or picture.
You can re-position where the address prints to accommodate your custom
label.
● Search
●
Search function will search your address entries and display a list of any
entries found that contain your search criteria.
●
● Thousands of Addresses
● You can add over 25,000 addresses in our address book software.
This software is perfect if you just want to keep track of family
and friends but also designed to be powerful enough for
businesses to maintain large client and customer databases. It's
flexible too.... allowing you to organize your contacts in
categories that you create! You can print personal phone-books,
maintain contact histories, sort your file, maintain database it's
all up to you!
The system provides you with encryption facility to secure your
data.
CERTIFICATE
Corresponding to School
DELHI PUBLIC SCHOOL DWARKA
This Project have been done by Vanshika Uniyal and the signatures
affixed on recorded experiments are genuine.
................................
Teacher- Incharge
Countersigned by...........................
Date..................................
HEADER FILES
2. conio.h
Used for clrscr() function.
3. process.h
Used for exit(int) function.
4. stdio.h
Used for gets() function, which excepts string from user.
5. string.h
Used for strlen() function which returns length of string.
IMPORTANT FUNCTIONS
1. deleate()
This Function enables user to delete fields from the database, it
provides user with option to search the field by Name, Phone
Number, Address, ID.
2. modification()
Enables user to modify required field and modifying rows of user’s
choice.
3. view()
Displays the record of pointed object.
4. search()
Enables searching by Name, Phone Number, Address, ID.
5. modipass()
Enables User to modify master password.
6. sort()
Sorts database according to user’s choice.
7. addition()
Add fields to the database.
SOURCE CODE
#include <fstream.h>
#include <conio.h>
#include <process.h>
#include <stdio.h>
#include <string.h>
void intro();
char u;
int x = 0;
char p[100], pc[100];
int i;
void intro()
{
clrscr();
cout << "\n A D D R E S S B O O K";
cout << "\n\nThis Software can be used in place of your address book.............\nCode "
"Lines::852";
cout << "\n\n\n Used Header Files:---\n1. fstream.h\n2. conio.h\n3. process.h\n4. "
"iomanip.h\n5. stdio.h\n6. string.h\n7. stdlib.h\n";
cout << "\n\n\n\n Coded By----->>>";
cout << "\n\n\n VANSHIKA UNIYAL\n Delhi Public School";
cout << "\n\n <<<Press any Key to continue>>>";
getch();
return;
}
class file
{
int file;
long ph1;
char ph2[10];
int age;
int check(char*);
int count();
char address1[50];
char address2[50];
char occupation[20];
char name[20];
char id[25];
char intdd[25];
public:
void modification();
void addition();
void deleate();
void menu();
void search();
void view1();
void init();
void display();
void view();
void totaldis();
void delbyname();
int submenu();
char* rna();
char* radd();
char* reid();
long rph();
} obj;
f1.write((char*)&p, sizeof(p));
f1.close();
}
else
{
cout << "Entered Password donot match to earlie password, enetr new password..";
goto l;
}
}
long pn;
char na[50], add[50], eid[50];
clrscr();
cout << "Search By -" << endl;
int l = submenu();
cout << l;
;
if (l == 1)
{
clrscr();
cout << "\n\nEnter Name: ";
gets(na);
}
if (l == 2)
{
clrscr();
cout << "\n\nEnter Phone No: ";
cin >> pn;
}
if (l == 3)
{
clrscr();
cout << "\n\nEnter Address: ";
gets(add);
}
if (l == 4)
{
clrscr();
cout << "\n\nEnter Internet Address: ";
gets(eid);
}
int n;
n = count();
for (int i = 0; i < n; i++)
{
f3.read((char*)&obj, sizeof(obj));
if (l == 2)
{
if (pn == ph1)
{
view1();
}
}
if (l == 1)
{
if (!strcmp(na, name))
{
view1();
}
}
if (l == 3)
{
if (!strcmp(address1, add))
{
view1();
}
}
if (l == 4)
{
if (!strcmp(eid, intdd))
{
view1();
}
}
}
if (!f3.eof())
{
cout << " \n\n\nRecord Not Found!!!! (The Entered Field Not In Database)\n\n";
}
cout << " \n\n\n Back To Main Menu(y/n)::: ";
cin >> u;
if ((u == 'y') || (u == 'Y'))
menu();
}
void file::init() // ENTERING THE DETAILS
{
clrscr();
char ch;
cout << "Adding Data......Please Fill The Fields Properly ";
cout << " \n\n\n\n\n\n\n Enter Name : ";
gets(name);
cout << " \n Enter House Phone Number : ";
cin >> ph1;
cout << " \n Enter Office Phone Number : ";
cin >> ph2;
cin.get(ch);
cout << " \n Enter The Occupation : ";
cin.getline(occupation, 20, '\n');
cout << " \n Enter House Address : ";
cin.getline(address1, 50, '\n');
cout << " \n Enter Office Address : ";
cin.getline(address2, 50, '\n');
cout << " \n Enter Email Address : ";
cin.getline(id, 25, '\n');
cout << " \n Enter Internet Address : ";
cin.getline(intdd, 25, '\n');
}
{
if ((pn == ph1) || (!strcmp(add, address1)) || (!strcmp(eid, intdd))
|| (!strcmp(na, name)))
{
view1();
d = check("House Phone Number ");
if ((d == 1))
{
cout << "\n Enter New Phone Number :";
cin >> ph1;
}
if (check("Office Phone Number ") == 1)
{
cout << "\n Enter New Phone Number :";
cin >> ph2;
}
z = check("Name");
if (z == 1)
{
cout << "\n Enter New Name : ";
gets(name);
}
if (check("Home Address") == 1)
{
cout << "\n Enter New Address :";
gets(address1);
}
if (check("Office Address") == 1)
{
cout << "\n Enter New Address :";
gets(address2);
}
if (check("Email Address:") == 1)
{
cout << "\n Enter New Mail Address :";
gets(id);
}
if (check("Internet Address") == 1)
{
cout << "\n Enter New Internet Address :";
gets(intdd);
}
}
else
x++;
f5.write((char*)&obj, sizeof(obj));
}
}
if (x == n)
{
cout << "\n\n\n***No Other Entry Found***";
}
f5.close();
f4.close();
cout << " \n\n\n Back To Main Menu(y/n)::: ";
cin >> u;
if ((u == 'y') || (u == 'Y'))
menu();
}
int main()
{
intro();
pass();
return 0;
}
SNAPSHOTS
Intro:
Main Menu:
Password:
Add Entry:
View Entry:
Modify Menu:
SearchMenu:
SortMenu:
Modify Password:
BIBLOGRAPHY
The ideas and Functions in this project have been taken up from various
soft-wares available, and looks into providing all these functions to the
user.