A cell phone has a contact feature. That features stores name and its telephone number in two
Fantastic news! We've Found the answer you've been seeking!
Question:
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.
Related Book For
Posted Date: