Computer Science Project on Address Book

download Computer Science Project on Address Book

of 19

description

project on computer science ip

Transcript of Computer Science Project on Address Book

ADDRESS BOOK

BY:NAME: PRADYUMNA BHANDIWAD;CLASS: XII D;SCHOOL: K V HEBBAL BANGALORE;ROLL NO:

Contents

1. Certificate2. Acknowledgement3. Theory4. Header files5. Coding6. Screenshots7. Bibliography

Certificate

This is to certify that I Pradyumna Bhandiwad, student of Class XII D, Kendriya Vidyalaya Hebbal has successfully completed the investigatory project on the topic ADDRESS BOOK during the academic year 2015-2016 towards fulfilment of credit for the Computer science practical evaluation, and submitted satisfactory report, as compiled in the following pages, under the supervision of Mrs Kiran Kumari, department of Computer science.

Teacher In-charge signature

External examiner signature

Acknowledgement

Iwould like to express my special thanks of gratitude to my teacher Mrs. Kiran Kumari as well as our principal Mr. Kumar Thakur who gave me the golden opportunity to do this wonderful project on the topic ADDRESS BOOK , which also helped me in doing a lot of research and I learned about many new things. I am thankful to them. I am obliged to my friends, for the valuable information provided by them in their respective fields. I am grateful for their cooperation during the period of my assignment.

Theory

Anaddress bookor aname and address book(NAB) is abookor adatabaseused for storing entries calledcontacts. Each contact entry usually consists of a few standardfields(for example: first name, last name, company name,address,telephonenumber,e-mailaddress,faxnumber,mobile phonenumber). Most such systems store the details in alphabetical order of people's names, although inpaper-based address books entries can easily end up out of order as the owner inserts details of more individuals or as people move. Many address books use smallring bindersthat allow adding, removing and shuffling of pages to make room.

Header files used in the program:

1. fstream.h for file operations2. iostream.h for basic input/output operations3. conio.h - for clear screen function4. ctype.h - for handling characters5. process.h for exit() function6. stdlib.h for standard library functions7. stdio.h - input/output operations8. string.h for string operations9. iomanip.h- for manipulating output of the program

C++ coding for Address Book

#include#include#include#include#include#include#include#include#include

void welcome_screen();void welcome_screen(){clrscr();

gotoxy(29,19);cputs("**************WELCOME**************");gotoxy(25,12);cputs("*** KENDRIYA VIDYALAYA HEBBAL *** " );gotoxy(20,14);textcolor(BLACK);cputs(" T E L E P H O N E M A N A G E M E N T S O F T W A R E ");gotoxy(38,16);textcolor(BLACK);cputs(" D O N E B Y : ");gotoxy(56,18);cputs(" Pradyumna Bhandiwad ");gotoxy(59,29);cputs("");textcolor(BLACK+BLINK);gotoxy(49,30);cputs(" *** PRESS ANY KEY TO CONTINUE***");getch();return;}class directory{public:int record;long pn1;char pn2[19];int age;char address1[59];char address2[59];char occupation[29];char name[26];char emailadd[25];char internetadd[25];void modification();void addition();void deleate();void menu();void search();void view1();void init();void display();void view();char check(char *);int test();}obj;void directory::addition() // FOR ADDING INFORMATION{ofstream fout;fout.open("heera",ios::out|ios::app);init();fout.write((char*)&obj,sizeof(obj));fout.close();}int directory::test() //FIND NUMBER OF RECORDS{ifstream fin;fin.open("heera");fin.seekg(0,ios::end);int n;n=fin.tellg()/sizeof(obj);cout