SlideShare a Scribd company logo
Cse project-1
01.12.16
TOPIC
Project On PhoneBook
PRESENTED TO:
Ms. Tanzina Akter
Designation:Lecturer
Department of Computer Science
and Engineering
DATE:01.12.2016
PRESENTD BY:
Khandker Ashik Mahmud ID:161-15-6889
Toushiat Shaikh ID:161-15-7530
Sabbir Ahmed Likhon ID:161-15-6931
G.M. Taium Ahmed ID:161-15-6888
Md. Abu Sayem Akand ID:161-15-6975
INDEX
TITLE
• Introduction
• Aim of the Project
• 2.1 Advantages & Disadvantages
• 2.2 Future Implementation
• Software & Hardware Details
• Data Flow Diagram
• Algorithm
• Implementation
Adding new records into the memory, listing them, modifying them and
updating, search for contacts saved, and deleting the phonebook
contacts are the basic functions which make up the main menu of this
Phonebook application (as shown in the main menu screenshot below).
Personal information such as Name, gender,
Father’s name, Mother’s name, phone number, email and address are
asked while adding a record into the Phonebook. After the initial
addition of the contacts these records are then be modified, listed,
searched for and removed if they are requires a change.
• The program uses many functions in. These functions are easy to
understand as their name only signifies their respective
operations. These functions make the program to divide into
individual modules and hence it makes the program simpler to
understand.
• void menu() – This function is used to display the main menu.
• void start() – This functions calls the menu function mentioned
above.
• void back() – This function is used to go back to start.
• void addrecord() – It adds a new Phonebook record.
• void listrecord() – This function is used to view list of added
records in file.
• void modifyrecord() – This function is used to modify added
records.
• void deleterecord() – It deletes record from file.
• void searchrecord() – It searches for added record by name.
• The Title of the Program is to develop a program which
deals with the combination of structures, arrays, File
pointers and other functions. This program could do some
operations on arrays such as insertion, deletion, sorting,
searching, update, retrieve, merging, append,exit.
• By implementing this program we can
execute the inserted contact data, deletion of the data,
searching, updating, append, exit with numbers by using
arrays and file pointers. This program is implemented for
only numbers that can enter into an array. To do this
analysis manually it takes a lot of time and patience but by
implementing this program using a high level language like C
it becomes much easier. But before going to make final
solution for the problem, the problem must be analysed.
• First of all the basic information regarding the program which
consists of complex numbers. This program is solved by using
several methods like one can solve this program using user
defined functions concept, loops conditions, go to
statements. In this abstract we used the concept of
functions, while loop, for loop, switch case and if condition’s
which helps to execute the problem much easier .The
following steps are followed while implementing the given
program using if and while loop.
•
• The input is entered i.e., the value of choice (the menu no)
select the particular menu.
• Next it goes to particular menu and then goto the particular
function.
• It prints the resultant value which came from the execution.
INTRODUCTION
• C is a structured, high level machine independent language. C is
converted to a lower language which was understood by the
compiler. It allows the software developers to develop programs
without worrying about the hardware plat forms where there will be
implemented. The c language comes from the ALGOL which gives the
concept structured programming to the computer science
community. It was introduced early in 1960’s.
• C-language is robust language because c-supports richest of
operators and burden functions this consist of many operators,
operands, key words, special characters, many characters.
Structures
We have seen that arrays can be used to
represent a group of data items that belongs to
same data type. If we want to represent a
collection of data items of different data types
using a single name, then we cannot use an array.
C supports a constructed data type known as
Structure, which is a method for packing data of
different data types. A structure is a convenient
tool for handling a group of logically related data
items. Structures help to organize complex data
in a more meaningful way. It is a powerful
concept that we may often need to Use in our
program design.
Definition : A group of data items that belongs to different data types is
known as Structure.
‘Struct’ : It is a keyword and is used to declare a Structure.
• Declaration of structure:
•
• struct struct_name
• {
• Data item-1;
• Data item-2;
• …………
• …………
• Data item-n;
• };
•
•
• Declaration of structure variable:
•
• struct struct_name identifier;
•
• (or)
•
• struct struct_name dentifier-1,identifier-2,.......,identifier-n;
• (Access operator):
•
• It is used to access the data items of a structure with the help of
structure variable.
•
•
• Syntax:
• struct_variable . Data item;
•
• AIM:
•
• To develop a “Phonebook contact” application using c programming.
•
• This program is very useful now-a-days to store complete information
under single contact number.
•
• This program also has options to deletion and modification of the entered
contact number.
•
• Advantages:
• It becomes easy for the user to store complete information
(e-mail id, address, e.t.c) about his contact.
• It is easy for the user to just search his required contact
number by just typing name of the contact.
• Disadvantages:
• Sometimes it becomes difficult to store more contacts
(over 150).
•
• Future Enhancements:-
• It becomes even difficult to store contacts with two or
more contact numbers
• SOFTWARE REQUIREMENTS:
• This application is developed in Microsoft windows xp or later operating
system.
• This Phonebook application is coded and made using the following
compilers:
– Code::blocks.
– Turbo c.
• HARDWARE REQUIREMENTS:
• This Application size is 33Kb and the size of the code is 5Kb so such
amount of memory is required from hard disk.
• RAM: minimum 256MB.
• Mouse, keyboard.
DATA FLOW DIAGRAM
Cse project-1
Cse project-1
ALGORITHM
• Start.
• Display the options on the screen.
• Read name, address, father name, mother name, mobile number, gender.
• Print “WELCOME TO PHONEBOOK” and “Menu” on the screen
– Add contact
– Print all contacts
– Modify contacts
– Search contact
– Delete contact
– Close phone book
• Now for Addrecord(),arranging data as Enter name,Enter address,Enter
father name,Enter mother name,Enter phone book no, Enter Gender and
finally operations record saved ,Enter any key.
• Now for listrecord(),arranging data as
– if data is empty print file opening error in listing
– Elseprint your record: name,address,father,mother,mobile no,
Gender.
– After all these print enter any key
• Now for searchrecord(),arranging data as
– if data is insufficient print error in opening
– Else
– print enter name of contact to be searched and
• If (strcmp(p.name,name)==0)
• print detail information about name and name,address,father
name,mother name,mobile num, gender.
– After entering all these, print enter any key
• Now for deleterecord(),arranging the data as
– If (f==null)
– print contact’s data not added yet
• else
• if(f==null)
• print file opening error
• Else
• Print enter contact’s details.
• if (flag!=1)
– print no contact’s record to delete
– Else
– print record deleted successfully
– After entering all the data print enter any key
• for modifyrecord(),arranging the data as
– If (f==null)
– print contact’s data not added yet
– Else
– enter contact’s name to modify
• Print enter name , enter address , enter father name, enter
mother name,mobile number, save after entering the data
• print your data is modified
• Else
• print data is not found
• Finally print enter any key.
• Redisplay the menu for user required input.
Conclusion
• This program makes the user simpler to connect
to his contact. The contact personal information
and family information is stored under a single
number this would benefit the user to easily
search and locate his required contact. This
program deals with four operations of adding
contacts, deleting them, modifying, searching
according the user’s choice. Each operation is
made as an individual function and so control
enters to different structures and all the data
added or modified or deleted is going to be stored
in a .txt fileusing FILE pointers.
Cse project-1

More Related Content

DOCX
Create a set of uml and data flow diagrams. details on the proje
PDF
Word processing
DOCX
Database system the final assignment for this course is an eight to
DOC
Is582 week 3 i lab 3 database construction using access
PPTX
Presentación3 (1)
PPTX
Editing discoveries
PPT
Redessociales 100628115050-phpapp02
PDF
IndoBonds2015 brochure 14Sep
Create a set of uml and data flow diagrams. details on the proje
Word processing
Database system the final assignment for this course is an eight to
Is582 week 3 i lab 3 database construction using access
Presentación3 (1)
Editing discoveries
Redessociales 100628115050-phpapp02
IndoBonds2015 brochure 14Sep

Viewers also liked (9)

PPT
Servizi CGN - Presentazione servizi e novità 2016
PDF
7pasosparaelexitoenmarketing 110220084015-phpapp02
PDF
Agriculture Paper
PDF
Visor Turístico Patrimonial de Posadas (Córdoba)
PPTX
Mi mascota favorita
PPT
Research ethics overview for social science researchers
PPTX
Gingival tissue management
PDF
Proceso EIA
ODP
La reproduccio
Servizi CGN - Presentazione servizi e novità 2016
7pasosparaelexitoenmarketing 110220084015-phpapp02
Agriculture Paper
Visor Turístico Patrimonial de Posadas (Córdoba)
Mi mascota favorita
Research ethics overview for social science researchers
Gingival tissue management
Proceso EIA
La reproduccio
Ad

Similar to Cse project-1 (20)

DOCX
A c program of Phonebook application
ODT
Bangladesh university of business and technology
PPTX
ds ppt.pptx ppt on phone book application in java
PPTX
ds ppt.pptxnanu minchi edigetodu inkodu unnadu chdu evarante adi repati nene ...
PPTX
ds ppt.pptxnanu minchi edigetodu inkodu unnadu chdu evarante adi repati nene ...
DOCX
Phonebookapplic.docxnanu minchi edigetodu inkodu unnadu chdu evarante adi rep...
PPTX
A c program of Phonebook application
PDF
cminiproject-151115084708-lva1-app6892.pdf
DOC
Telephone directory in c
DOC
Telephone directory
PDF
Telephone directory using c language
DOC
Student record
PPTX
Phonebook project in C
PDF
phonebook-170502105942 (1).pdf
PDF
C programming day#3.
DOCX
Let's us c language (sabeel Bugti)
DOCX
C s investigatory project on telephone directory
PDF
C programming day#1
PDF
Data Structure and its Fundamentals
A c program of Phonebook application
Bangladesh university of business and technology
ds ppt.pptx ppt on phone book application in java
ds ppt.pptxnanu minchi edigetodu inkodu unnadu chdu evarante adi repati nene ...
ds ppt.pptxnanu minchi edigetodu inkodu unnadu chdu evarante adi repati nene ...
Phonebookapplic.docxnanu minchi edigetodu inkodu unnadu chdu evarante adi rep...
A c program of Phonebook application
cminiproject-151115084708-lva1-app6892.pdf
Telephone directory in c
Telephone directory
Telephone directory using c language
Student record
Phonebook project in C
phonebook-170502105942 (1).pdf
C programming day#3.
Let's us c language (sabeel Bugti)
C s investigatory project on telephone directory
C programming day#1
Data Structure and its Fundamentals
Ad

Recently uploaded (20)

PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT
Project quality management in manufacturing
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
composite construction of structures.pdf
PDF
Digital Logic Computer Design lecture notes
DOCX
573137875-Attendance-Management-System-original
PPTX
Construction Project Organization Group 2.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
web development for engineering and engineering
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CH1 Production IntroductoryConcepts.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Project quality management in manufacturing
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
additive manufacturing of ss316l using mig welding
OOP with Java - Java Introduction (Basics)
Operating System & Kernel Study Guide-1 - converted.pdf
composite construction of structures.pdf
Digital Logic Computer Design lecture notes
573137875-Attendance-Management-System-original
Construction Project Organization Group 2.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
web development for engineering and engineering
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...

Cse project-1

  • 3. PRESENTED TO: Ms. Tanzina Akter Designation:Lecturer Department of Computer Science and Engineering
  • 4. DATE:01.12.2016 PRESENTD BY: Khandker Ashik Mahmud ID:161-15-6889 Toushiat Shaikh ID:161-15-7530 Sabbir Ahmed Likhon ID:161-15-6931 G.M. Taium Ahmed ID:161-15-6888 Md. Abu Sayem Akand ID:161-15-6975
  • 5. INDEX TITLE • Introduction • Aim of the Project • 2.1 Advantages & Disadvantages • 2.2 Future Implementation • Software & Hardware Details • Data Flow Diagram • Algorithm • Implementation
  • 6. Adding new records into the memory, listing them, modifying them and updating, search for contacts saved, and deleting the phonebook contacts are the basic functions which make up the main menu of this Phonebook application (as shown in the main menu screenshot below). Personal information such as Name, gender, Father’s name, Mother’s name, phone number, email and address are asked while adding a record into the Phonebook. After the initial addition of the contacts these records are then be modified, listed, searched for and removed if they are requires a change.
  • 7. • The program uses many functions in. These functions are easy to understand as their name only signifies their respective operations. These functions make the program to divide into individual modules and hence it makes the program simpler to understand. • void menu() – This function is used to display the main menu. • void start() – This functions calls the menu function mentioned above. • void back() – This function is used to go back to start. • void addrecord() – It adds a new Phonebook record. • void listrecord() – This function is used to view list of added records in file. • void modifyrecord() – This function is used to modify added records. • void deleterecord() – It deletes record from file. • void searchrecord() – It searches for added record by name.
  • 8. • The Title of the Program is to develop a program which deals with the combination of structures, arrays, File pointers and other functions. This program could do some operations on arrays such as insertion, deletion, sorting, searching, update, retrieve, merging, append,exit. • By implementing this program we can execute the inserted contact data, deletion of the data, searching, updating, append, exit with numbers by using arrays and file pointers. This program is implemented for only numbers that can enter into an array. To do this analysis manually it takes a lot of time and patience but by implementing this program using a high level language like C it becomes much easier. But before going to make final solution for the problem, the problem must be analysed.
  • 9. • First of all the basic information regarding the program which consists of complex numbers. This program is solved by using several methods like one can solve this program using user defined functions concept, loops conditions, go to statements. In this abstract we used the concept of functions, while loop, for loop, switch case and if condition’s which helps to execute the problem much easier .The following steps are followed while implementing the given program using if and while loop. • • The input is entered i.e., the value of choice (the menu no) select the particular menu. • Next it goes to particular menu and then goto the particular function. • It prints the resultant value which came from the execution.
  • 10. INTRODUCTION • C is a structured, high level machine independent language. C is converted to a lower language which was understood by the compiler. It allows the software developers to develop programs without worrying about the hardware plat forms where there will be implemented. The c language comes from the ALGOL which gives the concept structured programming to the computer science community. It was introduced early in 1960’s. • C-language is robust language because c-supports richest of operators and burden functions this consist of many operators, operands, key words, special characters, many characters.
  • 11. Structures We have seen that arrays can be used to represent a group of data items that belongs to same data type. If we want to represent a collection of data items of different data types using a single name, then we cannot use an array. C supports a constructed data type known as Structure, which is a method for packing data of different data types. A structure is a convenient tool for handling a group of logically related data items. Structures help to organize complex data in a more meaningful way. It is a powerful concept that we may often need to Use in our program design.
  • 12. Definition : A group of data items that belongs to different data types is known as Structure. ‘Struct’ : It is a keyword and is used to declare a Structure.
  • 13. • Declaration of structure: • • struct struct_name • { • Data item-1; • Data item-2; • ………… • ………… • Data item-n; • }; • • • Declaration of structure variable: • • struct struct_name identifier; • • (or) • • struct struct_name dentifier-1,identifier-2,.......,identifier-n;
  • 14. • (Access operator): • • It is used to access the data items of a structure with the help of structure variable. • • • Syntax: • struct_variable . Data item; • • AIM: • • To develop a “Phonebook contact” application using c programming. • • This program is very useful now-a-days to store complete information under single contact number. • • This program also has options to deletion and modification of the entered contact number. •
  • 15. • Advantages: • It becomes easy for the user to store complete information (e-mail id, address, e.t.c) about his contact. • It is easy for the user to just search his required contact number by just typing name of the contact. • Disadvantages: • Sometimes it becomes difficult to store more contacts (over 150). • • Future Enhancements:- • It becomes even difficult to store contacts with two or more contact numbers
  • 16. • SOFTWARE REQUIREMENTS: • This application is developed in Microsoft windows xp or later operating system. • This Phonebook application is coded and made using the following compilers: – Code::blocks. – Turbo c. • HARDWARE REQUIREMENTS: • This Application size is 33Kb and the size of the code is 5Kb so such amount of memory is required from hard disk. • RAM: minimum 256MB. • Mouse, keyboard.
  • 20. ALGORITHM • Start. • Display the options on the screen. • Read name, address, father name, mother name, mobile number, gender. • Print “WELCOME TO PHONEBOOK” and “Menu” on the screen – Add contact – Print all contacts – Modify contacts – Search contact – Delete contact – Close phone book • Now for Addrecord(),arranging data as Enter name,Enter address,Enter father name,Enter mother name,Enter phone book no, Enter Gender and finally operations record saved ,Enter any key. • Now for listrecord(),arranging data as – if data is empty print file opening error in listing – Elseprint your record: name,address,father,mother,mobile no, Gender. – After all these print enter any key
  • 21. • Now for searchrecord(),arranging data as – if data is insufficient print error in opening – Else – print enter name of contact to be searched and • If (strcmp(p.name,name)==0) • print detail information about name and name,address,father name,mother name,mobile num, gender. – After entering all these, print enter any key • Now for deleterecord(),arranging the data as – If (f==null) – print contact’s data not added yet • else • if(f==null) • print file opening error • Else • Print enter contact’s details. • if (flag!=1) – print no contact’s record to delete – Else – print record deleted successfully – After entering all the data print enter any key
  • 22. • for modifyrecord(),arranging the data as – If (f==null) – print contact’s data not added yet – Else – enter contact’s name to modify • Print enter name , enter address , enter father name, enter mother name,mobile number, save after entering the data • print your data is modified • Else • print data is not found • Finally print enter any key. • Redisplay the menu for user required input.
  • 23. Conclusion • This program makes the user simpler to connect to his contact. The contact personal information and family information is stored under a single number this would benefit the user to easily search and locate his required contact. This program deals with four operations of adding contacts, deleting them, modifying, searching according the user’s choice. Each operation is made as an individual function and so control enters to different structures and all the data added or modified or deleted is going to be stored in a .txt fileusing FILE pointers.