Professional Documents
Culture Documents
Sycm - 2 - Roll No - 64 - 65 - 74
Sycm - 2 - Roll No - 64 - 65 - 74
Micro-Project Report
On
Submitted By
Dhananjay Ramse (64)
Siddhesh Ranaware (65)
Shriniti Nikat (74)
Under Guidance Of
Mr. Balaji Dande Sir
TECHNICAL EDUCATION
Certificate
This is to certify that Mr. Dhananjay Ramse “Roll No. 64” of Semester III of Diploma in
Computer Technology of Institute STES’s Sou. Venutai Chavan Polytechnic (Code: 0040)
using ‘C++’ (22316) for the academic year 2021 – 2022 as prescribed in the curriculum.
Program Code: CM
TECHNICAL EDUCATION
Certificate
This is to certify that Mr. Siddhesh Ranaware Roll No. 65 of Semester III of Diploma in
Computer
Technology of Institute STES’s Sou. Venutai Chavan Polytechnic (Code: 0040) has
completed the Micro Project satisfactorily in Subject Object-Oriented Programming
using ‘C++’ (22316) for the academic year 2021 – 2022 as prescribed in the curriculum.
Program Code: CM
TECHNICAL EDUCATION
Certificate
This is to certify that Mr. Shriniti Nikat Roll No. 74 of Semester III of Diploma in
Computer Technology of Institute STES’s Sou. Venutai Chavan Polytechnic (Code: 0040)
using ‘C++’ (22316) for the academic year 2021 – 2022 as prescribed in the curriculum.
Program Code: CM
Annexure – I
Micro-Project Proposal
Annexure – II
Micro-Project Report
Phone Directory System Project In C++
1.0 Rationale:
This system is developed using the general need required by the user while using
the phone directory book. In order to keep updated the phone book directory, the
admin will have the authority to add and delete as well as modify the existing
records within the phone book directory. The users of the directory will only have
the authority to search any particular record and listing details of all available
records. Admin will have the authority to perform various operations such as add
customer records, search any particular record, delete record, modify existing
record etc. To provide the search result within short interval of time optimized
search algorithm code has been used which will able to provide the results within
seconds. To make all operations as easier as possible, user friendly approach has
been taken into account by which users have to only give their answer during final
confirmation to make their operations successful. The background processing
system will take care of all processing task and maintain data integrity in order to
reduce the redundancy of data. For searching operation, users will able to get any
particular record using their contact or phone number but the only condition is
that, customers record must be available within the file system. If no such record
will be available, proper error message will be displayed as per user input provided
to the system.
Customer need more convenient way to get their required results in proper time.
In today’s era where technology plays a vital role in each person life, they are bound
to use the old fashioned manual book to search any particular record. Even the
publishers have to print the new records in their new volume and published each
year. Customers always gets irritated to pay amount for new volume in each year.
Even searching process of particular record is also one big problem for the
customers, they have to first go through the index page to details on alphabetical
letter and after that they have to go through the various pages using page number
to get their desired results which also a time consuming process.
}
// TELEPHONE DIRECTORY SYSTEM
#include<iostream.h>
#include<fstream.h>
#include<iomanip.h>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
#include<stdio.h>
#include<iomanip.h>
#include<graphics.h>
#include<dos.h>
class stud
{
public:
char name[20];
char address[20];
void get(void);
void show(void);
void modify(void);
};
void stud::get(void)
int i=0;
cin.get(name[i]);
while(name[i]!='\n')
{
i=i+1;
cin.get(name[i]);
}
cin.getline(name,20,'\n');
cin.getline(address,20,'\n');
fflush(stdin);
cin>>ph_no;
fflush(stdin);
void stud::show(void)
cout<<"\n";
void main()
int x,y;
int midx,midy;
errorcode = graphresult();
getch();
closegraph();
}
y:
char*pass="RPV";
char*ppass;
gotoxy(25,8);
int size=7;
settextstyle(7,0,size);
setbkcolor(BLUE);
setcolor(WHITE);
outtextxy(180,50,"WELCOME" );
setcolor(WHITE);
outtextxy(250,200,"TO");
settextstyle(8,0,5);
setfillstyle(1,DARKGRAY);
setcolor(WHITE);
outtextxy(60,350,"\n\nTELEPHONE DIRECTORY");
getch();
clearviewport();
settextstyle(3,0,4);
settextstyle(7,0,4);
getch();
clearviewport();
g:
if(strcmpi(pass,ppass)!=0)
{
cout<<"\n\t\t\tIncorrect password";
cout<<"\n\t\t\tTry again";
getchar();
goto g;
}
else
{
stud s;
char name[20];
char name1[20];
int ch;
clrscr();
setbkcolor(BLUE);
setcolor(YELLOW);
closegraph();
z:
cout<<"\n\n\n\n\n\n\n\n\n";
initgraph(&gdriver, &gmode,"c:\\turboc3\\bgi");
setcolor(BLUE);
rectangle(60,10,600,400);
setfillstyle(1,YELLOW);
bar(61,11,599,399);
settextstyle(TRIPLEX_FONT ,HORIZ_DIR,4);
setcolor(BLUE);
settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);
setcolor(BLUE);
settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);
setcolor(BLUE);
settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);
settextstyle(TRIPLEX_FONT,HORIZ_DIR,3);
gotoxy(62,23);
cin>>ch;
switch(ch)
{
case 1: //responsible for addition of record
{
clrscr();
fstream f;
f.open("rec",ios::in|ios::out|ios::ate|ios::app|ios::binary);
char ans;
s.get();
f.write((char *)&s,sizeof(s));
clrscr();
outtextxy(250,360, " Do you want to continue:- ");
ans=getche();
break;
}
case 2: // will show all the contents of the file
{
clrscr();
cout<<"\n\n";
fstream f;
f.open("rec",ios::in|ios::out|ios::ate|ios::app|ios::binary);
f.seekg(0);
int ctr=0;
while(f.read((char *)&s,sizeof(s)) )
{
ctr=ctr+1;
if(f.eof()==1)
{break;}
}
f.close();
outtextxy(240,350, " Do you want to continue :-");
char ans;
ans=getche();
if(ans=='y'|| ans=='Y'){
closegraph();
goto z;}else{exit(1);}
case 3: // search
{
gotoxy(60,25);
clearviewport();
rectangle(10,10,630,470);
setbkcolor(DARKGRAY);
textbackground(3);
textcolor(5);
clrscr();
char ans;
ifstream f;
stud s;
char name[20];
char address[20];
unsigned int ph_no;
f.open("rec",ios::in|ios::binary);
cout<<"\n\n\n Enter name whose record to be search :";
cin>>name;
do
{
f.read((char *)&s,sizeof(s));
if(f.eof()==1) {break;}
if(strcmpi(s.name,name)==0)
{
cout<<"\n Name :"<<s.name;
cout<<"\n address :"<<s.address;
cout<<"\n phone_no :"<<s.ph_no;
getchar();
}
}while(f);
f.close();
settextstyle(7,0,1);
outtextxy(250,410,"Do You Want To Continue:");
ans=getchar();
if(ans=='Y'||ans=='y')
goto z;
else
{
closegraph();
break;
}
if(s.ph_no==ph_no)
{
cout<<"\n Current Name :"<<s.name;
cout<<"\n Current Address :"<<s.address;
cout<<"\n Current Phone No :"<<s.ph_no;
getchar();
cout<<"\n Enter the new name :";
cin>>name;
cout<<"\n Enter the city :";
cin>>address;
cout<<"\n Enter new ph_no :";
cin>>ph_no;
strcpy(s.name,name);
strcpy(s.address,address);
s.ph_no=ph_no;
int l=f.tellg();
f.close();
f.open("rec",ios::out|ios::binary|ios::ate);
f.seekg(l-sizeof(s));
f.write((char *)&s,sizeof(s));
}
}while(f);
f.close();
outtextxy(290,360, " Do you want to continue :-");
ans=getche();
if(ans=='Y'||ans=='y')
{goto z;}
break;
}
fflush(stdin);
fflush(stdout);
cin.getline(name,20,'\n');
while(fin)
{
fin.read((char *)&s,sizeof (s));
if(strcmp(s.name,name)==0)
{fout.read((char *)&s,sizeof(s));
}
else
{
if(fin.eof()==1) {break;}
fout.write((char *)&s,sizeof(s));
}
}
fin.close();
fout.close();
system("del rec");
system("ren va rec");
cout<<"\n Enter is get Deleted:-";
getchar();
char ans;
outtextxy(240,340, " Do you want to continue:- ");
ans=getche();
if (ans=='y' || ans=='Y')
{goto z;}
else
if (ans=='n' || ans=='N')
{getchar();
exit(1);
}
}
case 6:
{
clearviewport();
outtextxy(250,360,"THE END OF THE PROJECT:-");
outtextxy(260,390,"\n \n\n\n\n PLEASE PRESS ENTER");
getchar();
closegraph();
exit(1);
}
default:
goto z;
}
}
}
}
7.2 Output:
10.0 Conclusion:
Thus, we developed a ‘Phone Directory System Project In C++’ using ‘C++’ concepts.
Thanks!