You are on page 1of 19

Project Report

DSA

PHONEBOOK MANAGEMENT SYSTEM

MCA 2nd SEMESTER


Index
1. Abstract

2. Aim

3. Introduction

4. Dependencies

5. Tools & Software Used

6. App Workflow

7. Project Workflow

8. Conclusion
CANDIDATE’S DECLARATION
I hereby declare that the work which is being presented in this
report titled “Project Report on Phonebook management
system ” in partial fulfilment of the requirements for the award
of MCA Degree of and submitted to Department of computer
application, Suresh Gyan Vihar University Jaipur is an authentic
record of my own work carried out by me during the period of
3 months under the guidance and supervision of Mr. Devesh
Bandil.

The matter presented in this report embodies the results of my


own work and has not been submitted anywhere else for
award of any other qualification. This is to certify that the
above statement made by me is correct to the best of my
knowledge and belief.

Name – Sakshi Khandelwal


SID -100368
Acknowledgement
First and foremost, I would like to express my deepest gratitude to
Suresh Gyan Vihar University, Jaipur for giving me an opportunity to
work under the guidance of learned faculty members.

I am really thankful for their strong commitment to keep in touch


despite of their busy schedule, and also for the time spent during the
discussion.

I express my gratitude to Mr. Devesh Bandil for his external support


and guidance throughout the project. I would like to convey my
thanks to the university personnel for helping me in gathering data
and also giving me a better understanding of the current situation of
the IT infrastructure.
Above all, I would like to thank God, my family and friends who have
supported me throughout the duration of the project and allowed
me to focus my attention on completing this project.
MAJOR PROJECT REPORT
MCA 2nd SEM.

Calendar
By
Sakshi Khandelwal

Abstract

C is a general-purpose programming language created by Dennis Ritchie at


the Bell Laboratories in 1972.

It is a very popular language, despite being old.

C is strongly associated with UNIX, as it was developed to write the UNIX


operating system.

• It is one of the most popular programming language in the world


• If you know C, you will have no problem learning other popular
programming languages such as Java, Python, C++, C#, etc, as the
syntax is similar
• C is very fast, compared to other programming languages,
like Java and Python
• C is very versatile; it can be used in both applications and technologies

C is a powerful general-purpose programming language. It can be used to develop


software like operating systems, databases, compilers, and so on. C programming is
an excellent language to learn to program for beginners.

DSA - A data structure is a particular way of organizing data in a computer so that it


can be used effectively.For example, we can store a list of items having the same
data-type using the array data structure. Data structures are an integral part of
computers used for the arrangement of data in memory. They are essential and
responsible for organizing, processing, accessing, and storing data efficiently. But
this is not all. Various types of data structures have their own characteristics,
features, applications, advantages, and disadvantages.
AIM
To make a Phonebook Management System.

This website will help people to view and contact people and
contactbook of their own choice and make an Phonebook system.

Introduction:

In 2019 the Internet will be celebrated its 50th anniversary, and the
World Wide Web had been in existence for over 25 years. The
concepts of computer networks and hypertext on which these
technologies rely are only a little older. And yet the speed of
development of these technologies, the speed of uptake by
companies, and the speed of acceptance by consumers is unlike
anything mankind has witnessed. Although both the Internet and the
Web are firmly rooted in academic, altruistic Endeavour, there is no
doubt that the commercial interests are currently driving much of
the technological development. This project aims for contributing to
this Endeavour the basic ideas and technologies behind the Internet,
and giving the opportunity to design and write Web pages using
HTML5, CSS, JavaScript.
Tools & Software Used:
Visual Studio Code, also commonly referred to as VS Code, is a
source-code editor made by Microsoft for Windows, Linux and
macOS. Features include support for debugging, syntax highlighting,
intelligent code completion, snippets, code refactoring, and
embedded Git. Users can change the theme, keyboard shortcuts,
preferences, and install extensions that add additional functionality.

In the Stack Overflow 2021 Developer Survey, Visual Studio Code was
ranked the most popular developer environment tool, with 70% of
82,000 respondents reporting that they use it

Visual Studio Code is a source-code editor that can be used with a


variety of programming languages, including Java, JavaScript, Go,
Node.js, Python, C++, C, Rust and Fortran. It is based on the Electron
framework, which is used to develop Node.js Web applications that
run on the Blink layout engine. Visual Studio Code employs the same
editor component (codenamed "Monaco") used in Azure DevOps
(formerly called Visual Studio Online and Visual Studio Team
Services).

Out of the box, Visual Studio Code includes basic support for most
common programming languages. This basic support includes syntax
highlighting, bracket matching, code folding, and configurable
snippets. Visual Studio Code also ships with IntelliSense for
JavaScript, TypeScript, JSON, CSS, and HTML, as well as debugging
support for Node.js. Support for additional languages can be
provided by freely available extensions on the VS Code Marketplace.

An orange version of the Visual Studio Code logo for the insider’s
version of Visual Studio Code .Visual Studio Code Insiders logo
Instead of a project system, it allows users to open one or more
directories, which can then be saved in workspaces for future reuse.
This allows it to operate as a language-agnostic code editor for any
language. It supports many programming languages and a set of
features that differs per language. Unwanted files and folders can be
excluded from the project tree via the settings. Many Visual Studio
Code features are not exposed through menus or the user interface
but can be accessed via the command palette.

Visual Studio Code can be extended via extensions, available through


a central repository. This includes additions to the editor and
language support. A notable feature is the ability to create
extensions that add support for new languages, themes, debuggers,
time travel debuggers, perform static code analysis, and add code
linters using the Language Server Protocol.

Source control is a built-in feature of Visual Studio Code. It has a


dedicated tab inside of the menu bar where users can access version
control settings and view changes made to the current project. To
use the feature, Visual Studio Code must be linked to any supported
version control system (Git, Apache Subversion, Perforce, etc.). This
allows users to create repositories as well as to make push and pull
requests directly from the Visual Studio Code program.

Visual Studio Code includes multiple extensions for FTP, allowing the
software to be used as a free alternative for web development. Code
can be synced between the editor and the server, without
downloading any extra software.

Visual Studio Code allows users to set the code page in which the
active document is saved, the newline character, and the
programming language of the active document. This allows it to be
used on any platform, in any locale, and for any given programming
language.
App Work Flow:

Codes:
#include <stdio.h>
#include <conio.h>
#include <windows.h>
#include <direct.h>
#include <string.h>
void menu(void);
void password(void);
void namefun(void);
void searchfun(void);
void listfun(void);
void modifyfun(void);
void deletefun(void);
void exitfun(void);
void gotoxy(int x,int y){
COORD c;
c.X=x;
c.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c);
}

int main(){
system("color B");
password();
getch();
}

void namefun(){
system("cls");
gotoxy(31,4);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB NEW SECTION
\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xB3");
FILE *fptr;
char name[100];
char address[100];
char gmail[100];
double phone;
char gender[8];
fptr=fopen("ebraj.txt","ab+");//ab+ gives us the ability of writing the
function and add the second data in the existing one...
if(fptr==NULL){
printf("Failed to create the required file.");
}
else{
gotoxy(31,6);
printf("Name:\t");
gotoxy(52,6);
gets(name);
gotoxy(31,7);
printf("Address:\t");
gotoxy(52,7);
gets(address);
gotoxy(31,8);
printf("Gender:\t");
gotoxy(52,8);
gets(gender);
gotoxy(31,9);
printf("Gmail:\t");
gotoxy(52,9);
gets(gmail);
gotoxy(31,10);
printf("Phone Number:\t");
gotoxy(52,10);
scanf("%lf",&phone);
fprintf(fptr,"%s %s %s %s %.0lf\n",name,address,gender,gmail,phone);
}
fclose(fptr);
system("cls");
char ch;
gotoxy(31,4);
printf("Do you wanna add more datas.Press y for that:");
Sleep(1000);
fflush(stdin);
while((ch=getch())=='y'){
menu();
}
}

void searchfun(){
FILE *fptr;
int flag=0;
int res;
char name[100];
char address[100];
char gmail[100];
double phone;
char gender[8];
char name1[100];
system("cls");
fflush(stdin);
gotoxy(18,2);
printf("\xDB\xDB\xDB Enter the name of the person you want to see the
detail:: ");
gets(name1);
fptr=fopen("ebraj.txt","r");
//fflush(stdin);
while(fscanf(fptr,"%s %s %s %s
%lf\n",name,address,gender,gmail,&phone)!=EOF){
res=strcmp(name,name1);
if(res==0){
gotoxy(39,4);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB Record Found
\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xB3");
gotoxy(28,5);
printf("----------------------------------------");
gotoxy(31,6.5);
printf("\xB3\xB2\xB2\xB2 Name:\t%s",name);
gotoxy(31,7);
printf("\xB3\xB2\xB2\xB2 Address:\t%s",address);
gotoxy(31,8);
printf("\xB3\xB2\xB2\xB2 Gender:\t%s",gender);
gotoxy(31,9);
printf("\xB3\xB2\xB2\xB2 Gmail:\t%s",gmail);
gotoxy(31,10);
printf("\xB3\xB2\xB2\xB2 Phone Number:\t%.0lf",phone);
gotoxy(31,11);
printf("----------------------------------------");
flag=1;
Sleep(1000);
gotoxy(18,12);
printf("Enter y for menu option.");
while(getch()=='y'){
menu();
}
}
}
if(flag==0){
system("cls");
gotoxy(39,4);
printf("No record found.");;
gotoxy(39,6);
printf("Enter a to enter file again or double y key to open menu
section:");
if(getch()=='a'){
system("cls");
searchfun();
}

fclose(fptr);
}
void listfun(){
FILE *fptr;
char name[100],address[100],gmail[100],gender[8];
double phone;
int f;
fptr=fopen("ebraj.txt","r");
system("cls");
gotoxy(31,2);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB LIST SECTION OPENED
\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xB3");
printf("\n");
while(fscanf(fptr,"%s %s %s %s
%lf",name,address,gender,gmail,&phone)!=EOF){

printf("------------------------------------------\n");
printf("Name:%s\n",name);
printf("Address:%s\n",address);
printf("Gender:%s\n",gender);
printf("Gmail:%s\n",gmail);
printf("Phone:%.0lf\n",phone);
f=1;
printf("------------------------------------------");
printf("\n\n");
}
Sleep(1000);
printf("Enter y for menu section:");
while(getch()=='y'){
menu();
}
fclose(fptr);
}

void modifyfun(){
FILE *fptr,*fptr1;
char
name[100],address[100],gmail[100],gmail1[100],address1[100],name1[100],gender[
8],gender1[8];
int res,f=0;
double phone,phone1;
fptr=fopen("ebraj.txt","r");
fptr1=fopen("temp.txt","a");
system("cls");
gotoxy(31,4);
printf("Enter the name: ");
gets(name1);
system("cls");
while(fscanf(fptr,"%s %s %s %s
%lf\n",name,address,gender,gmail,&phone)!=EOF){
res=strcmp(name,name1);
if(res==0)
{
f=1;
gotoxy(31,4);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB MODIFY SECTION OPENED
\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xB3");
gotoxy(31,6);
printf("Enter the new address:");
scanf("%s",address1);
gotoxy(31,7);
printf("Enter the gender:");
scanf("%s",gender1);
gotoxy(31,8);
printf("Enter the new gmail:");
scanf("%s",gmail1);
gotoxy(31,9);
printf("Enter the new phone number:");
scanf("%lf",&phone1);
fprintf(fptr1,"%s %s %s %s
%.0lf\n",name,address1,gender1,gmail1,phone1);

}else{
fprintf(fptr1,"%s %s %s %s
%.0lf\n",name,address,gender,gmail,phone);
}
}
if(f==0){
printf("Record Not found.");
}
fclose(fptr);
fclose(fptr1);
fptr=fopen("ebraj.txt","w");
fclose(fptr);
fptr=fopen("ebraj.txt","a");
fptr1=fopen("temp.txt","r");
while(fscanf(fptr1,"%s %s %s %s
%lf\n",name,address,gender,gmail,&phone)!=EOF){
fprintf(fptr,"%s %s %s %s %.0lf\n",name,address,gender,gmail,phone);

fclose(fptr);
fclose(fptr1);
fptr1=fopen("temp.txt","w");
fclose(fptr1);
printf("\n\nPress y for menu option.");
fflush(stdin);
if(getch()=='y'){
menu();
}
}
void deletefun(){
FILE *fptr,*fptr1;
char
name[100],address[100],gmail[100],gmail1[100],address1[100],name1[100],gender[
8];
int res,f=0;
double phone,phone1;
fptr=fopen("ebraj.txt","r");
fptr1=fopen("temp.txt","a");
system("cls");
gotoxy(31,4);
printf("Enter the CONTACT name that you want to delete: ");
gets(name1);
system("cls");
while(fscanf(fptr,"%s %s %s %s
%lf\n",name,address,gender,gmail,&phone)!=EOF){
res=strcmp(name,name1);
if(res==0)
{
f=1;
printf("Record deleted successfully");

}else{
fprintf(fptr1,"%s %s %s %s
%.0lf\n",name,address,gender,gmail,phone);
}
}
if(f==0){
printf("Record Not found.");
}
fclose(fptr);
fclose(fptr1);
fptr=fopen("ebraj.txt","w");
fclose(fptr);
fptr=fopen("ebraj.txt","a");
fptr1=fopen("temp.txt","r");
while(fscanf(fptr1,"%s %s %s %s
%lf\n",name,address,gender,gmail,&phone)!=EOF){
fprintf(fptr,"%s %s %s %s %.0lf\n",name,address,gender,gmail,phone);

fclose(fptr);
fclose(fptr1);
fptr1=fopen("temp.txt","w");
fclose(fptr1);
printf("\n\nPress y for menu option.");
fflush(stdin);
if(getch()=='y'){
menu();
};
}
void exitfun(){
system("cls");
gotoxy(31,4);
printf("\xDB\xDB\xDB\xDB TEAM MEMBERS \xDB\xDB\xDB\xDB");
gotoxy(31,6);
printf("\xDB EBRAJ GURUNG.");
gotoxy(31,8);
printf("\xDB BEEKASH BASAULA.");
gotoxy(31,10);
printf("\xDB SAMUNDRA POUDEL.");
gotoxy(31,12);
printf("\xDB SAGAR DHAKAL.");
}
void password(void){
char passwords[20]={"1234"};
gotoxy(22,2);
int j;
int z;
char name[40]="Authorized Person Only";
z=strlen(name);
for(j=0;j<=16;j++){
Sleep(50);
printf("\xDB");
}
for(j=0;j<=z;j++){
Sleep(60);
printf(" %c",name[j]);
}
for(j=0;j<=16;j++){
Sleep(50);
printf("\xDB");
}
gotoxy(30,4);
printf("Password:");
char ch,pass[20];
char w='*';
int i=0;
while(ch!=13){
ch=getch();
if(ch!=13 && ch!=8){
printf("%c",w);
pass[i]=ch;
i++;
}
}
pass[i]='\0';
if(strcmp(pass,passwords)==0){
gotoxy(30,6);
printf("CORRECT PASSWORD.");
Sleep(1000);
menu();
}
else{
gotoxy(30,6);
printf("You entered the wrong password.");
Sleep(700);
system("cls");
password();
}

void menu(){
system("cls");
gotoxy(30,1);

printf("\xB3\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\x
B2\xB2\xB2\xB2\xB2 PHONEBOOK DIRECTORY
\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\x
B2\xB2\xB3");
gotoxy(31,4);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB 1.Add New");
gotoxy(31,7);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB 2.Search");
gotoxy(31,10);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB 3.List");
gotoxy(31,13);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB 4.Modify");
gotoxy(31,16);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB 5.Delete");
gotoxy(31,19);
printf("\xB3\xDB\xDB\xDB\xDB\xDB\xDB\xDB\xDB 6.Exit");
switch(getch()){
case '1':
namefun();
break;
case '2':
searchfun();
break;
case '3':
listfun();
break;
case '4':
modifyfun();
break;
case '5':
deletefun();
break;
case '6':
exitfun();
break;
default:
system("cls");
printf("Invalid Enter.");
getch();
}
}
Interface:
Conclusion:

By this Project I had successfully built a website with proper


workflow. In order to accomplish the goal of providing a
complete and coherent Web presence, every unit in the
organization needs to be tapped. In a Webbed world,
duplication of effort is not only wasteful, it is confusing to
users. There is a need to ensure that the same information is
not being maintained in several different places with several
different rates of upkeep. Issues of preferences in design
need to be hammered out so that our users need not
understand our political structure in order to understand our
Web site. Yet we need to be flexible enough to realize that
librarians serving very specific segments of users know those
segments best and know what is going to be most effective in
communicating with that population.
To solve problems when users might not be able to connect to
a resource, public service librarians are learning the technical
realities of such things as network structure, proxy servers,
browser differences, and what licenses may be restricting
access. To ensure a Web presence that is coherent,
deliberate, and a step beyond making deli sandwiches,
libraries need to examine these potential roles and determine
which are priorities for that organization. The ingenuity and
ideas of librarians from all facets of the organization coupled
with a vision from an institutional perspective will give
meaningful direction to a Web presence.

A Special Thanks to Mr. Devesh Bandil sir for Guiding us throughout


the project.

You might also like