Beruflich Dokumente
Kultur Dokumente
By
November 2019
1
DEPARTMENT OF COMPUTER SCIENCE & ENGINEEING
CERTIFICATE
SIGNATURE SIGNATURE
2
TABLE OF CONTENTS
Title PageNo.
1. 1 BONAFIDE CERTIFICATE
2. 2 ABSTRACT
3. 3 INTRODUCTION
4 HARDWARE AND SOFTWARE REQUIREMENTS
4. 5 PROBLEM DEFINTION
5. 6 PROPOSED SYSTEM
6. 7 REQUIREMENT ANALYSIS
7. 8 SOURCE CODE
8. 9 SCREENSHOTS
9. 10 REFERENCES
3
ABSTRACT:
A contact manager is a software programs which enables users to easily
store and find contact information, such as names, addresses and
telephone numbers.
They are contact-centric databases that provide a fully integrated
approach to tracking of all information and communication activities
linked to contacts. Simple ones for personal use are included in most
smart phones.
On a daily basis, everyone depends on a lot of contacts which cannot be
remembered so easily as it’s tough to do so. Hence dependability
increases on phones. So we came up with a simple project-Contact
Management System
In this you can list contacts by name, phone no., and email. File handling
has been used to record all data. We have used data structure to store the
user name, email and c.
4
INTRODUCTION:
File handling, data structure, functions, and pointers are the main things which
make up this simple project. The key features of contact management system
are listed below:
5
HARDWARE AND SOFTWARE REQUIREMENTS:
Hardware:
Dual Core Processor with 1GB RAM and 250GB Hard Drive.
Windows 2008 Server or higher / Windows 8 (or higher) Professional Edition
Software:
Turbo C or CODE BLOCKS or DEV C++,
C language with linked list as data structures.
PROBLEM DEFINITION:
This is similar to contact manager in Mobile phones. You can add contacts,
remove contacts, edit contacts, search contacts and view all contacts. Graphics
is not used just a console application suitable for learning purpose for beginner
and can be used as a reference for college mini project. In this project you
learning file handling, how to write data, delete data and search data form file.
6
PROPOSED SYSTEM:
REQUIREMENT ANALYSIS:
7
SOURCE CODE:
void addNewcontact(void)
{
newc = (struct contact *)malloc(sizeof(struct contact));
if(firstc==NULL)
firstc = currentc = newc;
else
{
currentc = firstc;
cnum++;
printf("%27s: %5i\n","contact number",cnum);
currentc->number = cnum;
printf("%27s: ","Enter contact name");
gets(currentc->name);
else
{
printf("%6s %-20s %-15s %-
15s\n","Acct#","Name","Phone","Email");
8
puts("------ -------------------- ------------- -------------------");
currentc=firstc;
do
{
while((currentc=currentc->next) != NULL);
}
}
void deletecontact(void)
{
int record;
struct contact *previousa;
if(firstc==NULL)
{
puts("There are no contacts to delete!");
return;
}
listAll();
printf("Enter contact account number to delete: ");
scanf("%d",&record);
currentc = firstc;
while(currentc != NULL)
{
if(currentc->number == record)
{
if(currentc == firstc)
firstc=currentc->next;
else
previousa->next = currentc->next;
free(currentc);
printf("contact%d deleted!\n",record);
9
return;
}
else
{
previousa=currentc;
currentc=currentc->next;
}
}
printf("contact%d not found!\n",record);
}
void modifycontact(void)
{
int record, result;
if(firstc==NULL)
{
puts("There are no contacts to modify!");
return;
}
listAll();
printf("Enter contact account number to modify or change: ");
scanf("%d",&record);
result = findnum(record);
10
int record;
record = recordnum;
currentc = firstc;
while(currentc != NULL)
{
if(currentc->number == record)
{
return 1;
}
else
{
currentc = currentc->next;
}
}
return -1;
}
int findcontact(void)
{
char buff[20];
if(firstc==NULL)
{
puts("There are no contacts to find!");
return 1;
}
currentc = firstc;
while(currentc != NULL)
{
if( strcmp(currentc->name, buff) == 0 )
{
printf("%6s %-20s %-15s %-15s\n","Acct#","Name","Phone","Email");
printf("%6d: %-20s %-15s %-20s\n");
currentc->number;
currentc->name;
currentc->phone;
currentc->email;
11
return 0;
}
else
{
currentc = currentc->next;
}
}
printf("contact %s was not found!\n",buff);
return 1;
}
int prompt(void)
{
char ch;
fflush(stdin);
printf("Update? (Y to update any other key to not)");
ch = getchar();
ch = toupper(ch);
fflush(stdin);
if(ch == 'Y')
{
printf("Enter new value: ");
return(1);
}
else
return(0);
12
SCREENSHOTS
13
5
14
15
REFERENCES:
https://www.codewithc.com
https://code-projects.org
https://projectworlds.in
16