Write a program that implements an address book for your friends using linked lists. Each person has name, last name, and phone number. Data should be stored in ordered based on last name. The program should include the following menu:
1.Add a friend
2.Delete a friend
3.List all friends with their phone numbers in the address book
4.Find the phone number of a friend given his/her last name.
5.Find the phone number of a friend given his/her first name. You may not remember his/her last name. (linked list is ordered based on last name not first name)

6.Find the names and phone number of the person whose name is closest to the given name. (For example you enter BRWN for the last name and program finds a person with last name BROWN)

Recommended Answers

All 6 Replies

No code = no effort shown = no help.

No code = no effort shown = no help.

Why ?? please help me!! this is my homework !!

You should make a structure containing the variables for holding one persons data, then use it just like any other "Node" in linked list. But you should first try urself.

Why ?? please help me!! this is my homework !!

Thats why you have to do it. Its YOUR homework.

you're hopeless...show some effort before posting threads here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.