Write a program that resembles a phone book, which stores and displays the names, the addresses (cities) and the telephone numbers for 20 people. The program book should have menu to search information according to names or phone number. The sample output of the program should be as follows: -----Phonebook---- 1 Add new information 2 Search Name 3 Search Phone Number 4 Display All Info 5 Exit Enter choice

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Topic Video
Question
Write a C program
Write a program that resembles a phone book, which stores and displays the names, the
addresses (cities) and the telephone numbers for 20 people. The program book should have menu to
search information according to names or phone number. The sample output of the program should
be as follows:
--------Phonebook-----------
1 Add new information
2 Search Name
3
Search Phone Number
4 Display All Info
5 Exit
Enter choice : 1
Enter NameI Haley Dunphy
Enter Address : 12, 3-12 Street, TK Residance, Penang
Enter Phone Number : 0122402312
--------Phonebook-----------
1
Add new information
2 Search Name
3 Search Phone Number
4 Display All Info
5
5 Exit
Enter choice i 1
Enter Name : Joe David
Enter Address :
Enter Phone Number : 0174567789
134, 3rd Floor, Mutiara Residance, Kuala Lumpur
--------Phonebook-----------
1 Add new information
2 Search Name
3 Search Phone Number
4 Display All Info
5 Exit
: 2
Enter name to search : Haley
Enter choice
Search Result:
Haley Dunphy
12, 3-12 Street, TK Residance, Penang
01224023123
--------Phonebook--
1 Add new information
2 Search Name
3 Search Phone Number
4 Display All Info
5 Exit
Enter choice : 4
Haley Dunphy
12, 3-12 Street, TK Residance, Penang
0122402312
Joe David
134, 3rd Floor, Mutiara Residance, Kuala Lumpur
0174567789
--Phonebook-
1 Add new information
2 Search Name
------
3 Search Phone Number
4 Display All Info
5 Exit
Enter choice
: 5
Transcribed Image Text:Write a program that resembles a phone book, which stores and displays the names, the addresses (cities) and the telephone numbers for 20 people. The program book should have menu to search information according to names or phone number. The sample output of the program should be as follows: --------Phonebook----------- 1 Add new information 2 Search Name 3 Search Phone Number 4 Display All Info 5 Exit Enter choice : 1 Enter NameI Haley Dunphy Enter Address : 12, 3-12 Street, TK Residance, Penang Enter Phone Number : 0122402312 --------Phonebook----------- 1 Add new information 2 Search Name 3 Search Phone Number 4 Display All Info 5 5 Exit Enter choice i 1 Enter Name : Joe David Enter Address : Enter Phone Number : 0174567789 134, 3rd Floor, Mutiara Residance, Kuala Lumpur --------Phonebook----------- 1 Add new information 2 Search Name 3 Search Phone Number 4 Display All Info 5 Exit : 2 Enter name to search : Haley Enter choice Search Result: Haley Dunphy 12, 3-12 Street, TK Residance, Penang 01224023123 --------Phonebook-- 1 Add new information 2 Search Name 3 Search Phone Number 4 Display All Info 5 Exit Enter choice : 4 Haley Dunphy 12, 3-12 Street, TK Residance, Penang 0122402312 Joe David 134, 3rd Floor, Mutiara Residance, Kuala Lumpur 0174567789 --Phonebook- 1 Add new information 2 Search Name ------ 3 Search Phone Number 4 Display All Info 5 Exit Enter choice : 5
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT