Download Lab project report in C Library code and more Assignments C programming in PDF only on Docsity!
TOPIC
Project On PhoneBook
PRESENTD BY:
DATE:01.12. - Khandker Ashik Mahmud ID:161- 15 -
Toushiat Shaikh ID:161- 15 -
Sabbir Ahmed Likhon ID:161- 15 -
G.M. Taium Ahmed ID:161- 15 -
Md. Abu Sayem Akand ID:161- 15 -
INDEX
TITLE
Introduction
Aim of the Project
2.1 Advantages & Disadvantages
2.2 Future Implementation
Software & Hardware Details
Data Flow Diagram
Algorithm
Implementation
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.
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
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.
• 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
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.