You are on page 1of 11

-: A MICRO-PROJECT ON :-

Implement Phone Book Application.

Submitted: - 2022-2023

This micro-project work submitted in partial fulfillment of requirement for the


Award of diploma in Computer Technology for subject Programming in C
Under the Guidance Of

Prof. Mr. S.S.Mane


(Lecture in Computer Technology Dept)

SR.NO. ROLL NO. NAME ENROLMENT NO.

1 64 Tanmay Mohan Warthe 2201210125


2 65 Anuj Naresh Warutkar 2201210111
3 07 Mushahid Javed Beg 2201210097
4 48 Om Sanjay Panbule 2201210105
5 10 Soham Vijay Bhoyar 2201210101
6 14 Harshal Krishna Dange 2201210144
GOVERNMENT POLYTECHNIC, BRAMHAPURI
DIST-CHANDRAPUR

DEPARMENT OF COMPUTER ENGINEERING

This is to certify that the following students of this institute have carried out
this micro-project work on “Implement Phone Book Application”
under the guidance of Prof. Mr. S.S.Mane in the Department
Computer Technology during the session 2021-2022. This work has been
done in the partial fulfillment of the award for in Computer Engineering
from Maharashtra State Board of Technical Education, Mumbai

Submitted By:
SR.NO. ROLL NO. NAME ENROLMENT NO.

1 64 Tanmay Mohan Warthe 2201210125


2 65 Anuj Naresh Warutkar 2201210111
3 07 Mushahid Javed Beg 2201210097
4 48 Om Sanjay Panbule 2201210105
5 10 Soham Vijay Bhoyar 2201210101
6 14 Harshal Krishna Dange 2201210144

Project Guide Head of Department

Prof. Mr. S.S.Mane Prof. Miss.: - S. K. Kharkate


PART A- Micro-project Proposal

Implement Phone Book Application.

1. Introduction :
Diploma engineers (also called technologists) have to write programs to
cater with various IT solutions. In order to develop a program to solve a
given problem, they have to build logic, develop algorithms and flow charts.
This course is designed keeping in view developing these skills. Besides its
use to write codes for low level programming such as developing operating
systems, drivers, and compilers: "C" has been widely used as a general-
purpose language to develop basic applications. This course deals with
fundamental syntactic information about C that will help the students to
apply the basic concepts, program structure and principles of "C"
programming paradigm to build given application. The course is basically
designed to create a base to develop foundation skills of programming
language

Aim of Micro-project:
To Implement a Phone Book Application

2. Course outcomes Achieved:


Develop ‘C’ programs using control structure

3. Literature Review:
The knowledge about the topie was collected by different sources such as different
reference books, YouTube videos and also by different sites as well as using web
links. Also we meet the teachers related with this topic and the corresponding
subject in our college: we got good information from ourteachers. Also in class
lecture our subject teacher gives us information about topics.
4. Actual Methodology followed:
• .Firstly we will study about the given topic.
• And then after we all discuss about microproject with our project guide.
• After we have collected the resources required for our Micro project.
• After collection we have started working on our Micro project.
• After complitation of work we make a report on our micro project.
• And then we will submitted it to our project guide.

5. RESOURCES REQUIRMENT :-

Sr no. Name of Specification Quantity Remark


resource
1) Laptop Intel i5 1 Work

2) Internet Networking 1 Collecting


information
3) Mannual To get 1 Collecting
information information
6. ACTION PLAN :-

Sr no. Discuss of activity Plan short Plan finish Name of


date date responsible team
member
1) Discuss about topic with group All Team
members. member
2) Collecting information from book. All

3) Collecting more contain using internet. -//-

4) Making contain presentable using Ms -//-


words.
5) Taking information from guide. -//-

6) Making print of micro-project. -//-


PART B- Micro-project Proposal

Implement Phone Book Application.

3. Introduction :
Diploma engineers (also called technologists) have to write programs to
cater with various IT solutions. In order to develop a program to solve a
given problem, they have to build logic, develop algorithms and flow charts.
This course is designed keeping in view developing these skills. Besides its
use to write codes for low level programming such as developing operating
systems, drivers, and compilers: "C" has been widely used as a general-
purpose language to develop basic applications. This course deals with
fundamental syntactic information about C that will help the students to
apply the basic concepts, program structure and principles of "C"
programming paradigm to build given application. The course is basically
designed to create a base to develop foundation skills of programming
language

Aim of Micro-project:
To Implement a Phone Book Application

4. Course outcomes Achieved:


Develop ‘C’ programs using control structure

7. Literature Review:
The knowledge about the topie was collected by different sources such as different
reference books, YouTube videos and also by different sites as well as using web
links. Also we meet the teachers related with this topic and the corresponding
subject in our college: we got good information from ourteachers. Also in class
lecture our subject teacher gives us information about topics.
Brief Introduction :-

Code :-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX_CONTACTS 100

struct contact {
char name[30];
char phone[15];
};

struct contact phone_book[MAX_CONTACTS];


int num_contacts = 0;

void add_contact() {
struct contact c;

printf("Enter name: ");


fgets(c.name, 30, stdin);
c.name[strcspn(c.name, "\n")] = '\0'; // remove newline character

printf("Enter phone number: ");


fgets(c.phone, 15, stdin);
c.phone[strcspn(c.phone, "\n")] = '\0'; // remove newline character

phone_book[num_contacts++] = c;

printf("Contact added.\n");
}

void list_contacts() {
printf("Contacts:\n");
for (int i = 0; i < num_contacts; i++) {
printf("%s: %s\n", phone_book[i].name, phone_book[i].phone);
}
}

void search_contact() {
char name[30];

printf("Enter name to search: ");


fgets(name, 30, stdin);
name[strcspn(name, "\n")] = '\0'; // remove newline character

for (int i = 0; i < num_contacts; i++) {


if (strcmp(name, phone_book[i].name) == 0) {
printf("%s: %s\n", phone_book[i].name, phone_book[i].phone);
return;
}
}

printf("Contact not found.\n");


}

int main() {
int choice;

do {
printf("\nPhone Book\n");
printf("1. Add contact\n");
printf("2. List contacts\n");
printf("3. Search contact\n");
printf("4. Exit\n");
printf("Enter choice: ");
scanf("%d", &choice);
getchar(); // remove newline character from input buffer

switch (choice) {
case 1:
add_contact();
break;
case 2:
list_contacts();
break;
case 3:
search_contact();
break;
case 4:
printf("Exiting...\n");
break;
default:
printf("Invalid choice.\n");
break;
}
} while (choice != 4);

return 0;
}
OUTPUT :-
• RESOURCES REQUIRMENT :-

Sr no. Name of Specification Quantity Remark


resource
1) Laptop Intel i5 1 Work

2) Internet Networking 1 Collecting


information
3) Mannual To get 1 Collecting
information information

• ACTION PLAN :-

Sr no. Discuss of activity Plan short Plan finish Name of


date date responsible team
member
1) Discuss about topic with group All Team
members. member
2) Collecting information from book. All

3) Collecting more contain using internet. -//-

4) Making contain presentable using Ms -//-


words.
5) Taking information from guide. -//-

6) Making print of micro-project. -//-


Team Member :-

SR.NO. ROLL NO. NAME ENROLMENT NO.

1 64 Tanmay Mohan Warthe 2201210125


2 65 Anuj Naresh Warutkar 2201210111
3 07 Mushahid Javed Beg 2201210097
4 48 Om Sanjay Panbule 2201210105
5 10 Soham Vijay Bhoyar 2201210101
6 14 Harshal Krishna Dange 2201210144

You might also like