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:
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-----------
- Add new information
- Search Name
- Search Phone Number
- Display All Info
- Exit
Enter choice : 1
Enter Name : Haley Dunphy
Enter Address : 12, 3-12 Street, TK Residance, Penang
Enter Phone Number : 0122402312
--------Phonebook-----------
- Add new information
- Search Name
- Search Phone Number
- Display All Info
- Exit
Enter choice : 1
Enter Name : Joe David
Enter Address : 134, 3rd Floor, Mutiara Residance, Kuala Lumpur
Enter Phone Number : 0174567789
--------Phonebook-----------
- Add new information
- Search Name
- Search Phone Number
- Display All Info
- Exit
Enter choice : 2
Enter name to search : Haley
Search Result:
Haley Dunphy
12, 3-12 Street, TK Residance, Penang
01224023123
--------Phonebook-----------
- Add new information
- Search Name
- Search Phone Number
- Display All Info
- 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-----------
- Add new information
- Search Name
- Search Phone Number
- Display All Info
- Exit
Enter choice : 5
Step by step
Solved in 2 steps with 3 images