Question: A cell phone has a contact feature. That features stores name and its telephone number in two different arrays name[ ] and phonenumber[ ].
A cell phone has a contact feature. That features stores name and its telephone number in two different arrays – name[ ] and phonenumber[ ]. Each pair of name and telephone number has the same index.
a. Write a program asking the user to input name and telephone number repeatedly until the user types “done”.
b. Modify the program so that the user can search a particular name and get the phone number of the person they are looking for. The program takes a name as an input, searches the name, gets the index and displays the phone number stored in that index.
c. Modify the program so that it displays a notification when the name that user looking for is not in the array.
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
include iostream using namespace std int main string n... View full answer
Get step-by-step solutions from verified subject matter experts
