SlideShare a Scribd company logo
You are asked with writing a program in C that manages contact information for a group of
people. The program should save the first name, last name, and telephone number for up to 12
people. The program should have options to add a person, delete a person, update the
information for a person, and display all information for all current entries. How could you go
about breaking up the programming work into a set of subproblems that could be implemented
separately?
Solution
Whenever we asked about these type of problems.we just go to data structures.i.e,Data structures
that are suitable to our problem whether it may be linked lists,arrays,trees.Here we are taking
about a person information that to it is not about a single person information.
1)Identify data structure.Here i think linked list data structure can be used because array cannot
store all information about a person.and arrays cannot support delete operation like that.
2)1st sub problem:creating a structure to a single person
3)2nd sub problem:add a person:inserting data in linked list by creating a single node
3)updating information:modifying node information in single linked list
4)delete the information of a person:delete a single node information in single linked list
5)display all information for all current entries:traversing a single linked list.
each step is considered to subproblem or function in 'C' language.

More Related Content

DOCX
A c program of Phonebook application
DOCX
1 Summer2017Assignment4IndividualAssignment-Due.docx
PDF
computer notes - Circular list
DOC
introduction of database in DBMS
PDF
Unit 18
DOCX
Phonebookapplic.docxnanu minchi edigetodu inkodu unnadu chdu evarante adi rep...
DOCX
UNIT II.docx
DOCX
Toward a System Building Agenda for Data Integration(and Dat.docx
A c program of Phonebook application
1 Summer2017Assignment4IndividualAssignment-Due.docx
computer notes - Circular list
introduction of database in DBMS
Unit 18
Phonebookapplic.docxnanu minchi edigetodu inkodu unnadu chdu evarante adi rep...
UNIT II.docx
Toward a System Building Agenda for Data Integration(and Dat.docx

Similar to You are asked with writing a program in C that manages contact infor.pdf (20)

PPTX
Record Deduplication and Record Linkage
DOC
data structures and algorithm Cha 1and 2.doc
PDF
Data structure
DOCX
Taking Action Nurse, Educator, and Legislator My Journey to the .docx
PDF
Design your own database
PDF
Solution Manual for Human Resource Information Systems Basics Applications an...
PDF
Data Structure and its Fundamentals
PDF
Bca examination 2015 dbms
PDF
Mapping objects to_relational_databases
PDF
Sulthan's DBMS for_Computer_Science
PDF
Solution Manual for Human Resource Information Systems Basics Applications an...
PDF
Datastructures Notes
PDF
Database Concepts & SQL(1).pdf
PPTX
Applied systems 1 vocabulary
PDF
Test Bank for Database Concepts 9th Edition Kroenke
PPT
DBMS Lecture1.ppt
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PDF
Modern Systems Analysis and Design 8th Edition Valacich Test Bank
Record Deduplication and Record Linkage
data structures and algorithm Cha 1and 2.doc
Data structure
Taking Action Nurse, Educator, and Legislator My Journey to the .docx
Design your own database
Solution Manual for Human Resource Information Systems Basics Applications an...
Data Structure and its Fundamentals
Bca examination 2015 dbms
Mapping objects to_relational_databases
Sulthan's DBMS for_Computer_Science
Solution Manual for Human Resource Information Systems Basics Applications an...
Datastructures Notes
Database Concepts & SQL(1).pdf
Applied systems 1 vocabulary
Test Bank for Database Concepts 9th Edition Kroenke
DBMS Lecture1.ppt
Data_structures_and_algorithm_Lec_1.pptx
Data_structures_and_algorithm_Lec_1.pptx
Modern Systems Analysis and Design 8th Edition Valacich Test Bank

More from FOREVERPRODUCTCHD (20)

PDF
Write a short paragraph explaining what the exploit does in Assembly.pdf
PDF
Write a program to convert a given INFIX into POSTFIX. Make sure .pdf
PDF
What quality control mechanisms should major accounting firms have i.pdf
PDF
What are three basic ethical principles for journalism Why are ethi.pdf
PDF
What are some of the different versions of UNIX® Why is it importan.pdf
PDF
Type in your own words In details, discuss the following questions.pdf
PDF
Twice a first number decreased by a second number is 11. The first nu.pdf
PDF
the largest drum ever constructed was played at the Rotal festival H.pdf
PDF
Suppose that the material that you are recrystallizing fails to perc.pdf
PDF
Summarize the purpose of a WAN and define what makes up a WAN connec.pdf
PDF
SOS Please please please help on this problem!!!!!!!!!!!!!!!!!!!!!! .pdf
PDF
Step 12 The task is complete when the quota can be verified. Take a.pdf
PDF
QUESTIONDiscuss how has Web 2.0 changed the behavior of Internet .pdf
PDF
Python program with functions that extracts specific characters from.pdf
PDF
Please answer the following question and all its parts. Please exp.pdf
PDF
Please help, I cant figure out what I did wrong. Problem 11-2A (Pa.pdf
PDF
Know the different types of viruses which have a dsRNA genome A type.pdf
PDF
In what ways do the experts foresee the use of both virtualization a.pdf
PDF
In the Meselson Stahl experiment, E. coli was grown for many generati.pdf
PDF
implement the ListLinked ADT (the declaration is given in ListLinked.pdf
Write a short paragraph explaining what the exploit does in Assembly.pdf
Write a program to convert a given INFIX into POSTFIX. Make sure .pdf
What quality control mechanisms should major accounting firms have i.pdf
What are three basic ethical principles for journalism Why are ethi.pdf
What are some of the different versions of UNIX® Why is it importan.pdf
Type in your own words In details, discuss the following questions.pdf
Twice a first number decreased by a second number is 11. The first nu.pdf
the largest drum ever constructed was played at the Rotal festival H.pdf
Suppose that the material that you are recrystallizing fails to perc.pdf
Summarize the purpose of a WAN and define what makes up a WAN connec.pdf
SOS Please please please help on this problem!!!!!!!!!!!!!!!!!!!!!! .pdf
Step 12 The task is complete when the quota can be verified. Take a.pdf
QUESTIONDiscuss how has Web 2.0 changed the behavior of Internet .pdf
Python program with functions that extracts specific characters from.pdf
Please answer the following question and all its parts. Please exp.pdf
Please help, I cant figure out what I did wrong. Problem 11-2A (Pa.pdf
Know the different types of viruses which have a dsRNA genome A type.pdf
In what ways do the experts foresee the use of both virtualization a.pdf
In the Meselson Stahl experiment, E. coli was grown for many generati.pdf
implement the ListLinked ADT (the declaration is given in ListLinked.pdf

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
master seminar digital applications in india
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Lesson notes of climatology university.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
O5-L3 Freight Transport Ops (International) V1.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
Supply Chain Operations Speaking Notes -ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
master seminar digital applications in india
Microbial disease of the cardiovascular and lymphatic systems
Lesson notes of climatology university.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Chinmaya Tiranga quiz Grand Finale.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
Yogi Goddess Pres Conference Studio Updates
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana

You are asked with writing a program in C that manages contact infor.pdf

  • 1. You are asked with writing a program in C that manages contact information for a group of people. The program should save the first name, last name, and telephone number for up to 12 people. The program should have options to add a person, delete a person, update the information for a person, and display all information for all current entries. How could you go about breaking up the programming work into a set of subproblems that could be implemented separately? Solution Whenever we asked about these type of problems.we just go to data structures.i.e,Data structures that are suitable to our problem whether it may be linked lists,arrays,trees.Here we are taking about a person information that to it is not about a single person information. 1)Identify data structure.Here i think linked list data structure can be used because array cannot store all information about a person.and arrays cannot support delete operation like that. 2)1st sub problem:creating a structure to a single person 3)2nd sub problem:add a person:inserting data in linked list by creating a single node 3)updating information:modifying node information in single linked list 4)delete the information of a person:delete a single node information in single linked list 5)display all information for all current entries:traversing a single linked list. each step is considered to subproblem or function in 'C' language.